failed to build without CGO on latest tip

106 views
Skip to first unread message

Vasiliy Tolstov

unread,
Feb 11, 2013, 2:56:23 AM2/11/13
to golan...@googlegroups.com
Hello!. I'm using golang tip and today fails to build simple program
without CGO (static binary)

i try to build with CGO_ENABLED=0 go build -a -x -ldflags '-s'

program http://play.golang.org/p/Apx-GfT244

go version devel +8f9b0fbf4c15 Wed Feb 06 22:37:34 2013 +1100 linux/amd64

--
Vasiliy Tolstov,
Clodo.ru
e-mail: v.to...@selfip.ru
jabber: va...@selfip.ru

Vasiliy Tolstov

unread,
Feb 11, 2013, 2:57:02 AM2/11/13
to golan...@googlegroups.com
Full build log:
[va...@aws.selfip.ru ~/devel/qemu-dm-syslog] # CGO_ENABLED=0 go build
-a -x -ldflags '-s'
WORK=/tmp/go-build062664898
mkdir -p $WORK/runtime/_obj/
mkdir -p $WORK/
cd /home/vase/devel/golang/src/pkg/runtime
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/runtime/_obj/_go_.6 -p runtime -+ -D
_/home/vase/devel/golang/src/pkg/runtime -I $WORK ./compiler.go
./debug.go ./error.go ./extern.go ./mem.go ./mgc0.go ./softfloat64.go
./type.go ./zgoarch_amd64.go ./zgoos_linux.go
./zruntime_defs_linux_amd64.go ./zversion.go
cp /home/vase/devel/golang/src/pkg/runtime/arch_amd64.h
$WORK/runtime/_obj/arch_GOARCH.h
cp /home/vase/devel/golang/src/pkg/runtime/defs_linux_amd64.h
$WORK/runtime/_obj/defs_GOOS_GOARCH.h
cp /home/vase/devel/golang/src/pkg/runtime/os_linux.h
$WORK/runtime/_obj/os_GOOS.h
cp /home/vase/devel/golang/src/pkg/runtime/signals_linux.h
$WORK/runtime/_obj/signals_GOOS.h
cp /home/vase/devel/golang/src/pkg/runtime/zasm_linux_amd64.h
$WORK/runtime/_obj/zasm_GOOS_GOARCH.h
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/alg.6 -D GOOS_linux -D GOARCH_amd64 ./alg.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/atomic_amd64.6 -D GOOS_linux -D GOARCH_amd64
./atomic_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/cgocall.6 -D GOOS_linux -D GOARCH_amd64 ./cgocall.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/chan.6 -D GOOS_linux -D GOARCH_amd64 ./chan.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/closure_amd64.6 -D GOOS_linux -D GOARCH_amd64
./closure_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/complex.6 -D GOOS_linux -D GOARCH_amd64 ./complex.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/cpuprof.6 -D GOOS_linux -D GOARCH_amd64 ./cpuprof.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/env_posix.6 -D GOOS_linux -D GOARCH_amd64
./env_posix.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/float.6 -D GOOS_linux -D GOARCH_amd64 ./float.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/hashmap.6 -D GOOS_linux -D GOARCH_amd64 ./hashmap.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/iface.6 -D GOOS_linux -D GOARCH_amd64 ./iface.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/lfstack.6 -D GOOS_linux -D GOARCH_amd64 ./lfstack.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/lock_futex.6 -D GOOS_linux -D GOARCH_amd64
./lock_futex.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/mcache.6 -D GOOS_linux -D GOARCH_amd64 ./mcache.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/mcentral.6 -D GOOS_linux -D GOARCH_amd64
./mcentral.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/mem_linux.6 -D GOOS_linux -D GOARCH_amd64
./mem_linux.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/mfinal.6 -D GOOS_linux -D GOARCH_amd64 ./mfinal.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/mfixalloc.6 -D GOOS_linux -D GOARCH_amd64
./mfixalloc.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/mgc0.6 -D GOOS_linux -D GOARCH_amd64 ./mgc0.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/mheap.6 -D GOOS_linux -D GOARCH_amd64 ./mheap.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/msize.6 -D GOOS_linux -D GOARCH_amd64 ./msize.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/panic.6 -D GOOS_linux -D GOARCH_amd64 ./panic.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/parfor.6 -D GOOS_linux -D GOARCH_amd64 ./parfor.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/print.6 -D GOOS_linux -D GOARCH_amd64 ./print.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/proc.6 -D GOOS_linux -D GOARCH_amd64 ./proc.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/race0.6 -D GOOS_linux -D GOARCH_amd64 ./race0.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/rune.6 -D GOOS_linux -D GOARCH_amd64 ./rune.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/runtime.6 -D GOOS_linux -D GOARCH_amd64 ./runtime.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/signal_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./signal_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/signal_unix.6 -D GOOS_linux -D GOARCH_amd64
./signal_unix.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/slice.6 -D GOOS_linux -D GOARCH_amd64 ./slice.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/symtab.6 -D GOOS_linux -D GOARCH_amd64 ./symtab.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/thread_linux.6 -D GOOS_linux -D GOARCH_amd64
./thread_linux.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/traceback_x86.6 -D GOOS_linux -D GOARCH_amd64
./traceback_x86.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/vdso_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./vdso_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/zmalloc_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./zmalloc_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/zmprof_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./zmprof_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/zruntime1_linux_amd64.6 -D GOOS_linux -D
GOARCH_amd64 ./zruntime1_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/zsema_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./zsema_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/zsigqueue_linux_amd64.6 -D GOOS_linux -D
GOARCH_amd64 ./zsigqueue_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/zstring_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./zstring_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6c -F -V -w -I
$WORK/runtime/_obj/ -I /home/vase/devel/golang/pkg/linux_amd64 -o
$WORK/runtime/_obj/ztime_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./ztime_linux_amd64.c
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/runtime/_obj/
-o $WORK/runtime/_obj/asm_amd64.6 -D GOOS_linux -D GOARCH_amd64
./asm_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/runtime/_obj/
-o $WORK/runtime/_obj/memmove_amd64.6 -D GOOS_linux -D GOARCH_amd64
./memmove_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/runtime/_obj/
-o $WORK/runtime/_obj/rt0_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./rt0_linux_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/runtime/_obj/
-o $WORK/runtime/_obj/sys_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./sys_linux_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/runtime.a $WORK/runtime/_obj/_go_.6 $WORK/runtime/_obj/alg.6
$WORK/runtime/_obj/atomic_amd64.6 $WORK/runtime/_obj/cgocall.6
$WORK/runtime/_obj/chan.6 $WORK/runtime/_obj/closure_amd64.6
$WORK/runtime/_obj/complex.6 $WORK/runtime/_obj/cpuprof.6
$WORK/runtime/_obj/env_posix.6 $WORK/runtime/_obj/float.6
$WORK/runtime/_obj/hashmap.6 $WORK/runtime/_obj/iface.6
$WORK/runtime/_obj/lfstack.6 $WORK/runtime/_obj/lock_futex.6
$WORK/runtime/_obj/mcache.6 $WORK/runtime/_obj/mcentral.6
$WORK/runtime/_obj/mem_linux.6 $WORK/runtime/_obj/mfinal.6
$WORK/runtime/_obj/mfixalloc.6 $WORK/runtime/_obj/mgc0.6
$WORK/runtime/_obj/mheap.6 $WORK/runtime/_obj/msize.6
$WORK/runtime/_obj/panic.6 $WORK/runtime/_obj/parfor.6
$WORK/runtime/_obj/print.6 $WORK/runtime/_obj/proc.6
$WORK/runtime/_obj/race0.6 $WORK/runtime/_obj/rune.6
$WORK/runtime/_obj/runtime.6 $WORK/runtime/_obj/signal_linux_amd64.6
$WORK/runtime/_obj/signal_unix.6 $WORK/runtime/_obj/slice.6
$WORK/runtime/_obj/symtab.6 $WORK/runtime/_obj/thread_linux.6
$WORK/runtime/_obj/traceback_x86.6
$WORK/runtime/_obj/vdso_linux_amd64.6
$WORK/runtime/_obj/zmalloc_linux_amd64.6
$WORK/runtime/_obj/zmprof_linux_amd64.6
$WORK/runtime/_obj/zruntime1_linux_amd64.6
$WORK/runtime/_obj/zsema_linux_amd64.6
$WORK/runtime/_obj/zsigqueue_linux_amd64.6
$WORK/runtime/_obj/zstring_linux_amd64.6
$WORK/runtime/_obj/ztime_linux_amd64.6 $WORK/runtime/_obj/asm_amd64.6
$WORK/runtime/_obj/memmove_amd64.6
$WORK/runtime/_obj/rt0_linux_amd64.6
$WORK/runtime/_obj/sys_linux_amd64.6
mkdir -p $WORK/errors/_obj/
cd /home/vase/devel/golang/src/pkg/errors
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/errors/_obj/_go_.6 -p errors -complete -D
_/home/vase/devel/golang/src/pkg/errors -I $WORK ./errors.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/errors.a $WORK/errors/_obj/_go_.6
mkdir -p $WORK/sync/atomic/_obj/
mkdir -p $WORK/sync/
cd /home/vase/devel/golang/src/pkg/sync/atomic
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/sync/atomic/_obj/_go_.6 -p sync/atomic -D
_/home/vase/devel/golang/src/pkg/sync/atomic -I $WORK ./doc.go
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I
$WORK/sync/atomic/_obj/ -o $WORK/sync/atomic/_obj/asm_amd64.6 -D
GOOS_linux -D GOARCH_amd64 ./asm_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/sync/atomic.a $WORK/sync/atomic/_obj/_go_.6
$WORK/sync/atomic/_obj/asm_amd64.6
mkdir -p $WORK/sync/_obj/
cd /home/vase/devel/golang/src/pkg/sync
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/sync/_obj/_go_.6 -p sync -D
_/home/vase/devel/golang/src/pkg/sync -I $WORK ./cond.go ./mutex.go
./once.go ./race0.go ./runtime.go ./rwmutex.go ./waitgroup.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/sync.a $WORK/sync/_obj/_go_.6
mkdir -p $WORK/io/_obj/
cd /home/vase/devel/golang/src/pkg/io
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/io/_obj/_go_.6 -p io -complete -D
_/home/vase/devel/golang/src/pkg/io -I $WORK ./io.go ./multi.go
./pipe.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/io.a $WORK/io/_obj/_go_.6
mkdir -p $WORK/math/_obj/
cd /home/vase/devel/golang/src/pkg/math
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/math/_obj/_go_.6 -p math -D
_/home/vase/devel/golang/src/pkg/math -I $WORK ./abs.go ./acosh.go
./asin.go ./asinh.go ./atan.go ./atan2.go ./atanh.go ./bits.go
./cbrt.go ./const.go ./copysign.go ./dim.go ./erf.go ./exp.go
./expm1.go ./floor.go ./frexp.go ./gamma.go ./hypot.go ./j0.go ./j1.go
./jn.go ./ldexp.go ./lgamma.go ./log.go ./log10.go ./log1p.go
./logb.go ./mod.go ./modf.go ./nextafter.go ./pow.go ./pow10.go
./remainder.go ./signbit.go ./sin.go ./sincos.go ./sinh.go ./sqrt.go
./tan.go ./tanh.go ./unsafe.go
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/abs_amd64.6 -D GOOS_linux -D GOARCH_amd64
./abs_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/asin_amd64.6 -D GOOS_linux -D GOARCH_amd64
./asin_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/atan2_amd64.6 -D GOOS_linux -D GOARCH_amd64
./atan2_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/atan_amd64.6 -D GOOS_linux -D GOARCH_amd64
./atan_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/dim_amd64.6 -D GOOS_linux -D GOARCH_amd64
./dim_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/exp2_amd64.6 -D GOOS_linux -D GOARCH_amd64
./exp2_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/exp_amd64.6 -D GOOS_linux -D GOARCH_amd64
./exp_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/expm1_amd64.6 -D GOOS_linux -D GOARCH_amd64
./expm1_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/floor_amd64.6 -D GOOS_linux -D GOARCH_amd64
./floor_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/fltasm_amd64.6 -D GOOS_linux -D GOARCH_amd64
./fltasm_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/frexp_amd64.6 -D GOOS_linux -D GOARCH_amd64
./frexp_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/hypot_amd64.6 -D GOOS_linux -D GOARCH_amd64
./hypot_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/ldexp_amd64.6 -D GOOS_linux -D GOARCH_amd64
./ldexp_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/log10_amd64.6 -D GOOS_linux -D GOARCH_amd64
./log10_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/log1p_amd64.6 -D GOOS_linux -D GOARCH_amd64
./log1p_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/log_amd64.6 -D GOOS_linux -D GOARCH_amd64
./log_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/mod_amd64.6 -D GOOS_linux -D GOARCH_amd64
./mod_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/modf_amd64.6 -D GOOS_linux -D GOARCH_amd64
./modf_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/remainder_amd64.6 -D GOOS_linux -D GOARCH_amd64
./remainder_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/sin_amd64.6 -D GOOS_linux -D GOARCH_amd64
./sin_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/sincos_amd64.6 -D GOOS_linux -D GOARCH_amd64
./sincos_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/sqrt_amd64.6 -D GOOS_linux -D GOARCH_amd64
./sqrt_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/math/_obj/ -o
$WORK/math/_obj/tan_amd64.6 -D GOOS_linux -D GOARCH_amd64
./tan_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/math.a $WORK/math/_obj/_go_.6 $WORK/math/_obj/abs_amd64.6
$WORK/math/_obj/asin_amd64.6 $WORK/math/_obj/atan2_amd64.6
$WORK/math/_obj/atan_amd64.6 $WORK/math/_obj/dim_amd64.6
$WORK/math/_obj/exp2_amd64.6 $WORK/math/_obj/exp_amd64.6
$WORK/math/_obj/expm1_amd64.6 $WORK/math/_obj/floor_amd64.6
$WORK/math/_obj/fltasm_amd64.6 $WORK/math/_obj/frexp_amd64.6
$WORK/math/_obj/hypot_amd64.6 $WORK/math/_obj/ldexp_amd64.6
$WORK/math/_obj/log10_amd64.6 $WORK/math/_obj/log1p_amd64.6
$WORK/math/_obj/log_amd64.6 $WORK/math/_obj/mod_amd64.6
$WORK/math/_obj/modf_amd64.6 $WORK/math/_obj/remainder_amd64.6
$WORK/math/_obj/sin_amd64.6 $WORK/math/_obj/sincos_amd64.6
$WORK/math/_obj/sqrt_amd64.6 $WORK/math/_obj/tan_amd64.6
mkdir -p $WORK/syscall/_obj/
cd /home/vase/devel/golang/src/pkg/syscall
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/syscall/_obj/_go_.6 -p syscall -D
_/home/vase/devel/golang/src/pkg/syscall -I $WORK ./env_unix.go
./exec_linux.go ./exec_unix.go ./lsf_linux.go ./netlink_linux.go
./race0.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go
./syscall.go ./syscall_linux.go ./syscall_linux_amd64.go
./syscall_unix.go ./zerrors_linux_amd64.go ./zsyscall_linux_amd64.go
./zsysnum_linux_amd64.go ./ztypes_linux_amd64.go
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/syscall/_obj/
-o $WORK/syscall/_obj/asm_linux_amd64.6 -D GOOS_linux -D GOARCH_amd64
./asm_linux_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/syscall.a $WORK/syscall/_obj/_go_.6
$WORK/syscall/_obj/asm_linux_amd64.6
mkdir -p $WORK/time/_obj/
cd /home/vase/devel/golang/src/pkg/time
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/time/_obj/_go_.6 -p time -D
_/home/vase/devel/golang/src/pkg/time -I $WORK ./format.go ./sleep.go
./sys_unix.go ./tick.go ./time.go ./zoneinfo.go ./zoneinfo_read.go
./zoneinfo_unix.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/time.a $WORK/time/_obj/_go_.6
mkdir -p $WORK/os/_obj/
cd /home/vase/devel/golang/src/pkg/os
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/os/_obj/_go_.6 -p os -D _/home/vase/devel/golang/src/pkg/os -I
$WORK ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go
./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go
./file_unix.go ./getwd.go ./path.go ./path_unix.go ./pipe_linux.go
./proc.go ./stat_linux.go ./sys_linux.go ./types.go ./types_notwin.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/os.a $WORK/os/_obj/_go_.6
mkdir -p $WORK/unicode/utf8/_obj/
mkdir -p $WORK/unicode/
cd /home/vase/devel/golang/src/pkg/unicode/utf8
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/unicode/utf8/_obj/_go_.6 -p unicode/utf8 -complete -D
_/home/vase/devel/golang/src/pkg/unicode/utf8 -I $WORK ./utf8.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/unicode/utf8.a $WORK/unicode/utf8/_obj/_go_.6
mkdir -p $WORK/strconv/_obj/
cd /home/vase/devel/golang/src/pkg/strconv
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/strconv/_obj/_go_.6 -p strconv -complete -D
_/home/vase/devel/golang/src/pkg/strconv -I $WORK ./atob.go ./atof.go
./atoi.go ./decimal.go ./extfloat.go ./ftoa.go ./isprint.go ./itoa.go
./quote.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/strconv.a $WORK/strconv/_obj/_go_.6
mkdir -p $WORK/reflect/_obj/
cd /home/vase/devel/golang/src/pkg/reflect
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/reflect/_obj/_go_.6 -p reflect -D
_/home/vase/devel/golang/src/pkg/reflect -I $WORK ./deepequal.go
./makefunc.go ./type.go ./value.go
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/reflect/_obj/
-o $WORK/reflect/_obj/asm_amd64.6 -D GOOS_linux -D GOARCH_amd64
./asm_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/reflect.a $WORK/reflect/_obj/_go_.6
$WORK/reflect/_obj/asm_amd64.6
mkdir -p $WORK/fmt/_obj/
cd /home/vase/devel/golang/src/pkg/fmt
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/fmt/_obj/_go_.6 -p fmt -complete -D
_/home/vase/devel/golang/src/pkg/fmt -I $WORK ./doc.go ./format.go
./print.go ./scan.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/fmt.a $WORK/fmt/_obj/_go_.6
mkdir -p $WORK/log/_obj/
cd /home/vase/devel/golang/src/pkg/log
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/log/_obj/_go_.6 -p log -complete -D
_/home/vase/devel/golang/src/pkg/log -I $WORK ./log.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/log.a $WORK/log/_obj/_go_.6
mkdir -p $WORK/math/rand/_obj/
mkdir -p $WORK/math/
cd /home/vase/devel/golang/src/pkg/math/rand
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/math/rand/_obj/_go_.6 -p math/rand -complete -D
_/home/vase/devel/golang/src/pkg/math/rand -I $WORK ./exp.go
./normal.go ./rand.go ./rng.go ./zipf.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/math/rand.a $WORK/math/rand/_obj/_go_.6
mkdir -p $WORK/sort/_obj/
cd /home/vase/devel/golang/src/pkg/sort
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/sort/_obj/_go_.6 -p sort -complete -D
_/home/vase/devel/golang/src/pkg/sort -I $WORK ./search.go ./sort.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/sort.a $WORK/sort/_obj/_go_.6
mkdir -p $WORK/net/_obj/
cd /home/vase/devel/golang/src/pkg/net
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/net/_obj/_go_.6 -p net -complete -D
_/home/vase/devel/golang/src/pkg/net -I $WORK ./cgo_stub.go ./dial.go
./dnsclient.go ./dnsclient_unix.go ./dnsconfig_unix.go ./dnsmsg.go
./fd_linux.go ./fd_unix.go ./file_unix.go ./hosts.go ./interface.go
./interface_linux.go ./ip.go ./iprawsock.go ./iprawsock_posix.go
./ipsock.go ./ipsock_posix.go ./lookup.go ./lookup_unix.go ./mac.go
./net.go ./newpollserver_unix.go ./parse.go ./pipe.go ./port.go
./port_unix.go ./sendfile_linux.go ./sock_cloexec.go ./sock_linux.go
./sock_posix.go ./sock_unix.go ./sockopt_linux.go ./sockopt_posix.go
./sockoptip_linux.go ./sockoptip_posix.go ./tcpsock.go
./tcpsock_posix.go ./udpsock.go ./udpsock_posix.go ./unixsock.go
./unixsock_posix.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/net.a $WORK/net/_obj/_go_.6
mkdir -p $WORK/unicode/_obj/
cd /home/vase/devel/golang/src/pkg/unicode
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/unicode/_obj/_go_.6 -p unicode -complete -D
_/home/vase/devel/golang/src/pkg/unicode -I $WORK ./casetables.go
./digit.go ./graphic.go ./letter.go ./tables.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/unicode.a $WORK/unicode/_obj/_go_.6
mkdir -p $WORK/strings/_obj/
cd /home/vase/devel/golang/src/pkg/strings
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/strings/_obj/_go_.6 -p strings -complete -D
_/home/vase/devel/golang/src/pkg/strings -I $WORK ./reader.go
./replace.go ./search.go ./strings.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/strings.a $WORK/strings/_obj/_go_.6
mkdir -p $WORK/log/syslog/_obj/
mkdir -p $WORK/log/
cd /home/vase/devel/golang/src/pkg/log/syslog
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/log/syslog/_obj/_go_.6 -p log/syslog -complete -D
_/home/vase/devel/golang/src/pkg/log/syslog -I $WORK ./syslog.go
./syslog_unix.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/log/syslog.a $WORK/log/syslog/_obj/_go_.6
mkdir -p $WORK/bytes/_obj/
cd /home/vase/devel/golang/src/pkg/bytes
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/bytes/_obj/_go_.6 -p bytes -D
_/home/vase/devel/golang/src/pkg/bytes -I $WORK ./buffer.go ./bytes.go
./bytes_decl.go ./reader.go
/home/vase/devel/golang/pkg/tool/linux_amd64/6a -I $WORK/bytes/_obj/
-o $WORK/bytes/_obj/asm_amd64.6 -D GOOS_linux -D GOARCH_amd64
./asm_amd64.s
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/bytes.a $WORK/bytes/_obj/_go_.6 $WORK/bytes/_obj/asm_amd64.6
mkdir -p $WORK/os/exec/_obj/
mkdir -p $WORK/os/
cd /home/vase/devel/golang/src/pkg/os/exec
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/os/exec/_obj/_go_.6 -p os/exec -complete -D
_/home/vase/devel/golang/src/pkg/os/exec -I $WORK ./exec.go
./lp_unix.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/os/exec.a $WORK/os/exec/_obj/_go_.6
mkdir -p $WORK/qemu-dm-syslog/_obj/
mkdir -p $WORK/qemu-dm-syslog/_obj/exe/
cd /home/vase/devel/src/qemu-dm-syslog
/home/vase/devel/golang/pkg/tool/linux_amd64/6g -o
$WORK/qemu-dm-syslog/_obj/_go_.6 -p qemu-dm-syslog -complete -D
_/home/vase/devel/src/qemu-dm-syslog -I $WORK ./main.go
/home/vase/devel/golang/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/qemu-dm-syslog.a $WORK/qemu-dm-syslog/_obj/_go_.6
cd .
/home/vase/devel/golang/pkg/tool/linux_amd64/6l -o
$WORK/qemu-dm-syslog/_obj/exe/a.out -L $WORK -s $WORK/qemu-dm-syslog.a
# qemu-dm-syslog
syscall.errors: cannot find elf name .symtab

2013/2/11 Vasiliy Tolstov <v.to...@selfip.ru>:

Dave Cheney

unread,
Feb 11, 2013, 3:00:39 AM2/11/13
to Vasiliy Tolstov, golan...@googlegroups.com
I do not believe that is the correct way to build a cgo disabled binary. Where did you get those instructions ?

I would recommend

export CGO_ENABLED=0
cd go/src && ./all.bash

Then trying your build again.
> --
> 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...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Vasiliy Tolstov

unread,
Feb 11, 2013, 3:05:57 AM2/11/13
to Dave Cheney, golan...@googlegroups.com
This cmd provide for me in golang mailing list =) And all works fine
on other programs. This cmd lets me to build static binary or dinamic
without recompile all go sources.


2013/2/11 Dave Cheney <da...@cheney.net>:

Dave Cheney

unread,
Feb 11, 2013, 3:12:40 AM2/11/13
to Vasiliy Tolstov, golan...@googlegroups.com
You should recompile the whole source, that is how we test it :)

Vasiliy Tolstov

unread,
Feb 11, 2013, 3:42:02 AM2/11/13
to Dave Cheney, golan...@googlegroups.com
hmm. but why it works on current go stable wythout syslog?=)

2013/2/11 Dave Cheney <da...@cheney.net>:

Dave Cheney

unread,
Feb 11, 2013, 4:04:08 AM2/11/13
to Vasiliy Tolstov, golan...@googlegroups.com
Did all.bash complete successfully using the instructions below ?

Vasiliy Tolstov

unread,
Feb 11, 2013, 4:22:35 AM2/11/13
to Dave Cheney, golan...@googlegroups.com
Yes, build success.

2013/2/11 Dave Cheney <da...@cheney.net>:

Vasiliy Tolstov

unread,
Feb 11, 2013, 5:10:25 AM2/11/13
to Dave Cheney, golan...@googlegroups.com
After some debug, my cmd works. Error produced if i add -ldflags '-s'
that strips binary.

I think this may be broken on tip

2013/2/11 Vasiliy Tolstov <v.to...@selfip.ru>:

Dave Cheney

unread,
Feb 11, 2013, 5:34:57 AM2/11/13
to Vasiliy Tolstov, golan...@googlegroups.com
Hmm. I have searched my archive and the only reference to -ldflags '-s' is

https://groups.google.com/d/msg/golang-nuts/yzcYsnNiUgg/qC4Puo97rIoJ

I am not convinced that is a valid way to

a) strip a binary
b) create a stripped cgo disabled binary
c) both

and so I suggest that you do not use it and create static binaries
using the method I outlined above.

If you believe that stripping a go binary (static or cgo) enabled is
broken, I encourage you raise an issue. It is not something that I
believe is heavily tested, and could have very well broken on tip.

Cheers

Dave

Anthony Martin

unread,
Feb 12, 2013, 8:36:05 PM2/12/13
to Dave Cheney, Vasiliy Tolstov, golan...@googlegroups.com
Dave Cheney <da...@cheney.net> once said:
> If you believe that stripping a go binary (static or cgo) enabled is
> broken, I encourage you raise an issue. It is not something that I
> believe is heavily tested, and could have very well broken on tip.

This was a regression. I've sent out a CL:
https://codereview.appspot.com/7307107

Anthony

Vasiliy Tolstov

unread,
Feb 13, 2013, 3:30:53 AM2/13/13
to Anthony Martin, Dave Cheney, golan...@googlegroups.com
Thanks!

2013/2/13 Anthony Martin <al...@pbrane.org>:
Reply all
Reply to author
Forward
0 new messages