FAQ
Hello,

I am doing a change on request.go and trying to test the change.

Once I am done with my change, i run make.bash and it provides a new go
(go version devel +a84ac5b Sun Jun 14 00:11:38 2015 +0000 darwin/amd64)


I am trying to run the test and
/Users/posito/dev/go/bin/go test net/http/httptest

And I have the following error message.

imports runtime: C source files not allowed when not using cgo or SWIG:
atomic_amd64x.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c
mcentral.c mem_darwin.c mfixalloc.c mgc0.c mheap.c msize.c os_darwin.c panic
.c parfor.c proc.c runtime.c signal.c signal_amd64x.c signal_unix.c stack.c
string.c sys_x86.c

My bootstrap version is * go version go1.4.2 darwin/amd64 *and is
located/Users/posito/go1.4/bin/go

my env

GOROOT=/Users/posito/go1.4
GOPATH=/Users/posito/gopath

What am I missing ?


Thanks

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Ian Lance Taylor at Jun 17, 2015 at 11:49 pm

    On Wed, Jun 17, 2015 at 4:40 PM, Posito wrote:
    I am doing a change on request.go and trying to test the change.

    Once I am done with my change, i run make.bash and it provides a new go
    (go version devel +a84ac5b Sun Jun 14 00:11:38 2015 +0000 darwin/amd64)


    I am trying to run the test and
    /Users/posito/dev/go/bin/go test net/http/httptest

    And I have the following error message.

    imports runtime: C source files not allowed when not using cgo or SWIG:
    atomic_amd64x.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c
    mcentral.c mem_darwin.c mfixalloc.c mgc0.c mheap.c msize.c os_darwin.c
    panic.c parfor.c proc.c runtime.c signal.c signal_amd64x.c signal_unix.c
    stack.c string.c sys_x86.c

    My bootstrap version is go version go1.4.2 darwin/amd64 and is
    located/Users/posito/go1.4/bin/go

    my env

    GOROOT=/Users/posito/go1.4
    GOPATH=/Users/posito/gopath

    What am I missing ?
    Don't set GOROOT in the environment.

    Ian

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJun 17, '15 at 11:48p
activeJun 17, '15 at 11:49p
posts2
users2
websitegolang.org

2 users in discussion

Ian Lance Taylor: 1 post Posito: 1 post

People

Translate

site design / logo © 2022 Grokbase