[go-nuts] Re: Link not performed when 'go install'

2017-10-01 Thread Hallgeir Holien

Thank you!

On Sunday, October 1, 2017 at 12:50:51 PM UTC+2, Dave Cheney wrote:
>
> The command you want is
>
> go get -u github.com/golang/dep/cmd/dep
>
> You should never need the -a flag unless something is broken with your Go 
> installation, so you should fix that, not apply -a unconditionally. 
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Link not performed when 'go install'

2017-10-01 Thread Hallgeir Holien
The full command is

go get -a -x github.com/golang/dep &> goact.txt

The output is attached.


On Sunday, October 1, 2017 at 10:39:52 AM UTC+2, Dave Cheney wrote:
>
> Linking will only be performed if the package you go get'd is a main 
> package.
>
> For example
>
> go get golang.org/x/tools
>
> Will get the tools repo, but will not build any commands because the 
> commands are in the path
>
> go get golang.org/x/tools/cmd/...
>
> What is the full command you ran, and what is the full output you received?
>
> Thanks
>
> Dave
>
>
> On Sunday, 1 October 2017 04:16:58 UTC, Hallgeir Holien wrote:
>>
>> My Go environment(on Ubuntu 16.04 and several versions of go, including 
>> 1.9) no longer builds the executable. 
>> I have previously been able to run go get and go install to build 
>> executables to the bin folder using go1.8.3.
>> Now, for some reason I do not get any executables.
>> After this happened I installed gvm to try using other go versions. All 
>> behave similar.
>> I have used 'git get -x -a' to inspect the actions performed and see that 
>> all compile steps are run ok, so I get the .a files ok.
>> However I can not see that any link actions are called. The last action 
>> listed is a mv on an .a file.
>> Any ideas on how to fix this?
>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
WORK=/tmp/go-build459737979
mkdir -p $WORK/runtime/internal/sys/_obj/
mkdir -p $WORK/runtime/internal/
cd /home/hallgeir/.gvm/gos/go1.9/src/runtime/internal/sys
/home/hallgeir/.gvm/gos/go1.9/pkg/tool/linux_amd64/compile -o 
$WORK/runtime/internal/sys.a -trimpath $WORK -goversion go1.9 -p 
runtime/internal/sys -std -+ -complete -buildid 
a542d7437edd7d5c680c251aedd309d42e1baa12 -D 
_/home/hallgeir/.gvm/gos/go1.9/src/runtime/internal/sys -I $WORK -pack 
./arch.go ./arch_amd64.go ./intrinsics.go ./stubs.go ./sys.go 
./zgoarch_amd64.go ./zgoos_linux.go ./zversion.go
mkdir -p /home/hallgeir/.gvm/gos/go1.9/pkg/linux_amd64/runtime/internal/
mv $WORK/runtime/internal/sys.a 
/home/hallgeir/.gvm/gos/go1.9/pkg/linux_amd64/runtime/internal/sys.a
mkdir -p $WORK/runtime/internal/atomic/_obj/
cd /home/hallgeir/.gvm/gos/go1.9/src/runtime/internal/atomic
/home/hallgeir/.gvm/gos/go1.9/pkg/tool/linux_amd64/compile -o 
$WORK/runtime/internal/atomic.a -trimpath $WORK -goversion go1.9 -p 
runtime/internal/atomic -std -+ -buildid 
bea2bdc76dc69f40a74a2f12862b2cf71c4f7553 -D 
_/home/hallgeir/.gvm/gos/go1.9/src/runtime/internal/atomic -I $WORK -pack 
-asmhdr $WORK/runtime/internal/atomic/_obj/go_asm.h ./atomic_amd64x.go 
./stubs.go
/home/hallgeir/.gvm/gos/go1.9/pkg/tool/linux_amd64/asm -trimpath $WORK -I 
$WORK/runtime/internal/atomic/_obj/ -I 
/home/hallgeir/.gvm/gos/go1.9/pkg/include -D GOOS_linux -D GOARCH_amd64 -o 
$WORK/runtime/internal/atomic/_obj/asm_amd64.o ./asm_amd64.s
pack r $WORK/runtime/internal/atomic.a 
$WORK/runtime/internal/atomic/_obj/asm_amd64.o # internal
mv $WORK/runtime/internal/atomic.a 
/home/hallgeir/.gvm/gos/go1.9/pkg/linux_amd64/runtime/internal/atomic.a
mkdir -p $WORK/runtime/_obj/
mkdir -p $WORK/
cd /home/hallgeir/.gvm/gos/go1.9/src/runtime
/home/hallgeir/.gvm/gos/go1.9/pkg/tool/linux_amd64/compile -o $WORK/runtime.a 
-trimpath $WORK -goversion go1.9 -p runtime -std -+ -buildid 
bac9172adcea874907aaf3f5cd6ebd40efe94d12 -D 
_/home/hallgeir/.gvm/gos/go1.9/src/runtime -I $WORK -pack -asmhdr 
$WORK/runtime/_obj/go_asm.h ./alg.go ./atomic_pointer.go ./cgo.go ./cgo_mmap.go 
./cgo_sigaction.go ./cgocall.go ./cgocallback.go ./cgocheck.go ./chan.go 
./compiler.go ./complex.go ./cpuflags_amd64.go ./cpuprof.go ./cputicks.go 
./debug.go ./defs_linux_amd64.go ./env_posix.go ./error.go ./extern.go 
./fastlog2.go ./fastlog2table.go ./float.go ./hash64.go ./hashmap.go 
./hashmap_fast.go ./heapdump.go ./iface.go ./lfstack.go ./lfstack_64bit.go 
./lock_futex.go ./malloc.go ./mbarrier.go ./mbitmap.go ./mcache.go 
./mcentral.go ./mem_linux.go ./mfinal.go ./mfixalloc.go ./mgc.go ./mgclarge.go 
./mgcmark.go ./mgcsweep.go ./mgcsweepbuf.go ./mgcwork.go ./mheap.go ./mprof.go 
./msan0.go ./msize.go ./mstats.go ./netpoll.go ./netpoll_epoll.go ./os_linux.go 
./os_linux_generic.go ./panic.go ./plugin.go ./print.go ./proc.go ./profbuf.go 
./proflabel.go ./race0.go ./rdebug.go ./relax_stub.go ./runtime.go 
./runtime1.go ./runtime2.go ./rwmutex.go ./select.go ./sema.go 
./signal_amd64x.go ./signal_linux_amd64.go ./signal_sighandler.go 
./signal_unix.go ./sigqueue.go ./sigtab_linux_generic.go ./sizeclasses.go 
./slice.go ./softfloat64.go ./sqrt.go ./stack.go ./string.go ./stubs.go 
./stubs2.go ./stubs_asm.go ./stubs_linux.

[go-nuts] Link not performed when 'go install'

2017-09-30 Thread Hallgeir Holien
My Go environment(on Ubuntu 16.04 and several versions of go, including 
1.9) no longer builds the executable. 
I have previously been able to run go get and go install to build 
executables to the bin folder using go1.8.3.
Now, for some reason I do not get any executables.
After this happened I installed gvm to try using other go versions. All 
behave similar.
I have used 'git get -x -a' to inspect the actions performed and see that 
all compile steps are run ok, so I get the .a files ok.
However I can not see that any link actions are called. The last action 
listed is a mv on an .a file.
Any ideas on how to fix this?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.