Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/link: fedora22/amd64/go1.5.1 cgo link problem: /usr/bin/ld: /tmp/go-link-891155565/000000.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC #13017

Closed
glycerine opened this issue Oct 21, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@glycerine
Copy link

commented Oct 21, 2015

problem summary: on linux fedora22/amd64 eith gcc 5.1.1 and go1.5.1, I'm getting a link error from CGO. This same command set seems to work fine on OSX.

/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/link -o $WORK/rmq/_obj/exe/a.out -L $WORK -L /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/pkg/linux_amd64_shared -installsuffix \
shared -extld=gcc -buildmode=c-shared -buildid=6240fa792c7d18209c48f8d7c5c8abfb16c42607 $WORK/rmq.a
# rmq
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-891155565/000000.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp/go-link-891155565/000000.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2
[jaten@buzz src]$

details:

source code for R-3.2.2: https://cran.rstudio.com/src/base/R-3/R-3.2.2.tar.gz
source code for rmq package: https://github.com/glycerine/rmq

cd /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src

[jaten@buzz src]$ make  # build with go -x -work:

if test "$R_INSTALL_PKG" = "rmq"; then echo "R_INSTALL_PKG = rmq found in env, unpacking vendor.tar.gz"; tar xf vendor.tar.gz; fi;
gcc -c -o interface.o cpp/interface.cpp -Iinclude/
ar cr rmq/libinterface.a interface.o
cd rmq && GOPATH=/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/.. GO15VENDOREXPERIMENT=1 go build -buildmode=c-shared -x -work  -o ../rmq.so
WORK=/tmp/go-build007839714
mkdir -p $WORK/runtime/_obj/
mkdir -p $WORK/
cd /home/jaten/pkg/go1.5.1/src/runtime
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/runtime.a -trimpath $WORK -shared -p runtime -+ -installsuffix shared -buildid 4e05d2e38867f3f3fe5d1edfb4876c3283677d69 -D _/home/jaten/pkg/go1.5.1/src/runtime -I $WORK -pack -asmhdr $WORK/runtime/_obj/go_asm.h ./alg.go ./arch1_amd64.go ./arch_amd64.go ./atomic_amd64x.go ./atomic_pointer.go ./cgo.go ./cgocall.go ./cgocallback.go ./chan.go ./compiler.go ./complex.go ./cpuprof.go ./cputicks.go ./debug.go ./defs_linux_amd64.go ./env_posix.go ./error.go ./extern.go ./hash64.go ./hashmap.go ./hashmap_fast.go ./heapdump.go ./iface.go ./lfstack.go ./lfstack_amd64.go ./lock_futex.go ./malloc.go ./mbarrier.go ./mbitmap.go ./mcache.go ./mcentral.go ./mem_linux.go ./mfinal.go ./mfixalloc.go ./mgc.go ./mgcmark.go ./mgcsweep.go ./mgcwork.go ./mheap.go ./mprof.go ./msize.go ./mstats.go ./netpoll.go ./netpoll_epoll.go ./os1_linux.go ./os2_linux.go ./os_linux.go ./panic.go ./panic1.go ./parfor.go ./print1.go ./print1_write.go ./proc.go ./proc1.go ./race0.go ./rdebug.go ./rune.go ./runtime.go ./runtime1.go ./runtime2.go ./select.go ./sema.go ./signal1_unix.go ./signal_amd64x.go ./signal_linux.go ./signal_linux_amd64.go ./signal_unix.go ./sigpanic_unix.go ./sigqueue.go ./slice.go ./softfloat64.go ./sqrt.go ./stack1.go ./stack2.go ./string.go ./string1.go ./stubs.go ./stubs2.go ./symtab.go ./sys_x86.go ./time.go ./trace.go ./traceback.go ./type.go ./typekind.go ./typekind1.go ./unaligned1.go ./vdso_linux_amd64.go ./wbfat.go ./zgoarch_amd64.go ./zgoos_linux.go ./zversion.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/asm.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/asm_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/duff_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./duff_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/memclr_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./memclr_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/memmove_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./memmove_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/rt0_linux_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./rt0_linux_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/sys_linux_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sys_linux_amd64.s
pack r $WORK/runtime.a $WORK/runtime/_obj/asm.o $WORK/runtime/_obj/asm_amd64.o $WORK/runtime/_obj/duff_amd64.o $WORK/runtime/_obj/memclr_amd64.o $WORK/runtime/_obj/memmove_amd64.o $WORK/runtime/_obj/rt0_linux_amd64.o $WORK/runtime/_obj/sys_linux_amd64.o # internal
mkdir -p $WORK/errors/_obj/
mkdir -p $WORK/sync/atomic/_obj/
cd /home/jaten/pkg/go1.5.1/src/errors
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/errors.a -trimpath $WORK -shared -p errors -complete -installsuffix shared -buildid 2cd724d372edbe7950b2e4f46441eb8d7d20c9c3 -D _/home/jaten/pkg/go1.5.1/src/errors -I $WORK -pack ./errors.go
mkdir -p $WORK/sync/
cd /home/jaten/pkg/go1.5.1/src/sync/atomic
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/sync/atomic.a -trimpath $WORK -shared -p sync/atomic -installsuffix shared -buildid 866ad8d3f672d2350840fd73724cc24141e1dd7d -D _/home/jaten/pkg/go1.5.1/src/sync/atomic -I $WORK -pack -asmhdr $WORK/sync/atomic/_obj/go_asm.h ./doc.go ./value.go
mkdir -p $WORK/unicode/_obj/
cd /home/jaten/pkg/go1.5.1/src/unicode
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/unicode.a -trimpath $WORK -shared -p unicode -complete -installsuffix shared -buildid 3fcecf80b1757e86dddd38d98bfd500a7bd14485 -D _/home/jaten/pkg/go1.5.1/src/unicode -I $WORK -pack ./casetables.go ./digit.go ./graphic.go ./letter.go ./tables.go
cd /home/jaten/pkg/go1.5.1/src/sync/atomic
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/sync/atomic/_obj/asm_amd64.o -trimpath $WORK -I $WORK/sync/atomic/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
pack r $WORK/sync/atomic.a $WORK/sync/atomic/_obj/asm_amd64.o # internal
mkdir -p $WORK/sync/_obj/
cd /home/jaten/pkg/go1.5.1/src/sync
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/sync.a -trimpath $WORK -shared -p sync -installsuffix shared -buildid 08f0c59f92dce55cc72fb1f852dd75ab7c8f496d -D _/home/jaten/pkg/go1.5.1/src/sync -I $WORK -pack ./cond.go ./mutex.go ./once.go ./pool.go ./race0.go ./runtime.go ./rwmutex.go ./waitgroup.go
mkdir -p $WORK/io/_obj/
cd /home/jaten/pkg/go1.5.1/src/io
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/io.a -trimpath $WORK -shared -p io -complete -installsuffix shared -buildid f379c7ec08d9e36bea5d2444b6147a4d4c4d854e -D _/home/jaten/pkg/go1.5.1/src/io -I $WORK -pack ./io.go ./multi.go ./pipe.go
mkdir -p $WORK/unicode/utf8/_obj/
mkdir -p $WORK/unicode/
cd /home/jaten/pkg/go1.5.1/src/unicode/utf8
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/unicode/utf8.a -trimpath $WORK -shared -p unicode/utf8 -complete -installsuffix shared -buildid 97ec8d7aa4c8be88a1535622ccd229c72ae88fb5 -D _/home/jaten/pkg/go1.5.1/src/unicode/utf8 -I $WORK -pack ./utf8.go
mkdir -p $WORK/math/_obj/
cd /home/jaten/pkg/go1.5.1/src/math
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/math.a -trimpath $WORK -shared -p math -installsuffix shared -buildid 16db5c758c25d0ed2ab9798c3f1b13b04800f690 -D _/home/jaten/pkg/go1.5.1/src/math -I $WORK -pack -asmhdr $WORK/math/_obj/go_asm.h ./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
mkdir -p $WORK/bytes/_obj/
cd /home/jaten/pkg/go1.5.1/src/bytes
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/bytes.a -trimpath $WORK -shared -p bytes -installsuffix shared -buildid 386ed9da3b4b3039f40dd8ae63802d2d9c41cb69 -D _/home/jaten/pkg/go1.5.1/src/bytes -I $WORK -pack ./buffer.go ./bytes.go ./bytes_decl.go ./reader.go
mkdir -p $WORK/syscall/_obj/
cd /home/jaten/pkg/go1.5.1/src/syscall
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/syscall.a -trimpath $WORK -shared -p syscall -installsuffix shared -buildid 9b15fe9bb247bb45122d600809e6203041d72e67 -D _/home/jaten/pkg/go1.5.1/src/syscall -I $WORK -pack -asmhdr $WORK/syscall/_obj/go_asm.h ./env_unix.go ./exec_linux.go ./exec_unix.go ./flock.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
cd /home/jaten/pkg/go1.5.1/src/math
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/abs_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./abs_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/asin_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asin_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/atan2_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./atan2_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/atan_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./atan_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/dim_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./dim_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/exp2_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./exp2_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/exp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./exp_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/expm1_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./expm1_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/floor_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./floor_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/frexp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./frexp_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/hypot_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./hypot_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/ldexp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./ldexp_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/log10_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./log10_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/log1p_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./log1p_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/log_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./log_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/mod_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./mod_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/modf_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./modf_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/remainder_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./remainder_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/sin_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sin_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/sincos_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sincos_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/sqrt_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sqrt_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/tan_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./tan_amd64.s
pack r $WORK/math.a $WORK/math/_obj/abs_amd64.o $WORK/math/_obj/asin_amd64.o $WORK/math/_obj/atan2_amd64.o $WORK/math/_obj/atan_amd64.o $WORK/math/_obj/dim_amd64.o $WORK/math/_obj/exp2_amd64.o $WORK/math/_obj/exp_amd64.o $WORK/math/_obj/expm1_amd64.o $WORK/math/_obj/floor_amd64.o $WORK/math/_obj/frexp_amd64.o $WORK/math/_obj/hypot_amd64.o $WORK/math/_obj/ldexp_amd64.o $WORK/math/_obj/log10_amd64.o $WORK/math/_obj/log1p_amd64.o $WORK/math/_obj/log_amd64.o $WORK/math/_obj/mod_amd64.o $WORK/math/_obj/modf_amd64.o $WORK/math/_obj/remainder_amd64.o $WORK/math/_obj/sin_amd64.o $WORK/math/_obj/sincos_amd64.o $WORK/math/_obj/sqrt_amd64.o $WORK/math/_obj/tan_amd64.o # internal
mkdir -p $WORK/strconv/_obj/
cd /home/jaten/pkg/go1.5.1/src/strconv
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/strconv.a -trimpath $WORK -shared -p strconv -complete -installsuffix shared -buildid fa7d3de0ad85bc3628e997bc3fc77c9480aa1dc8 -D _/home/jaten/pkg/go1.5.1/src/strconv -I $WORK -pack ./atob.go ./atof.go ./atoi.go ./decimal.go ./doc.go ./extfloat.go ./ftoa.go ./isprint.go ./itoa.go ./quote.go
cd /home/jaten/pkg/go1.5.1/src/syscall
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/syscall/_obj/asm.o -trimpath $WORK -I $WORK/syscall/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/syscall/_obj/asm_linux_amd64.o -trimpath $WORK -I $WORK/syscall/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_linux_amd64.s
pack r $WORK/syscall.a $WORK/syscall/_obj/asm.o $WORK/syscall/_obj/asm_linux_amd64.o # internal
mkdir -p $WORK/time/_obj/
cd /home/jaten/pkg/go1.5.1/src/time
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/time.a -trimpath $WORK -shared -p time -installsuffix shared -buildid 82c85306756deb1f18246dbd5893a187f51e9f27 -D _/home/jaten/pkg/go1.5.1/src/time -I $WORK -pack ./format.go ./sleep.go ./sys_unix.go ./tick.go ./time.go ./zoneinfo.go ./zoneinfo_read.go ./zoneinfo_unix.go
mkdir -p $WORK/reflect/_obj/
cd /home/jaten/pkg/go1.5.1/src/reflect
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/reflect.a -trimpath $WORK -shared -p reflect -installsuffix shared -buildid fc9f2662025e17df27912467d9f275f09dc21aab -D _/home/jaten/pkg/go1.5.1/src/reflect -I $WORK -pack -asmhdr $WORK/reflect/_obj/go_asm.h ./deepequal.go ./makefunc.go ./type.go ./value.go
mkdir -p $WORK/os/_obj/
cd /home/jaten/pkg/go1.5.1/src/os
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/os.a -trimpath $WORK -shared -p os -installsuffix shared -buildid 5f5aea53b8ba28dd74151383bd8e8fc42d75c214 -D _/home/jaten/pkg/go1.5.1/src/os -I $WORK -pack ./dir_unix.go ./doc.go ./env.go ./error.go ./error_unix.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 ./sticky_notbsd.go ./str.go ./sys_linux.go ./sys_unix.go ./types.go ./types_notwin.go
cd /home/jaten/pkg/go1.5.1/src/reflect
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/reflect/_obj/asm_amd64.o -trimpath $WORK -I $WORK/reflect/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
pack r $WORK/reflect.a $WORK/reflect/_obj/asm_amd64.o # internal
mkdir -p $WORK/encoding/binary/_obj/
mkdir -p $WORK/encoding/
cd /home/jaten/pkg/go1.5.1/src/encoding/binary
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/binary.a -trimpath $WORK -shared -p encoding/binary -complete -installsuffix shared -buildid a6ae9b171d13c629bd4f46b40ad80cc22583f5ab -D _/home/jaten/pkg/go1.5.1/src/encoding/binary -I $WORK -pack ./binary.go ./varint.go
mkdir -p $WORK/fmt/_obj/
cd /home/jaten/pkg/go1.5.1/src/fmt
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/fmt.a -trimpath $WORK -shared -p fmt -complete -installsuffix shared -buildid 004dab24c04cf93e2be127eb16950a81cbcd95a7 -D _/home/jaten/pkg/go1.5.1/src/fmt -I $WORK -pack ./doc.go ./format.go ./print.go ./scan.go
mkdir -p $WORK/bufio/_obj/
cd /home/jaten/pkg/go1.5.1/src/bufio
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/bufio.a -trimpath $WORK -shared -p bufio -complete -installsuffix shared -buildid e0de6af3ae375bdfe388acd8b22eae95a7cacac8 -D _/home/jaten/pkg/go1.5.1/src/bufio -I $WORK -pack ./bufio.go ./scan.go
mkdir -p $WORK/encoding/base64/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/base64
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/base64.a -trimpath $WORK -shared -p encoding/base64 -complete -installsuffix shared -buildid 3e376591b984557c29b32f546402cda0a4091e8a -D _/home/jaten/pkg/go1.5.1/src/encoding/base64 -I $WORK -pack ./base64.go
mkdir -p $WORK/encoding/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding.a -trimpath $WORK -shared -p encoding -complete -installsuffix shared -buildid a1241e9ca072b54a2a9934fa7f58556aea1fe511 -D _/home/jaten/pkg/go1.5.1/src/encoding -I $WORK -pack ./encoding.go
mkdir -p $WORK/sort/_obj/
cd /home/jaten/pkg/go1.5.1/src/sort
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/sort.a -trimpath $WORK -shared -p sort -complete -installsuffix shared -buildid 6ef7f4fcbbad0049009ecd6e41165d9e21df138f -D _/home/jaten/pkg/go1.5.1/src/sort -I $WORK -pack ./search.go ./sort.go
mkdir -p $WORK/strings/_obj/
cd /home/jaten/pkg/go1.5.1/src/strings
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/strings.a -trimpath $WORK -shared -p strings -installsuffix shared -buildid 861fd81bf4d51f61665056b48400eedceef1efeb -D _/home/jaten/pkg/go1.5.1/src/strings -I $WORK -pack -asmhdr $WORK/strings/_obj/go_asm.h ./compare.go ./reader.go ./replace.go ./search.go ./strings.go ./strings_decl.go
mkdir -p $WORK/unicode/utf16/_obj/
cd /home/jaten/pkg/go1.5.1/src/unicode/utf16
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/unicode/utf16.a -trimpath $WORK -shared -p unicode/utf16 -complete -installsuffix shared -buildid 802c7bcfdca80a84270c8fd45d6c57dd145ad05b -D _/home/jaten/pkg/go1.5.1/src/unicode/utf16 -I $WORK -pack ./utf16.go
mkdir -p $WORK/vendor/github.com/philhofer/fwd/_obj/
mkdir -p $WORK/vendor/github.com/philhofer/
cd /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/vendor/github.com/philhofer/fwd
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/vendor/github.com/philhofer/fwd.a -trimpath $WORK -shared -p vendor/github.com/philhofer/fwd -complete -installsuffix shared -buildid 93e35f0ce2dc2d7a31d67efc99c4388883f5d79a -D _/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/vendor/github.com/philhofer/fwd -I $WORK -pack ./reader.go ./writer.go ./writer_unsafe.go
mkdir -p $WORK/crypto/subtle/_obj/
mkdir -p $WORK/crypto/
cd /home/jaten/pkg/go1.5.1/src/crypto/subtle
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/subtle.a -trimpath $WORK -shared -p crypto/subtle -complete -installsuffix shared -buildid b7345e07d9ad849817a00e20d81b29b705ac5d48 -D _/home/jaten/pkg/go1.5.1/src/crypto/subtle -I $WORK -pack ./constant_time.go
mkdir -p $WORK/crypto/cipher/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/cipher
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/cipher.a -trimpath $WORK -shared -p crypto/cipher -complete -installsuffix shared -buildid 99a5bf79bf587cd2dc092ce0c4a14eabf40310a8 -D _/home/jaten/pkg/go1.5.1/src/crypto/cipher -I $WORK -pack ./cbc.go ./cfb.go ./cipher.go ./ctr.go ./gcm.go ./io.go ./ofb.go ./xor.go
cd /home/jaten/pkg/go1.5.1/src/strings
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/strings/_obj/strings.o -trimpath $WORK -I $WORK/strings/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./strings.s
pack r $WORK/strings.a $WORK/strings/_obj/strings.o # internal
mkdir -p $WORK/encoding/json/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/json
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/json.a -trimpath $WORK -shared -p encoding/json -complete -installsuffix shared -buildid ab59d5ded29a7af72cb8f127cb55eb6d38166813 -D _/home/jaten/pkg/go1.5.1/src/encoding/json -I $WORK -pack ./decode.go ./encode.go ./fold.go ./indent.go ./scanner.go ./stream.go ./tags.go
mkdir -p $WORK/crypto/aes/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/aes
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/aes.a -trimpath $WORK -shared -p crypto/aes -installsuffix shared -buildid 3e14b44b0ba40b0e4fc11d74fc93581a520613e8 -D _/home/jaten/pkg/go1.5.1/src/crypto/aes -I $WORK -pack -asmhdr $WORK/crypto/aes/_obj/go_asm.h ./block.go ./cipher.go ./cipher_asm.go ./const.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/aes/_obj/asm_amd64.o -trimpath $WORK -I $WORK/crypto/aes/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
pack r $WORK/crypto/aes.a $WORK/crypto/aes/_obj/asm_amd64.o # internal
mkdir -p $WORK/internal/syscall/unix/_obj/
mkdir -p $WORK/internal/syscall/
cd /home/jaten/pkg/go1.5.1/src/internal/syscall/unix
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/internal/syscall/unix.a -trimpath $WORK -shared -p internal/syscall/unix -complete -installsuffix shared -buildid 59947db295785d4e0ff669c012d22bccf86f1d26 -D _/home/jaten/pkg/go1.5.1/src/internal/syscall/unix -I $WORK -pack ./getrandom_linux.go
mkdir -p $WORK/math/rand/_obj/
mkdir -p $WORK/math/
cd /home/jaten/pkg/go1.5.1/src/math/rand
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/math/rand.a -trimpath $WORK -shared -p math/rand -complete -installsuffix shared -buildid 4a8832981e918af68e3a0531bc3930983467b5f0 -D _/home/jaten/pkg/go1.5.1/src/math/rand -I $WORK -pack ./exp.go ./normal.go ./rand.go ./rng.go ./zipf.go
mkdir -p $WORK/math/big/_obj/
cd /home/jaten/pkg/go1.5.1/src/math/big
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/math/big.a -trimpath $WORK -shared -p math/big -installsuffix shared -buildid 97661c06d17f79be293f796b0b4a74fb4fd7ef49 -D _/home/jaten/pkg/go1.5.1/src/math/big -I $WORK -pack -asmhdr $WORK/math/big/_obj/go_asm.h ./accuracy_string.go ./arith.go ./arith_decl.go ./decimal.go ./float.go ./floatconv.go ./ftoa.go ./int.go ./intconv.go ./nat.go ./natconv.go ./rat.go ./ratconv.go ./roundingmode_string.go
mkdir -p $WORK/vendor/github.com/glycerine/msgp/msgp/_obj/
mkdir -p $WORK/vendor/github.com/glycerine/msgp/
cd /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/vendor/github.com/glycerine/msgp/msgp
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/vendor/github.com/glycerine/msgp/msgp.a -trimpath $WORK -shared -p vendor/github.com/glycerine/msgp/msgp -complete -installsuffix shared -buildid e6f2f08a3ed814193e3cb229a722fe7bf920d4b2 -importmap github.com/philhofer/fwd=vendor/github.com/philhofer/fwd -D _/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/vendor/github.com/glycerine/msgp/msgp -I $WORK -I /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/pkg/linux_amd64_shared -pack ./advise_linux.go ./circular.go ./defs.go ./edit.go ./elsize.go ./errors.go ./extension.go ./file.go ./integers.go ./json.go ./json_bytes.go ./number.go ./read.go ./read_bytes.go ./size.go ./unsafe.go ./write.go ./write_bytes.go
cd /home/jaten/pkg/go1.5.1/src/math/big
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/big/_obj/arith_amd64.o -trimpath $WORK -I $WORK/math/big/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./arith_amd64.s
pack r $WORK/math/big.a $WORK/math/big/_obj/arith_amd64.o # internal
mkdir -p $WORK/crypto/rand/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/rand
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/rand.a -trimpath $WORK -shared -p crypto/rand -complete -installsuffix shared -buildid 90e21c02d570b58e32b2c1260ab7b176a14c8736 -D _/home/jaten/pkg/go1.5.1/src/crypto/rand -I $WORK -pack ./eagain.go ./rand.go ./rand_linux.go ./rand_unix.go ./util.go
mkdir -p $WORK/hash/_obj/
cd /home/jaten/pkg/go1.5.1/src/hash
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/hash.a -trimpath $WORK -shared -p hash -complete -installsuffix shared -buildid 4e9839263c21022f97938da8acaa0657835ed2ea -D _/home/jaten/pkg/go1.5.1/src/hash -I $WORK -pack ./hash.go
mkdir -p $WORK/crypto/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto.a -trimpath $WORK -shared -p crypto -complete -installsuffix shared -buildid 0e3dd5090a9c5c36d35b00f40a0a17b769f6d519 -D _/home/jaten/pkg/go1.5.1/src/crypto -I $WORK -pack ./crypto.go
mkdir -p $WORK/crypto/sha1/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/sha1
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/sha1.a -trimpath $WORK -shared -p crypto/sha1 -installsuffix shared -buildid 2be291ecbf9a785200d010653b9cec576755966a -D _/home/jaten/pkg/go1.5.1/src/crypto/sha1 -I $WORK -pack -asmhdr $WORK/crypto/sha1/_obj/go_asm.h ./sha1.go ./sha1block.go ./sha1block_decl.go
mkdir -p $WORK/container/list/_obj/
mkdir -p $WORK/container/
cd /home/jaten/pkg/go1.5.1/src/container/list
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/container/list.a -trimpath $WORK -shared -p container/list -complete -installsuffix shared -buildid 911b50d0b44a734bf2447a86e264aa90c9c82d69 -D _/home/jaten/pkg/go1.5.1/src/container/list -I $WORK -pack ./list.go
cd /home/jaten/pkg/go1.5.1/src/crypto/sha1
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/sha1/_obj/sha1block_amd64.o -trimpath $WORK -I $WORK/crypto/sha1/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sha1block_amd64.s
pack r $WORK/crypto/sha1.a $WORK/crypto/sha1/_obj/sha1block_amd64.o # internal
mkdir -p $WORK/crypto/des/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/des
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/des.a -trimpath $WORK -shared -p crypto/des -complete -installsuffix shared -buildid 7f3ee9eb415982c28bd14dc3585074b93b590e91 -D _/home/jaten/pkg/go1.5.1/src/crypto/des -I $WORK -pack ./block.go ./cipher.go ./const.go
mkdir -p $WORK/crypto/elliptic/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/elliptic
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/elliptic.a -trimpath $WORK -shared -p crypto/elliptic -complete -installsuffix shared -buildid d4d557ccf97021f6be71d0148a9e31bbcd696a1d -D _/home/jaten/pkg/go1.5.1/src/crypto/elliptic -I $WORK -pack ./elliptic.go ./p224.go ./p256.go
mkdir -p $WORK/crypto/sha512/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/sha512
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/sha512.a -trimpath $WORK -shared -p crypto/sha512 -installsuffix shared -buildid 8746c4d0ba9c384648779e4b81de3656613c5aec -D _/home/jaten/pkg/go1.5.1/src/crypto/sha512 -I $WORK -pack -asmhdr $WORK/crypto/sha512/_obj/go_asm.h ./sha512.go ./sha512block_decl.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/sha512/_obj/sha512block_amd64.o -trimpath $WORK -I $WORK/crypto/sha512/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sha512block_amd64.s
pack r $WORK/crypto/sha512.a $WORK/crypto/sha512/_obj/sha512block_amd64.o # internal
mkdir -p $WORK/encoding/asn1/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/asn1
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/asn1.a -trimpath $WORK -shared -p encoding/asn1 -complete -installsuffix shared -buildid d9680f2095cb7a2d059e291fd2df8ddf9544a15c -D _/home/jaten/pkg/go1.5.1/src/encoding/asn1 -I $WORK -pack ./asn1.go ./common.go ./marshal.go
mkdir -p $WORK/crypto/hmac/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/hmac
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/hmac.a -trimpath $WORK -shared -p crypto/hmac -complete -installsuffix shared -buildid 16e3ff3ab6ba74709ec88019d9013ca5b02ecd2e -D _/home/jaten/pkg/go1.5.1/src/crypto/hmac -I $WORK -pack ./hmac.go
mkdir -p $WORK/crypto/md5/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/md5
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/md5.a -trimpath $WORK -shared -p crypto/md5 -installsuffix shared -buildid 36aa45a00ec4206071339f7d2124f5f06cae8c4d -D _/home/jaten/pkg/go1.5.1/src/crypto/md5 -I $WORK -pack -asmhdr $WORK/crypto/md5/_obj/go_asm.h ./md5.go ./md5block.go ./md5block_decl.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/md5/_obj/md5block_amd64.o -trimpath $WORK -I $WORK/crypto/md5/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./md5block_amd64.s
pack r $WORK/crypto/md5.a $WORK/crypto/md5/_obj/md5block_amd64.o # internal
mkdir -p $WORK/crypto/rc4/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/rc4
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/rc4.a -trimpath $WORK -shared -p crypto/rc4 -installsuffix shared -buildid b2b26f9a50da45358008d4496d76ba58e28e1bd7 -D _/home/jaten/pkg/go1.5.1/src/crypto/rc4 -I $WORK -pack -asmhdr $WORK/crypto/rc4/_obj/go_asm.h ./rc4.go ./rc4_asm.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/rc4/_obj/rc4_amd64.o -trimpath $WORK -I $WORK/crypto/rc4/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./rc4_amd64.s
pack r $WORK/crypto/rc4.a $WORK/crypto/rc4/_obj/rc4_amd64.o # internal
mkdir -p $WORK/crypto/rsa/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/rsa
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/rsa.a -trimpath $WORK -shared -p crypto/rsa -complete -installsuffix shared -buildid 6e4b2b9720cbfbf0705b01fa1d9d03cba6293242 -D _/home/jaten/pkg/go1.5.1/src/crypto/rsa -I $WORK -pack ./pkcs1v15.go ./pss.go ./rsa.go
mkdir -p $WORK/crypto/ecdsa/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/ecdsa
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/ecdsa.a -trimpath $WORK -shared -p crypto/ecdsa -complete -installsuffix shared -buildid 3634cdf2e9be0bd134cf3e2ebd36f600db2c9eca -D _/home/jaten/pkg/go1.5.1/src/crypto/ecdsa -I $WORK -pack ./ecdsa.go
mkdir -p $WORK/crypto/sha256/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/sha256
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/sha256.a -trimpath $WORK -shared -p crypto/sha256 -installsuffix shared -buildid 66eb35a047ac8f88d9daafc24894c5a297f1caa6 -D _/home/jaten/pkg/go1.5.1/src/crypto/sha256 -I $WORK -pack -asmhdr $WORK/crypto/sha256/_obj/go_asm.h ./sha256.go ./sha256block_decl.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/sha256/_obj/sha256block_amd64.o -trimpath $WORK -I $WORK/crypto/sha256/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sha256block_amd64.s
pack r $WORK/crypto/sha256.a $WORK/crypto/sha256/_obj/sha256block_amd64.o # internal
mkdir -p $WORK/crypto/dsa/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/dsa
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/dsa.a -trimpath $WORK -shared -p crypto/dsa -complete -installsuffix shared -buildid caa157b4989054f627de44c6b225059fd49a3b20 -D _/home/jaten/pkg/go1.5.1/src/crypto/dsa -I $WORK -pack ./dsa.go
mkdir -p $WORK/crypto/x509/pkix/_obj/
mkdir -p $WORK/crypto/x509/
cd /home/jaten/pkg/go1.5.1/src/crypto/x509/pkix
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/x509/pkix.a -trimpath $WORK -shared -p crypto/x509/pkix -complete -installsuffix shared -buildid 6efa978bb6053827e8b35648516ce4091dc2eaef -D _/home/jaten/pkg/go1.5.1/src/crypto/x509/pkix -I $WORK -pack ./pkix.go
mkdir -p $WORK/encoding/hex/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/hex
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/hex.a -trimpath $WORK -shared -p encoding/hex -complete -installsuffix shared -buildid 135e598964a0cb7bc546ae257dd9d23c239855cf -D _/home/jaten/pkg/go1.5.1/src/encoding/hex -I $WORK -pack ./hex.go
mkdir -p $WORK/encoding/pem/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/pem
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/pem.a -trimpath $WORK -shared -p encoding/pem -complete -installsuffix shared -buildid fbb2b3b400ec589377afd34763cdf5a4d793d685 -D _/home/jaten/pkg/go1.5.1/src/encoding/pem -I $WORK -pack ./pem.go
mkdir -p $WORK/path/filepath/_obj/
mkdir -p $WORK/path/
cd /home/jaten/pkg/go1.5.1/src/path/filepath
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/path/filepath.a -trimpath $WORK -shared -p path/filepath -complete -installsuffix shared -buildid 8bc9ef6f89e613945ef891039c2471834cf7737b -D _/home/jaten/pkg/go1.5.1/src/path/filepath -I $WORK -pack ./match.go ./path.go ./path_unix.go ./symlink.go ./symlink_unix.go
mkdir -p $WORK/internal/singleflight/_obj/
mkdir -p $WORK/internal/
cd /home/jaten/pkg/go1.5.1/src/internal/singleflight
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/internal/singleflight.a -trimpath $WORK -shared -p internal/singleflight -complete -installsuffix shared -buildid 209f9957d01fde1ee5ac2e1f3fbed756acfb13a3 -D _/home/jaten/pkg/go1.5.1/src/internal/singleflight -I $WORK -pack ./singleflight.go
mkdir -p $WORK/path/_obj/
cd /home/jaten/pkg/go1.5.1/src/path
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/path.a -trimpath $WORK -shared -p path -complete -installsuffix shared -buildid cd92cce2c20e333343faca62c5131e6103866402 -D _/home/jaten/pkg/go1.5.1/src/path -I $WORK -pack ./match.go ./path.go
mkdir -p $WORK/go/token/_obj/
mkdir -p $WORK/go/
cd /home/jaten/pkg/go1.5.1/src/go/token
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/token.a -trimpath $WORK -shared -p go/token -complete -installsuffix shared -buildid f9132e4b78f0e7e0bff625706529b7c527b38cd2 -D _/home/jaten/pkg/go1.5.1/src/go/token -I $WORK -pack ./position.go ./serialize.go ./token.go
mkdir -p $WORK/io/ioutil/_obj/
mkdir -p $WORK/io/
cd /home/jaten/pkg/go1.5.1/src/io/ioutil
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/io/ioutil.a -trimpath $WORK -shared -p io/ioutil -complete -installsuffix shared -buildid 4bfca0ef45e940c05d9383d961b80b81efab381f -D _/home/jaten/pkg/go1.5.1/src/io/ioutil -I $WORK -pack ./ioutil.go ./tempfile.go
mkdir -p $WORK/go/scanner/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/scanner
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/scanner.a -trimpath $WORK -shared -p go/scanner -complete -installsuffix shared -buildid 5b4454326fa7b81e20338c26f53c6c3985b478d9 -D _/home/jaten/pkg/go1.5.1/src/go/scanner -I $WORK -pack ./errors.go ./scanner.go
mkdir -p $WORK/text/tabwriter/_obj/
mkdir -p $WORK/text/
cd /home/jaten/pkg/go1.5.1/src/text/tabwriter
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/text/tabwriter.a -trimpath $WORK -shared -p text/tabwriter -complete -installsuffix shared -buildid d57fa82aedfb4813ef25ce840a2963d104f28d55 -D _/home/jaten/pkg/go1.5.1/src/text/tabwriter -I $WORK -pack ./tabwriter.go
mkdir -p $WORK/compress/flate/_obj/
mkdir -p $WORK/compress/
cd /home/jaten/pkg/go1.5.1/src/compress/flate
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/compress/flate.a -trimpath $WORK -shared -p compress/flate -complete -installsuffix shared -buildid 008ead4c3982ebe8dd7aaef669df3612339f503f -D _/home/jaten/pkg/go1.5.1/src/compress/flate -I $WORK -pack ./copy.go ./deflate.go ./fixedhuff.go ./huffman_bit_writer.go ./huffman_code.go ./inflate.go ./reverse_bits.go ./token.go
mkdir -p $WORK/go/ast/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/ast
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/ast.a -trimpath $WORK -shared -p go/ast -complete -installsuffix shared -buildid 4188c12c94508692f7c2deac7e8361992519f9e5 -D _/home/jaten/pkg/go1.5.1/src/go/ast -I $WORK -pack ./ast.go ./commentmap.go ./filter.go ./import.go ./print.go ./resolve.go ./scope.go ./walk.go
mkdir -p $WORK/hash/crc32/_obj/
mkdir -p $WORK/hash/
cd /home/jaten/pkg/go1.5.1/src/hash/crc32
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/hash/crc32.a -trimpath $WORK -shared -p hash/crc32 -installsuffix shared -buildid 70cf962909203a8f77a1e9ace8a264d32935d720 -D _/home/jaten/pkg/go1.5.1/src/hash/crc32 -I $WORK -pack -asmhdr $WORK/hash/crc32/_obj/go_asm.h ./crc32.go ./crc32_amd64x.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/hash/crc32/_obj/crc32_amd64.o -trimpath $WORK -I $WORK/hash/crc32/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./crc32_amd64.s
pack r $WORK/hash/crc32.a $WORK/hash/crc32/_obj/crc32_amd64.o # internal
mkdir -p $WORK/compress/gzip/_obj/
cd /home/jaten/pkg/go1.5.1/src/compress/gzip
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/compress/gzip.a -trimpath $WORK -shared -p compress/gzip -complete -installsuffix shared -buildid b20c4353effb771a09dfa59d7cbfd917a064ddb3 -D _/home/jaten/pkg/go1.5.1/src/compress/gzip -I $WORK -pack ./gunzip.go ./gzip.go
mkdir -p $WORK/log/_obj/
cd /home/jaten/pkg/go1.5.1/src/log
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/log.a -trimpath $WORK -shared -p log -complete -installsuffix shared -buildid b02a05ae50bbc1ed8c9978e798be6c02621e161c -D _/home/jaten/pkg/go1.5.1/src/log -I $WORK -pack ./log.go
mkdir -p $WORK/go/parser/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/parser
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/parser.a -trimpath $WORK -shared -p go/parser -complete -installsuffix shared -buildid 3b42841b701385268d75a3c7335efaf1ce98c5af -D _/home/jaten/pkg/go1.5.1/src/go/parser -I $WORK -pack ./interface.go ./parser.go
mkdir -p $WORK/go/printer/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/printer
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/printer.a -trimpath $WORK -shared -p go/printer -complete -installsuffix shared -buildid 9e8c708d20ac2b46389e247635a854183bd61af5 -D _/home/jaten/pkg/go1.5.1/src/go/printer -I $WORK -pack ./nodes.go ./printer.go
mkdir -p $WORK/mime/_obj/
cd /home/jaten/pkg/go1.5.1/src/mime
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/mime.a -trimpath $WORK -shared -p mime -complete -installsuffix shared -buildid 54dbbbd2bdae7fb5a4b9a220b678a738c9f1c1cf -D _/home/jaten/pkg/go1.5.1/src/mime -I $WORK -pack ./encodedword.go ./grammar.go ./mediatype.go ./type.go ./type_unix.go
mkdir -p $WORK/runtime/cgo/_obj/
mkdir -p $WORK/runtime/
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
CGO_LDFLAGS="-g" "-O2" "-lpthread" /home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/runtime/cgo/_obj/ -importpath runtime/cgo -import_runtime_cgo=false -import_syscall=false -exportheader=$WORK/runtime/cgo/_obj/_cgo_install.h -- -I $WORK/runtime/cgo/_obj/ -Wall -Werror cgo.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -print-libgcc-file-name
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/_cgo_main.o -c $WORK/runtime/cgo/_obj/_cgo_main.c
mkdir -p $WORK/mime/quotedprintable/_obj/
mkdir -p $WORK/mime/
cd /home/jaten/pkg/go1.5.1/src/mime/quotedprintable
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/mime/quotedprintable.a -trimpath $WORK -shared -p mime/quotedprintable -complete -installsuffix shared -buildid d4f5f9ce9a2f0f649ff53b564299ecd4a371b217 -D _/home/jaten/pkg/go1.5.1/src/mime/quotedprintable -I $WORK -pack ./reader.go ./writer.go
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/_cgo_export.o -c $WORK/runtime/cgo/_obj/_cgo_export.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/cgo.cgo2.o -c $WORK/runtime/cgo/_obj/cgo.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_fatalf.o -c ./gcc_fatalf.c
mkdir -p $WORK/net/http/internal/_obj/
mkdir -p $WORK/net/http/
cd /home/jaten/pkg/go1.5.1/src/net/http/internal
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/http/internal.a -trimpath $WORK -shared -p net/http/internal -complete -installsuffix shared -buildid d4befae1a0ac3796812b495c14fe25c778273f70 -D _/home/jaten/pkg/go1.5.1/src/net/http/internal -I $WORK -pack ./chunked.go
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_libinit.o -c ./gcc_libinit.c
mkdir -p $WORK/net/url/_obj/
mkdir -p $WORK/net/
cd /home/jaten/pkg/go1.5.1/src/net/url
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/url.a -trimpath $WORK -shared -p net/url -complete -installsuffix shared -buildid 5c623fb20555a26f38edd42f60ffb53cac023cc9 -D _/home/jaten/pkg/go1.5.1/src/net/url -I $WORK -pack ./url.go
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o -c ./gcc_linux_amd64.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_setenv.o -c ./gcc_setenv.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_util.o -c ./gcc_util.c
mkdir -p $WORK/internal/format/_obj/
cd /home/jaten/pkg/go1.5.1/src/internal/format
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/internal/format.a -trimpath $WORK -shared -p internal/format -complete -installsuffix shared -buildid c448095378f9e4faa85afa1bc7d0ff721062f143 -D _/home/jaten/pkg/go1.5.1/src/internal/format -I $WORK -pack ./format.go
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_amd64.o -c ./gcc_amd64.S
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/runtime/cgo/_obj/_cgo_.o $WORK/runtime/cgo/_obj/_cgo_main.o $WORK/runtime/cgo/_obj/_cgo_export.o $WORK/runtime/cgo/_obj/cgo.cgo2.o $WORK/runtime/cgo/_obj/gcc_fatalf.o $WORK/runtime/cgo/_obj/gcc_libinit.o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o $WORK/runtime/cgo/_obj/gcc_setenv.o $WORK/runtime/cgo/_obj/gcc_util.o $WORK/runtime/cgo/_obj/gcc_amd64.o -g -O2 -lpthread
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/runtime/cgo/_obj/ -dynpackage cgo -dynimport $WORK/runtime/cgo/_obj/_cgo_.o -dynout $WORK/runtime/cgo/_obj/_cgo_import.go -dynlinker
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/runtime/cgo/_obj/_all.o $WORK/runtime/cgo/_obj/_cgo_export.o $WORK/runtime/cgo/_obj/cgo.cgo2.o $WORK/runtime/cgo/_obj/gcc_fatalf.o $WORK/runtime/cgo/_obj/gcc_libinit.o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o $WORK/runtime/cgo/_obj/gcc_setenv.o $WORK/runtime/cgo/_obj/gcc_util.o $WORK/runtime/cgo/_obj/gcc_amd64.o -g -O2 -Wl,-r -nostdlib /usr/lib/gcc/x86_64-redhat-linux/5.1.1/libgcc.a -Wl,--build-id=none
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/runtime/cgo.a -trimpath $WORK -shared -p runtime/cgo -installsuffix shared -buildid d3cf5508fc5faeae42beb51dfab658200014c55a -D _/home/jaten/pkg/go1.5.1/src/runtime/cgo -I $WORK -pack -asmhdr $WORK/runtime/cgo/_obj/go_asm.h ./callbacks.go ./iscgo.go ./setenv.go $WORK/runtime/cgo/_obj/_cgo_gotypes.go $WORK/runtime/cgo/_obj/cgo.cgo1.go $WORK/runtime/cgo/_obj/_cgo_import.go
mkdir -p $WORK/go/format/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/format
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/format.a -trimpath $WORK -shared -p go/format -complete -installsuffix shared -buildid ca58ba4fa8bfcb3354064917d22e055c0a4bcd13 -D _/home/jaten/pkg/go1.5.1/src/go/format -I $WORK -pack ./format.go
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/cgo/_obj/asm_amd64.o -trimpath $WORK -I $WORK/runtime/cgo/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
pack r $WORK/runtime/cgo.a $WORK/runtime/cgo/_obj/asm_amd64.o $WORK/runtime/cgo/_obj/_all.o # internal
mkdir -p $WORK/net/_obj/
cd /home/jaten/pkg/go1.5.1/src/net
CGO_LDFLAGS="-g" "-O2" /home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/net/_obj/ -importpath net -exportheader=$WORK/net/_obj/_cgo_install.h -- -I $WORK/net/_obj/ cgo_linux.go cgo_resnew.go cgo_socknew.go cgo_unix.go
mkdir -p $WORK/encoding/gob/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/gob
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/gob.a -trimpath $WORK -shared -p encoding/gob -complete -installsuffix shared -buildid 9b6574ba6ea3dbe51b178f04cf2c469e6ef0c047 -D _/home/jaten/pkg/go1.5.1/src/encoding/gob -I $WORK -pack ./dec_helpers.go ./decode.go ./decoder.go ./doc.go ./enc_helpers.go ./encode.go ./encoder.go ./error.go ./type.go
cd /home/jaten/pkg/go1.5.1/src/net
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -g -O2 -o $WORK/net/_obj/_cgo_main.o -c $WORK/net/_obj/_cgo_main.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -g -O2 -o $WORK/net/_obj/_cgo_export.o -c $WORK/net/_obj/_cgo_export.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -g -O2 -o $WORK/net/_obj/cgo_linux.cgo2.o -c $WORK/net/_obj/cgo_linux.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -g -O2 -o $WORK/net/_obj/cgo_resnew.cgo2.o -c $WORK/net/_obj/cgo_resnew.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -g -O2 -o $WORK/net/_obj/cgo_socknew.cgo2.o -c $WORK/net/_obj/cgo_socknew.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -g -O2 -o $WORK/net/_obj/cgo_unix.cgo2.o -c $WORK/net/_obj/cgo_unix.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/net/_obj/_cgo_.o $WORK/net/_obj/_cgo_main.o $WORK/net/_obj/_cgo_export.o $WORK/net/_obj/cgo_linux.cgo2.o $WORK/net/_obj/cgo_resnew.cgo2.o $WORK/net/_obj/cgo_socknew.cgo2.o $WORK/net/_obj/cgo_unix.cgo2.o -g -O2
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/net/_obj/ -dynpackage net -dynimport $WORK/net/_obj/_cgo_.o -dynout $WORK/net/_obj/_cgo_import.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/net/_obj/_all.o $WORK/net/_obj/_cgo_export.o $WORK/net/_obj/cgo_linux.cgo2.o $WORK/net/_obj/cgo_resnew.cgo2.o $WORK/net/_obj/cgo_socknew.cgo2.o $WORK/net/_obj/cgo_unix.cgo2.o -g -O2 -Wl,-r -nostdlib /usr/lib/gcc/x86_64-redhat-linux/5.1.1/libgcc.a -Wl,--build-id=none
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net.a -trimpath $WORK -shared -p net -installsuffix shared -buildid 90ba2c8cda5a8c17cb77a510b3353ad9e9e4889f -D _/home/jaten/pkg/go1.5.1/src/net -I $WORK -pack ./addrselect.go ./conf.go ./dial.go ./dnsclient.go ./dnsclient_unix.go ./dnsconfig_unix.go ./dnsmsg.go ./fd_mutex.go ./fd_poll_runtime.go ./fd_posix.go ./fd_unix.go ./file.go ./file_unix.go ./hook.go ./hook_cloexec.go ./hook_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 ./nss.go ./parse.go ./pipe.go ./port.go ./port_unix.go ./sendfile_linux.go ./sock_cloexec.go ./sock_linux.go ./sock_posix.go ./sockopt_linux.go ./sockopt_posix.go ./sockoptip_linux.go ./sockoptip_posix.go ./tcpsock.go ./tcpsock_posix.go ./tcpsockopt_posix.go ./tcpsockopt_unix.go ./udpsock.go ./udpsock_posix.go ./unixsock.go ./unixsock_posix.go $WORK/net/_obj/_cgo_gotypes.go $WORK/net/_obj/cgo_linux.cgo1.go $WORK/net/_obj/cgo_resnew.cgo1.go $WORK/net/_obj/cgo_socknew.cgo1.go $WORK/net/_obj/cgo_unix.cgo1.go $WORK/net/_obj/_cgo_import.go
mkdir -p $WORK/html/_obj/
cd /home/jaten/pkg/go1.5.1/src/html
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/html.a -trimpath $WORK -shared -p html -complete -installsuffix shared -buildid 969979637a79f0bb85539d1058c2641f23e73228 -D _/home/jaten/pkg/go1.5.1/src/html -I $WORK -pack ./entity.go ./escape.go
mkdir -p $WORK/text/template/parse/_obj/
mkdir -p $WORK/text/template/
cd /home/jaten/pkg/go1.5.1/src/text/template/parse
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/text/template/parse.a -trimpath $WORK -shared -p text/template/parse -complete -installsuffix shared -buildid d4baee7e3c8436c6b9ce9ead79f343de7b317b58 -D _/home/jaten/pkg/go1.5.1/src/text/template/parse -I $WORK -pack ./lex.go ./node.go ./parse.go
mkdir -p $WORK/text/template/_obj/
cd /home/jaten/pkg/go1.5.1/src/text/template
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/text/template.a -trimpath $WORK -shared -p text/template -complete -installsuffix shared -buildid 97edb139a88765b760d87fbd81d4308846a536bf -D _/home/jaten/pkg/go1.5.1/src/text/template -I $WORK -pack ./doc.go ./exec.go ./funcs.go ./helper.go ./option.go ./template.go
mkdir -p $WORK/html/template/_obj/
mkdir -p $WORK/html/
cd /home/jaten/pkg/go1.5.1/src/html/template
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/html/template.a -trimpath $WORK -shared -p html/template -complete -installsuffix shared -buildid 8d283ab666fd588164e7e648762ee3f1dc5bc886 -D _/home/jaten/pkg/go1.5.1/src/html/template -I $WORK -pack ./attr.go ./content.go ./context.go ./css.go ./doc.go ./error.go ./escape.go ./html.go ./js.go ./template.go ./transition.go ./url.go
cd /home/jaten/pkg/go1.5.1/src/net
pack r $WORK/net.a $WORK/net/_obj/_all.o # internal
mkdir -p $WORK/crypto/x509/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/x509
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/x509.a -trimpath $WORK -shared -p crypto/x509 -complete -installsuffix shared -buildid a5f585ceff45b7ebc30b51843be6d305fc83e19f -D _/home/jaten/pkg/go1.5.1/src/crypto/x509 -I $WORK -pack ./cert_pool.go ./pem_decrypt.go ./pkcs1.go ./pkcs8.go ./root.go ./root_linux.go ./root_unix.go ./sec1.go ./verify.go ./x509.go
mkdir -p $WORK/net/textproto/_obj/
cd /home/jaten/pkg/go1.5.1/src/net/textproto
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/textproto.a -trimpath $WORK -shared -p net/textproto -complete -installsuffix shared -buildid 9a4093be68234892ca83f0c2159f3bfe003bb7ef -D _/home/jaten/pkg/go1.5.1/src/net/textproto -I $WORK -pack ./header.go ./pipeline.go ./reader.go ./textproto.go ./writer.go
mkdir -p $WORK/mime/multipart/_obj/
cd /home/jaten/pkg/go1.5.1/src/mime/multipart
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/mime/multipart.a -trimpath $WORK -shared -p mime/multipart -complete -installsuffix shared -buildid 0ede237dd15f4d7534a4ee5f6aba3965ced344f2 -D _/home/jaten/pkg/go1.5.1/src/mime/multipart -I $WORK -pack ./formdata.go ./multipart.go ./writer.go
mkdir -p $WORK/crypto/tls/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/tls
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/tls.a -trimpath $WORK -shared -p crypto/tls -complete -installsuffix shared -buildid 8a92f99b6090c54d1e2ff06641a154dc2ea7ed0d -D _/home/jaten/pkg/go1.5.1/src/crypto/tls -I $WORK -pack ./alert.go ./cipher_suites.go ./common.go ./conn.go ./handshake_client.go ./handshake_messages.go ./handshake_server.go ./key_agreement.go ./prf.go ./ticket.go ./tls.go
mkdir -p $WORK/regexp/syntax/_obj/
mkdir -p $WORK/regexp/
cd /home/jaten/pkg/go1.5.1/src/regexp/syntax
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/regexp/syntax.a -trimpath $WORK -shared -p regexp/syntax -complete -installsuffix shared -buildid f76330c50c226e2f876952f561a49515a3c7467b -D _/home/jaten/pkg/go1.5.1/src/regexp/syntax -I $WORK -pack ./compile.go ./doc.go ./parse.go ./perl_groups.go ./prog.go ./regexp.go ./simplify.go
mkdir -p $WORK/regexp/_obj/
cd /home/jaten/pkg/go1.5.1/src/regexp
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/regexp.a -trimpath $WORK -shared -p regexp -complete -installsuffix shared -buildid 26aa0573205329b17df044f4bd55f1640d14dac5 -D _/home/jaten/pkg/go1.5.1/src/regexp -I $WORK -pack ./backtrack.go ./exec.go ./onepass.go ./regexp.go
mkdir -p $WORK/net/http/_obj/
cd /home/jaten/pkg/go1.5.1/src/net/http
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/http.a -trimpath $WORK -shared -p net/http -complete -installsuffix shared -buildid ea816c77bbb19fbc8f673482585dc1c165eff388 -D _/home/jaten/pkg/go1.5.1/src/net/http -I $WORK -pack ./client.go ./cookie.go ./doc.go ./filetransport.go ./fs.go ./header.go ./jar.go ./lex.go ./request.go ./response.go ./server.go ./sniff.go ./status.go ./transfer.go ./transport.go
mkdir -p $WORK/vendor/github.com/gorilla/websocket/_obj/
mkdir -p $WORK/vendor/github.com/gorilla/
cd /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/vendor/github.com/gorilla/websocket
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/vendor/github.com/gorilla/websocket.a -trimpath $WORK -shared -p vendor/github.com/gorilla/websocket -complete -installsuffix shared -buildid aa09fea8d6e7f53df3e2cba08baf4f83c974cacc -D _/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/vendor/github.com/gorilla/websocket -I $WORK -pack ./client.go ./conn.go ./doc.go ./json.go ./server.go ./util.go
mkdir -p $WORK/net/rpc/_obj/
cd /home/jaten/pkg/go1.5.1/src/net/rpc
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/rpc.a -trimpath $WORK -shared -p net/rpc -complete -installsuffix shared -buildid ba2272d6fe3b5323ad1a3248320c7a4919f9cb9f -D _/home/jaten/pkg/go1.5.1/src/net/rpc -I $WORK -pack ./client.go ./debug.go ./server.go
mkdir -p $WORK/vendor/github.com/ugorji/go/codec/_obj/
mkdir -p $WORK/vendor/github.com/ugorji/go/
cd /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/vendor/github.com/ugorji/go/codec
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/vendor/github.com/ugorji/go/codec.a -trimpath $WORK -shared -p vendor/github.com/ugorji/go/codec -complete -installsuffix shared -buildid b61aec1770175054ba400ae411a33145c2dcde76 -D _/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/vendor/github.com/ugorji/go/codec -I $WORK -pack ./0doc.go ./binc.go ./cbor.go ./decode.go ./encode.go ./fast-path.generated.go ./gen-helper.generated.go ./gen.generated.go ./gen.go ./helper.go ./helper_internal.go ./helper_not_unsafe.go ./json.go ./msgpack.go ./noop.go ./prebuild.go ./rpc.go ./simple.go ./time.go
mkdir -p $WORK/rmq/_obj/
mkdir -p $WORK/rmq/_obj/exe/
cd /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/rmq
CGO_LDFLAGS="-g" "-O2" "-L/usr/local/lib64/R/lib" "-lm" "-lR" "/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/rmq/libinterface.a" /home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/rmq/_obj/ -importpath rmq -exportheader=$WORK/rmq/_obj/_cgo_install.h -- -I $WORK/rmq/_obj/ -I/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/rmq/../include rmq.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/rmq/_obj/ -g -O2 -I/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/rmq/../include -o $WORK/rmq/_obj/_cgo_main.o -c $WORK/rmq/_obj/_cgo_main.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/rmq/_obj/ -g -O2 -I/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/rmq/../include -o $WORK/rmq/_obj/_cgo_export.o -c $WORK/rmq/_obj/_cgo_export.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/rmq/_obj/ -g -O2 -I/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/rmq/../include -o $WORK/rmq/_obj/rmq.cgo2.o -c $WORK/rmq/_obj/rmq.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/rmq/_obj/_cgo_.o $WORK/rmq/_obj/_cgo_main.o $WORK/rmq/_obj/_cgo_export.o $WORK/rmq/_obj/rmq.cgo2.o -g -O2 -L/usr/local/lib64/R/lib -lm -lR ./libinterface.a
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/rmq/_obj/ -dynpackage main -dynimport $WORK/rmq/_obj/_cgo_.o -dynout $WORK/rmq/_obj/_cgo_import.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/rmq/_obj/_all.o $WORK/rmq/_obj/_cgo_export.o $WORK/rmq/_obj/rmq.cgo2.o -g -O2 -L/usr/local/lib64/R/lib ./libinterface.a -Wl,-r -nostdlib /usr/lib/gcc/x86_64-redhat-linux/5.1.1/libgcc.a -Wl,--build-id=none
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/rmq.a -trimpath $WORK -shared -p main -installsuffix shared -buildid 6240fa792c7d18209c48f8d7c5c8abfb16c42607 -importmap github.com/glycerine/msgp/msgp=vendor/github.com/glycerine/msgp/msgp -importmap github.com/gorilla/websocket=vendor/github.com/gorilla/websocket -importmap github.com/ugorji/go/codec=vendor/github.com/ugorji/go/codec -D _/home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/src/rmq -I $WORK -I /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/pkg/linux_amd64_shared -pack ./enctm.go ./rmq_gen.go ./vprint.go $WORK/rmq/_obj/_cgo_gotypes.go $WORK/rmq/_obj/rmq.cgo1.go $WORK/rmq/_obj/_cgo_import.go
pack r $WORK/rmq.a $WORK/rmq/_obj/_all.o # internal
cd .
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/link -o $WORK/rmq/_obj/exe/a.out -L $WORK -L /home/jaten/pkg/R-3.2.2/src/library/Recommended/rmq/pkg/linux_amd64_shared -installsuffix shared -extld=gcc -buildmode=c-shared -buildid=6240fa792c7d18209c48f8d7c5c8abfb16c42607 $WORK/rmq.a
# rmq
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-891155565/000000.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp/go-link-891155565/000000.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2
[jaten@buzz src]$ gcc --version
gcc (GCC) 5.1.1 20150422 (Red Hat 5.1.1-1)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[jaten@buzz src]$ go version
go version go1.5.1 linux/amd64
[jaten@buzz src]$ env | grep GO
GO15VENDOREXPERIMENT=1
GOROOT_BOOTSTRAP=/home/jaten/pkg/go1.4.3
GOQ_HOME=/home/jaten
GOROOT=/home/jaten/pkg/go1.5.1
GOPATH=/home/jaten/go
[jaten@buzz src]$ 
@glycerine

This comment has been minimized.

Copy link
Author

commented Oct 21, 2015

problem reproduces on ubuntu12.04 using gcc 4.9.1 as well. Still with go1.5.1 and GO15VENDOREXPERIMENT=1.

gcc -c -o interface.o cpp/interface.cpp -Iinclude/ -I/home/jaten/R-3.1.1/src/include
ar cr rmq/libinterface.a interface.o
cd rmq && GOPATH=/R-3.1.1/src/library/Recommended/rmq/src/.. GO15VENDOREXPERIMENT=1 go build -buildmode=c-shared  -o ../rmq.so
# rmq
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-643376244/000000.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp/go-link-643376244/000000.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

make: *** [all] Error 2
jaten@i7:~/R-3.1.1/src/library/Recommended/rmq/src:master$ gcc --version
gcc (GCC) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

jaten@i7:~/R-3.1.1/src/library/Recommended/rmq/src:master$ uname -a
Linux i7 3.9.11-030911-generic #201307202035 SMP Sun Jul 21 00:35:53 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
jaten@i7:~/R-3.1.1/src/library/Recommended/rmq/src:master$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
jaten@i7:~/R-3.1.1/src/library/Recommended/rmq/src:master$ 

@ianlancetaylor ianlancetaylor changed the title fedora22/amd64/go1.5.1 cgo link problem: /usr/bin/ld: /tmp/go-link-891155565/000000.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC cmd/link: fedora22/amd64/go1.5.1 cgo link problem: /usr/bin/ld: /tmp/go-link-891155565/000000.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC Oct 21, 2015

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Oct 21, 2015

Why does it think it is trying to create a shared object?

Do you have a "#cgo LDFLAGS: -shared" somewhere?

Can you attach the output of "go build -ldflags=-v"?

@glycerine

This comment has been minimized.

Copy link
Author

commented Oct 21, 2015

shouldn't -buildmode=c-shared try to create shared objects?

here is the build attempt with I add -ldflags=-v to the go build invocation

$ make
if test "$R_INSTALL_PKG" = "rmq"; then echo "R_INSTALL_PKG = rmq found in env, unpacking vendor.tar.gz"; tar xf vendor.tar.gz; fi;
gcc -c -o interface.o cpp/interface.cpp -Iinclude/ -I/home/jaten/R-3.1.1/src/include
ar cr rmq/libinterface.a interface.o
cd rmq && GOPATH=/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/.. GO15VENDOREXPERIMENT=1 go build -x -work -ldflags=-v -buildmode=c-shared  -o ../rmq.so
WORK=/tmp/go-build381587143
mkdir -p $WORK/runtime/_obj/
mkdir -p $WORK/
cd /home/jaten/pkg/go1.5.1/src/runtime
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/runtime.a -trimpath $WORK -shared -p runtime -+ -installsuffix shared -buildid 4e05d2e38867f3f3fe5d1edfb4876c3283677d69 -D _/home/jaten/pkg/go1.5.1/src/runtime -I $WORK -pack -asmhdr $WORK/runtime/_obj/go_asm.h ./alg.go ./arch1_amd64.go ./arch_amd64.go ./atomic_amd64x.go ./atomic_pointer.go ./cgo.go ./cgocall.go ./cgocallback.go ./chan.go ./compiler.go ./complex.go ./cpuprof.go ./cputicks.go ./debug.go ./defs_linux_amd64.go ./env_posix.go ./error.go ./extern.go ./hash64.go ./hashmap.go ./hashmap_fast.go ./heapdump.go ./iface.go ./lfstack.go ./lfstack_amd64.go ./lock_futex.go ./malloc.go ./mbarrier.go ./mbitmap.go ./mcache.go ./mcentral.go ./mem_linux.go ./mfinal.go ./mfixalloc.go ./mgc.go ./mgcmark.go ./mgcsweep.go ./mgcwork.go ./mheap.go ./mprof.go ./msize.go ./mstats.go ./netpoll.go ./netpoll_epoll.go ./os1_linux.go ./os2_linux.go ./os_linux.go ./panic.go ./panic1.go ./parfor.go ./print1.go ./print1_write.go ./proc.go ./proc1.go ./race0.go ./rdebug.go ./rune.go ./runtime.go ./runtime1.go ./runtime2.go ./select.go ./sema.go ./signal1_unix.go ./signal_amd64x.go ./signal_linux.go ./signal_linux_amd64.go ./signal_unix.go ./sigpanic_unix.go ./sigqueue.go ./slice.go ./softfloat64.go ./sqrt.go ./stack1.go ./stack2.go ./string.go ./string1.go ./stubs.go ./stubs2.go ./symtab.go ./sys_x86.go ./time.go ./trace.go ./traceback.go ./type.go ./typekind.go ./typekind1.go ./unaligned1.go ./vdso_linux_amd64.go ./wbfat.go ./zgoarch_amd64.go ./zgoos_linux.go ./zversion.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/asm.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/asm_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/duff_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./duff_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/memclr_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./memclr_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/memmove_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./memmove_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/rt0_linux_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./rt0_linux_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/_obj/sys_linux_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sys_linux_amd64.s
pack r $WORK/runtime.a $WORK/runtime/_obj/asm.o $WORK/runtime/_obj/asm_amd64.o $WORK/runtime/_obj/duff_amd64.o $WORK/runtime/_obj/memclr_amd64.o $WORK/runtime/_obj/memmove_amd64.o $WORK/runtime/_obj/rt0_linux_amd64.o $WORK/runtime/_obj/sys_linux_amd64.o # internal
mkdir -p $WORK/errors/_obj/
cd /home/jaten/pkg/go1.5.1/src/errors
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/errors.a -trimpath $WORK -shared -p errors -complete -installsuffix shared -buildid 2cd724d372edbe7950b2e4f46441eb8d7d20c9c3 -D _/home/jaten/pkg/go1.5.1/src/errors -I $WORK -pack ./errors.go
mkdir -p $WORK/sync/atomic/_obj/
mkdir -p $WORK/sync/
cd /home/jaten/pkg/go1.5.1/src/sync/atomic
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/sync/atomic.a -trimpath $WORK -shared -p sync/atomic -installsuffix shared -buildid 866ad8d3f672d2350840fd73724cc24141e1dd7d -D _/home/jaten/pkg/go1.5.1/src/sync/atomic -I $WORK -pack -asmhdr $WORK/sync/atomic/_obj/go_asm.h ./doc.go ./value.go
mkdir -p $WORK/unicode/utf8/_obj/
mkdir -p $WORK/unicode/
cd /home/jaten/pkg/go1.5.1/src/unicode/utf8
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/unicode/utf8.a -trimpath $WORK -shared -p unicode/utf8 -complete -installsuffix shared -buildid 97ec8d7aa4c8be88a1535622ccd229c72ae88fb5 -D _/home/jaten/pkg/go1.5.1/src/unicode/utf8 -I $WORK -pack ./utf8.go
mkdir -p $WORK/math/_obj/
cd /home/jaten/pkg/go1.5.1/src/math
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/math.a -trimpath $WORK -shared -p math -installsuffix shared -buildid 16db5c758c25d0ed2ab9798c3f1b13b04800f690 -D _/home/jaten/pkg/go1.5.1/src/math -I $WORK -pack -asmhdr $WORK/math/_obj/go_asm.h ./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
mkdir -p $WORK/encoding/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding.a -trimpath $WORK -shared -p encoding -complete -installsuffix shared -buildid a1241e9ca072b54a2a9934fa7f58556aea1fe511 -D _/home/jaten/pkg/go1.5.1/src/encoding -I $WORK -pack ./encoding.go
mkdir -p $WORK/sort/_obj/
cd /home/jaten/pkg/go1.5.1/src/sort
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/sort.a -trimpath $WORK -shared -p sort -complete -installsuffix shared -buildid 6ef7f4fcbbad0049009ecd6e41165d9e21df138f -D _/home/jaten/pkg/go1.5.1/src/sort -I $WORK -pack ./search.go ./sort.go
mkdir -p $WORK/unicode/utf16/_obj/
cd /home/jaten/pkg/go1.5.1/src/unicode/utf16
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/unicode/utf16.a -trimpath $WORK -shared -p unicode/utf16 -complete -installsuffix shared -buildid 802c7bcfdca80a84270c8fd45d6c57dd145ad05b -D _/home/jaten/pkg/go1.5.1/src/unicode/utf16 -I $WORK -pack ./utf16.go
mkdir -p $WORK/unicode/_obj/
cd /home/jaten/pkg/go1.5.1/src/unicode
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/unicode.a -trimpath $WORK -shared -p unicode -complete -installsuffix shared -buildid 3fcecf80b1757e86dddd38d98bfd500a7bd14485 -D _/home/jaten/pkg/go1.5.1/src/unicode -I $WORK -pack ./casetables.go ./digit.go ./graphic.go ./letter.go ./tables.go
mkdir -p $WORK/crypto/subtle/_obj/
mkdir -p $WORK/crypto/
cd /home/jaten/pkg/go1.5.1/src/crypto/subtle
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/subtle.a -trimpath $WORK -shared -p crypto/subtle -complete -installsuffix shared -buildid b7345e07d9ad849817a00e20d81b29b705ac5d48 -D _/home/jaten/pkg/go1.5.1/src/crypto/subtle -I $WORK -pack ./constant_time.go
mkdir -p $WORK/container/list/_obj/
mkdir -p $WORK/container/
cd /home/jaten/pkg/go1.5.1/src/container/list
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/container/list.a -trimpath $WORK -shared -p container/list -complete -installsuffix shared -buildid 911b50d0b44a734bf2447a86e264aa90c9c82d69 -D _/home/jaten/pkg/go1.5.1/src/container/list -I $WORK -pack ./list.go
cd /home/jaten/pkg/go1.5.1/src/sync/atomic
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/sync/atomic/_obj/asm_amd64.o -trimpath $WORK -I $WORK/sync/atomic/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
pack r $WORK/sync/atomic.a $WORK/sync/atomic/_obj/asm_amd64.o # internal
mkdir -p $WORK/sync/_obj/
cd /home/jaten/pkg/go1.5.1/src/sync
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/sync.a -trimpath $WORK -shared -p sync -installsuffix shared -buildid 08f0c59f92dce55cc72fb1f852dd75ab7c8f496d -D _/home/jaten/pkg/go1.5.1/src/sync -I $WORK -pack ./cond.go ./mutex.go ./once.go ./pool.go ./race0.go ./runtime.go ./rwmutex.go ./waitgroup.go
mkdir -p $WORK/io/_obj/
cd /home/jaten/pkg/go1.5.1/src/io
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/io.a -trimpath $WORK -shared -p io -complete -installsuffix shared -buildid f379c7ec08d9e36bea5d2444b6147a4d4c4d854e -D _/home/jaten/pkg/go1.5.1/src/io -I $WORK -pack ./io.go ./multi.go ./pipe.go
mkdir -p $WORK/syscall/_obj/
mkdir -p $WORK/internal/singleflight/_obj/
mkdir -p $WORK/internal/
cd /home/jaten/pkg/go1.5.1/src/syscall
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/syscall.a -trimpath $WORK -shared -p syscall -installsuffix shared -buildid 9b15fe9bb247bb45122d600809e6203041d72e67 -D _/home/jaten/pkg/go1.5.1/src/syscall -I $WORK -pack -asmhdr $WORK/syscall/_obj/go_asm.h ./env_unix.go ./exec_linux.go ./exec_unix.go ./flock.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
cd /home/jaten/pkg/go1.5.1/src/internal/singleflight
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/internal/singleflight.a -trimpath $WORK -shared -p internal/singleflight -complete -installsuffix shared -buildid 209f9957d01fde1ee5ac2e1f3fbed756acfb13a3 -D _/home/jaten/pkg/go1.5.1/src/internal/singleflight -I $WORK -pack ./singleflight.go
mkdir -p $WORK/crypto/cipher/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/cipher
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/cipher.a -trimpath $WORK -shared -p crypto/cipher -complete -installsuffix shared -buildid 99a5bf79bf587cd2dc092ce0c4a14eabf40310a8 -D _/home/jaten/pkg/go1.5.1/src/crypto/cipher -I $WORK -pack ./cbc.go ./cfb.go ./cipher.go ./ctr.go ./gcm.go ./io.go ./ofb.go ./xor.go
mkdir -p $WORK/hash/_obj/
cd /home/jaten/pkg/go1.5.1/src/hash
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/hash.a -trimpath $WORK -shared -p hash -complete -installsuffix shared -buildid 4e9839263c21022f97938da8acaa0657835ed2ea -D _/home/jaten/pkg/go1.5.1/src/hash -I $WORK -pack ./hash.go
mkdir -p $WORK/crypto/hmac/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/hmac
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/hmac.a -trimpath $WORK -shared -p crypto/hmac -complete -installsuffix shared -buildid 16e3ff3ab6ba74709ec88019d9013ca5b02ecd2e -D _/home/jaten/pkg/go1.5.1/src/crypto/hmac -I $WORK -pack ./hmac.go
mkdir -p $WORK/hash/crc32/_obj/
mkdir -p $WORK/hash/
cd /home/jaten/pkg/go1.5.1/src/hash/crc32
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/hash/crc32.a -trimpath $WORK -shared -p hash/crc32 -installsuffix shared -buildid 70cf962909203a8f77a1e9ace8a264d32935d720 -D _/home/jaten/pkg/go1.5.1/src/hash/crc32 -I $WORK -pack -asmhdr $WORK/hash/crc32/_obj/go_asm.h ./crc32.go ./crc32_amd64x.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/hash/crc32/_obj/crc32_amd64.o -trimpath $WORK -I $WORK/hash/crc32/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./crc32_amd64.s
pack r $WORK/hash/crc32.a $WORK/hash/crc32/_obj/crc32_amd64.o # internal
mkdir -p $WORK/bytes/_obj/
cd /home/jaten/pkg/go1.5.1/src/bytes
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/bytes.a -trimpath $WORK -shared -p bytes -installsuffix shared -buildid 386ed9da3b4b3039f40dd8ae63802d2d9c41cb69 -D _/home/jaten/pkg/go1.5.1/src/bytes -I $WORK -pack ./buffer.go ./bytes.go ./bytes_decl.go ./reader.go
mkdir -p $WORK/strings/_obj/
cd /home/jaten/pkg/go1.5.1/src/math
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/abs_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./abs_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/asin_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asin_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/atan2_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./atan2_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/atan_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./atan_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/dim_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./dim_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/exp2_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./exp2_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/exp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./exp_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/expm1_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./expm1_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/floor_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./floor_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/frexp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./frexp_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/hypot_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./hypot_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/ldexp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./ldexp_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/log10_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./log10_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/log1p_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./log1p_amd64.s
cd /home/jaten/pkg/go1.5.1/src/strings
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/strings.a -trimpath $WORK -shared -p strings -installsuffix shared -buildid 861fd81bf4d51f61665056b48400eedceef1efeb -D _/home/jaten/pkg/go1.5.1/src/strings -I $WORK -pack -asmhdr $WORK/strings/_obj/go_asm.h ./compare.go ./reader.go ./replace.go ./search.go ./strings.go ./strings_decl.go
cd /home/jaten/pkg/go1.5.1/src/math
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/log_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./log_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/mod_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./mod_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/modf_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./modf_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/remainder_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./remainder_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/sin_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sin_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/sincos_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sincos_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/sqrt_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sqrt_amd64.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/_obj/tan_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./tan_amd64.s
pack r $WORK/math.a $WORK/math/_obj/abs_amd64.o $WORK/math/_obj/asin_amd64.o $WORK/math/_obj/atan2_amd64.o $WORK/math/_obj/atan_amd64.o $WORK/math/_obj/dim_amd64.o $WORK/math/_obj/exp2_amd64.o $WORK/math/_obj/exp_amd64.o $WORK/math/_obj/expm1_amd64.o $WORK/math/_obj/floor_amd64.o $WORK/math/_obj/frexp_amd64.o $WORK/math/_obj/hypot_amd64.o $WORK/math/_obj/ldexp_amd64.o $WORK/math/_obj/log10_amd64.o $WORK/math/_obj/log1p_amd64.o $WORK/math/_obj/log_amd64.o $WORK/math/_obj/mod_amd64.o $WORK/math/_obj/modf_amd64.o $WORK/math/_obj/remainder_amd64.o $WORK/math/_obj/sin_amd64.o $WORK/math/_obj/sincos_amd64.o $WORK/math/_obj/sqrt_amd64.o $WORK/math/_obj/tan_amd64.o # internal
mkdir -p $WORK/strconv/_obj/
cd /home/jaten/pkg/go1.5.1/src/strconv
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/strconv.a -trimpath $WORK -shared -p strconv -complete -installsuffix shared -buildid fa7d3de0ad85bc3628e997bc3fc77c9480aa1dc8 -D _/home/jaten/pkg/go1.5.1/src/strconv -I $WORK -pack ./atob.go ./atof.go ./atoi.go ./decimal.go ./doc.go ./extfloat.go ./ftoa.go ./isprint.go ./itoa.go ./quote.go
mkdir -p $WORK/math/rand/_obj/
mkdir -p $WORK/math/
cd /home/jaten/pkg/go1.5.1/src/math/rand
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/math/rand.a -trimpath $WORK -shared -p math/rand -complete -installsuffix shared -buildid 4a8832981e918af68e3a0531bc3930983467b5f0 -D _/home/jaten/pkg/go1.5.1/src/math/rand -I $WORK -pack ./exp.go ./normal.go ./rand.go ./rng.go ./zipf.go
mkdir -p $WORK/bufio/_obj/
cd /home/jaten/pkg/go1.5.1/src/bufio
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/bufio.a -trimpath $WORK -shared -p bufio -complete -installsuffix shared -buildid e0de6af3ae375bdfe388acd8b22eae95a7cacac8 -D _/home/jaten/pkg/go1.5.1/src/bufio -I $WORK -pack ./bufio.go ./scan.go
mkdir -p $WORK/text/tabwriter/_obj/
mkdir -p $WORK/text/
cd /home/jaten/pkg/go1.5.1/src/text/tabwriter
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/text/tabwriter.a -trimpath $WORK -shared -p text/tabwriter -complete -installsuffix shared -buildid d57fa82aedfb4813ef25ce840a2963d104f28d55 -D _/home/jaten/pkg/go1.5.1/src/text/tabwriter -I $WORK -pack ./tabwriter.go
cd /home/jaten/pkg/go1.5.1/src/strings
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/strings/_obj/strings.o -trimpath $WORK -I $WORK/strings/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./strings.s
pack r $WORK/strings.a $WORK/strings/_obj/strings.o # internal
mkdir -p $WORK/path/_obj/
cd /home/jaten/pkg/go1.5.1/src/path
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/path.a -trimpath $WORK -shared -p path -complete -installsuffix shared -buildid cd92cce2c20e333343faca62c5131e6103866402 -D _/home/jaten/pkg/go1.5.1/src/path -I $WORK -pack ./match.go ./path.go
mkdir -p $WORK/html/_obj/
cd /home/jaten/pkg/go1.5.1/src/syscall
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/syscall/_obj/asm.o -trimpath $WORK -I $WORK/syscall/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm.s
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/syscall/_obj/asm_linux_amd64.o -trimpath $WORK -I $WORK/syscall/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_linux_amd64.s
pack r $WORK/syscall.a $WORK/syscall/_obj/asm.o $WORK/syscall/_obj/asm_linux_amd64.o # internal
mkdir -p $WORK/reflect/_obj/
cd /home/jaten/pkg/go1.5.1/src/html
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/html.a -trimpath $WORK -shared -p html -complete -installsuffix shared -buildid 969979637a79f0bb85539d1058c2641f23e73228 -D _/home/jaten/pkg/go1.5.1/src/html -I $WORK -pack ./entity.go ./escape.go
cd /home/jaten/pkg/go1.5.1/src/reflect
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/reflect.a -trimpath $WORK -shared -p reflect -installsuffix shared -buildid fc9f2662025e17df27912467d9f275f09dc21aab -D _/home/jaten/pkg/go1.5.1/src/reflect -I $WORK -pack -asmhdr $WORK/reflect/_obj/go_asm.h ./deepequal.go ./makefunc.go ./type.go ./value.go
mkdir -p $WORK/encoding/base64/_obj/
mkdir -p $WORK/encoding/
cd /home/jaten/pkg/go1.5.1/src/encoding/base64
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/base64.a -trimpath $WORK -shared -p encoding/base64 -complete -installsuffix shared -buildid 3e376591b984557c29b32f546402cda0a4091e8a -D _/home/jaten/pkg/go1.5.1/src/encoding/base64 -I $WORK -pack ./base64.go
mkdir -p $WORK/crypto/aes/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/aes
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/aes.a -trimpath $WORK -shared -p crypto/aes -installsuffix shared -buildid 3e14b44b0ba40b0e4fc11d74fc93581a520613e8 -D _/home/jaten/pkg/go1.5.1/src/crypto/aes -I $WORK -pack -asmhdr $WORK/crypto/aes/_obj/go_asm.h ./block.go ./cipher.go ./cipher_asm.go ./const.go
mkdir -p $WORK/crypto/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto.a -trimpath $WORK -shared -p crypto -complete -installsuffix shared -buildid 0e3dd5090a9c5c36d35b00f40a0a17b769f6d519 -D _/home/jaten/pkg/go1.5.1/src/crypto -I $WORK -pack ./crypto.go
mkdir -p $WORK/crypto/rc4/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/rc4
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/rc4.a -trimpath $WORK -shared -p crypto/rc4 -installsuffix shared -buildid b2b26f9a50da45358008d4496d76ba58e28e1bd7 -D _/home/jaten/pkg/go1.5.1/src/crypto/rc4 -I $WORK -pack -asmhdr $WORK/crypto/rc4/_obj/go_asm.h ./rc4.go ./rc4_asm.go
mkdir -p $WORK/time/_obj/
mkdir -p $WORK/internal/syscall/unix/_obj/
mkdir -p $WORK/internal/syscall/
cd /home/jaten/pkg/go1.5.1/src/internal/syscall/unix
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/internal/syscall/unix.a -trimpath $WORK -shared -p internal/syscall/unix -complete -installsuffix shared -buildid 59947db295785d4e0ff669c012d22bccf86f1d26 -D _/home/jaten/pkg/go1.5.1/src/internal/syscall/unix -I $WORK -pack ./getrandom_linux.go
cd /home/jaten/pkg/go1.5.1/src/time
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/time.a -trimpath $WORK -shared -p time -installsuffix shared -buildid 82c85306756deb1f18246dbd5893a187f51e9f27 -D _/home/jaten/pkg/go1.5.1/src/time -I $WORK -pack ./format.go ./sleep.go ./sys_unix.go ./tick.go ./time.go ./zoneinfo.go ./zoneinfo_read.go ./zoneinfo_unix.go
mkdir -p $WORK/crypto/sha1/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/sha1
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/sha1.a -trimpath $WORK -shared -p crypto/sha1 -installsuffix shared -buildid 2be291ecbf9a785200d010653b9cec576755966a -D _/home/jaten/pkg/go1.5.1/src/crypto/sha1 -I $WORK -pack -asmhdr $WORK/crypto/sha1/_obj/go_asm.h ./sha1.go ./sha1block.go ./sha1block_decl.go
cd /home/jaten/pkg/go1.5.1/src/crypto/rc4
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/rc4/_obj/rc4_amd64.o -trimpath $WORK -I $WORK/crypto/rc4/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./rc4_amd64.s
cd /home/jaten/pkg/go1.5.1/src/crypto/sha1
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/sha1/_obj/sha1block_amd64.o -trimpath $WORK -I $WORK/crypto/sha1/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sha1block_amd64.s
cd /home/jaten/pkg/go1.5.1/src/crypto/rc4
pack r $WORK/crypto/rc4.a $WORK/crypto/rc4/_obj/rc4_amd64.o # internal
mkdir -p $WORK/crypto/sha512/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/sha1
pack r $WORK/crypto/sha1.a $WORK/crypto/sha1/_obj/sha1block_amd64.o # internal
cd /home/jaten/pkg/go1.5.1/src/crypto/sha512
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/sha512.a -trimpath $WORK -shared -p crypto/sha512 -installsuffix shared -buildid 8746c4d0ba9c384648779e4b81de3656613c5aec -D _/home/jaten/pkg/go1.5.1/src/crypto/sha512 -I $WORK -pack -asmhdr $WORK/crypto/sha512/_obj/go_asm.h ./sha512.go ./sha512block_decl.go
mkdir -p $WORK/crypto/md5/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/md5
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/md5.a -trimpath $WORK -shared -p crypto/md5 -installsuffix shared -buildid 36aa45a00ec4206071339f7d2124f5f06cae8c4d -D _/home/jaten/pkg/go1.5.1/src/crypto/md5 -I $WORK -pack -asmhdr $WORK/crypto/md5/_obj/go_asm.h ./md5.go ./md5block.go ./md5block_decl.go
mkdir -p $WORK/crypto/sha256/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/sha256
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/sha256.a -trimpath $WORK -shared -p crypto/sha256 -installsuffix shared -buildid 66eb35a047ac8f88d9daafc24894c5a297f1caa6 -D _/home/jaten/pkg/go1.5.1/src/crypto/sha256 -I $WORK -pack -asmhdr $WORK/crypto/sha256/_obj/go_asm.h ./sha256.go ./sha256block_decl.go
mkdir -p $WORK/encoding/pem/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/pem
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/pem.a -trimpath $WORK -shared -p encoding/pem -complete -installsuffix shared -buildid fbb2b3b400ec589377afd34763cdf5a4d793d685 -D _/home/jaten/pkg/go1.5.1/src/encoding/pem -I $WORK -pack ./pem.go
mkdir -p $WORK/regexp/syntax/_obj/
mkdir -p $WORK/regexp/
cd /home/jaten/pkg/go1.5.1/src/regexp/syntax
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/regexp/syntax.a -trimpath $WORK -shared -p regexp/syntax -complete -installsuffix shared -buildid f76330c50c226e2f876952f561a49515a3c7467b -D _/home/jaten/pkg/go1.5.1/src/regexp/syntax -I $WORK -pack ./compile.go ./doc.go ./parse.go ./perl_groups.go ./prog.go ./regexp.go ./simplify.go
cd /home/jaten/pkg/go1.5.1/src/crypto/aes
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/aes/_obj/asm_amd64.o -trimpath $WORK -I $WORK/crypto/aes/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
cd /home/jaten/pkg/go1.5.1/src/crypto/sha512
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/sha512/_obj/sha512block_amd64.o -trimpath $WORK -I $WORK/crypto/sha512/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sha512block_amd64.s
cd /home/jaten/pkg/go1.5.1/src/crypto/aes
pack r $WORK/crypto/aes.a $WORK/crypto/aes/_obj/asm_amd64.o # internal
cd /home/jaten/pkg/go1.5.1/src/crypto/sha256
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/sha256/_obj/sha256block_amd64.o -trimpath $WORK -I $WORK/crypto/sha256/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./sha256block_amd64.s
cd /home/jaten/pkg/go1.5.1/src/crypto/md5
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/crypto/md5/_obj/md5block_amd64.o -trimpath $WORK -I $WORK/crypto/md5/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./md5block_amd64.s
cd /home/jaten/pkg/go1.5.1/src/crypto/sha256
pack r $WORK/crypto/sha256.a $WORK/crypto/sha256/_obj/sha256block_amd64.o # internal
cd /home/jaten/pkg/go1.5.1/src/crypto/md5
pack r $WORK/crypto/md5.a $WORK/crypto/md5/_obj/md5block_amd64.o # internal
cd /home/jaten/pkg/go1.5.1/src/crypto/sha512
pack r $WORK/crypto/sha512.a $WORK/crypto/sha512/_obj/sha512block_amd64.o # internal
mkdir -p $WORK/os/_obj/
cd /home/jaten/pkg/go1.5.1/src/os
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/os.a -trimpath $WORK -shared -p os -installsuffix shared -buildid 5f5aea53b8ba28dd74151383bd8e8fc42d75c214 -D _/home/jaten/pkg/go1.5.1/src/os -I $WORK -pack ./dir_unix.go ./doc.go ./env.go ./error.go ./error_unix.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 ./sticky_notbsd.go ./str.go ./sys_linux.go ./sys_unix.go ./types.go ./types_notwin.go
mkdir -p $WORK/regexp/_obj/
cd /home/jaten/pkg/go1.5.1/src/regexp
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/regexp.a -trimpath $WORK -shared -p regexp -complete -installsuffix shared -buildid 26aa0573205329b17df044f4bd55f1640d14dac5 -D _/home/jaten/pkg/go1.5.1/src/regexp -I $WORK -pack ./backtrack.go ./exec.go ./onepass.go ./regexp.go
cd /home/jaten/pkg/go1.5.1/src/reflect
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/reflect/_obj/asm_amd64.o -trimpath $WORK -I $WORK/reflect/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
pack r $WORK/reflect.a $WORK/reflect/_obj/asm_amd64.o # internal
mkdir -p $WORK/encoding/binary/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/binary
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/binary.a -trimpath $WORK -shared -p encoding/binary -complete -installsuffix shared -buildid a6ae9b171d13c629bd4f46b40ad80cc22583f5ab -D _/home/jaten/pkg/go1.5.1/src/encoding/binary -I $WORK -pack ./binary.go ./varint.go
mkdir -p $WORK/vendor/github.com/philhofer/fwd/_obj/
mkdir -p $WORK/vendor/github.com/philhofer/
cd /home/jaten/R-3.1.1/src/library/Recommended/rmq/src/vendor/github.com/philhofer/fwd
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/vendor/github.com/philhofer/fwd.a -trimpath $WORK -shared -p vendor/github.com/philhofer/fwd -complete -installsuffix shared -buildid 93e35f0ce2dc2d7a31d67efc99c4388883f5d79a -D _/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/vendor/github.com/philhofer/fwd -I $WORK -pack ./reader.go ./writer.go ./writer_unsafe.go
mkdir -p $WORK/crypto/des/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/des
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/des.a -trimpath $WORK -shared -p crypto/des -complete -installsuffix shared -buildid 7f3ee9eb415982c28bd14dc3585074b93b590e91 -D _/home/jaten/pkg/go1.5.1/src/crypto/des -I $WORK -pack ./block.go ./cipher.go ./const.go
mkdir -p $WORK/fmt/_obj/
cd /home/jaten/pkg/go1.5.1/src/fmt
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/fmt.a -trimpath $WORK -shared -p fmt -complete -installsuffix shared -buildid 004dab24c04cf93e2be127eb16950a81cbcd95a7 -D _/home/jaten/pkg/go1.5.1/src/fmt -I $WORK -pack ./doc.go ./format.go ./print.go ./scan.go
mkdir -p $WORK/path/filepath/_obj/
mkdir -p $WORK/path/
cd /home/jaten/pkg/go1.5.1/src/path/filepath
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/path/filepath.a -trimpath $WORK -shared -p path/filepath -complete -installsuffix shared -buildid 8bc9ef6f89e613945ef891039c2471834cf7737b -D _/home/jaten/pkg/go1.5.1/src/path/filepath -I $WORK -pack ./match.go ./path.go ./path_unix.go ./symlink.go ./symlink_unix.go
mkdir -p $WORK/io/ioutil/_obj/
mkdir -p $WORK/io/
cd /home/jaten/pkg/go1.5.1/src/io/ioutil
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/io/ioutil.a -trimpath $WORK -shared -p io/ioutil -complete -installsuffix shared -buildid 4bfca0ef45e940c05d9383d961b80b81efab381f -D _/home/jaten/pkg/go1.5.1/src/io/ioutil -I $WORK -pack ./ioutil.go ./tempfile.go
mkdir -p $WORK/encoding/json/_obj/
mkdir -p $WORK/encoding/hex/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/json
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/json.a -trimpath $WORK -shared -p encoding/json -complete -installsuffix shared -buildid ab59d5ded29a7af72cb8f127cb55eb6d38166813 -D _/home/jaten/pkg/go1.5.1/src/encoding/json -I $WORK -pack ./decode.go ./encode.go ./fold.go ./indent.go ./scanner.go ./stream.go ./tags.go
mkdir -p $WORK/math/big/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/hex
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/hex.a -trimpath $WORK -shared -p encoding/hex -complete -installsuffix shared -buildid 135e598964a0cb7bc546ae257dd9d23c239855cf -D _/home/jaten/pkg/go1.5.1/src/encoding/hex -I $WORK -pack ./hex.go
cd /home/jaten/pkg/go1.5.1/src/math/big
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/math/big.a -trimpath $WORK -shared -p math/big -installsuffix shared -buildid 97661c06d17f79be293f796b0b4a74fb4fd7ef49 -D _/home/jaten/pkg/go1.5.1/src/math/big -I $WORK -pack -asmhdr $WORK/math/big/_obj/go_asm.h ./accuracy_string.go ./arith.go ./arith_decl.go ./decimal.go ./float.go ./floatconv.go ./ftoa.go ./int.go ./intconv.go ./nat.go ./natconv.go ./rat.go ./ratconv.go ./roundingmode_string.go
mkdir -p $WORK/go/token/_obj/
mkdir -p $WORK/go/
cd /home/jaten/pkg/go1.5.1/src/go/token
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/token.a -trimpath $WORK -shared -p go/token -complete -installsuffix shared -buildid f9132e4b78f0e7e0bff625706529b7c527b38cd2 -D _/home/jaten/pkg/go1.5.1/src/go/token -I $WORK -pack ./position.go ./serialize.go ./token.go
mkdir -p $WORK/compress/flate/_obj/
mkdir -p $WORK/compress/
cd /home/jaten/pkg/go1.5.1/src/compress/flate
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/compress/flate.a -trimpath $WORK -shared -p compress/flate -complete -installsuffix shared -buildid 008ead4c3982ebe8dd7aaef669df3612339f503f -D _/home/jaten/pkg/go1.5.1/src/compress/flate -I $WORK -pack ./copy.go ./deflate.go ./fixedhuff.go ./huffman_bit_writer.go ./huffman_code.go ./inflate.go ./reverse_bits.go ./token.go
mkdir -p $WORK/log/_obj/
cd /home/jaten/pkg/go1.5.1/src/log
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/log.a -trimpath $WORK -shared -p log -complete -installsuffix shared -buildid b02a05ae50bbc1ed8c9978e798be6c02621e161c -D _/home/jaten/pkg/go1.5.1/src/log -I $WORK -pack ./log.go
mkdir -p $WORK/mime/_obj/
cd /home/jaten/pkg/go1.5.1/src/mime
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/mime.a -trimpath $WORK -shared -p mime -complete -installsuffix shared -buildid 54dbbbd2bdae7fb5a4b9a220b678a738c9f1c1cf -D _/home/jaten/pkg/go1.5.1/src/mime -I $WORK -pack ./encodedword.go ./grammar.go ./mediatype.go ./type.go ./type_unix.go
mkdir -p $WORK/mime/quotedprintable/_obj/
mkdir -p $WORK/mime/
mkdir -p $WORK/net/http/internal/_obj/
cd /home/jaten/pkg/go1.5.1/src/mime/quotedprintable
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/mime/quotedprintable.a -trimpath $WORK -shared -p mime/quotedprintable -complete -installsuffix shared -buildid d4f5f9ce9a2f0f649ff53b564299ecd4a371b217 -D _/home/jaten/pkg/go1.5.1/src/mime/quotedprintable -I $WORK -pack ./reader.go ./writer.go
mkdir -p $WORK/net/http/
cd /home/jaten/pkg/go1.5.1/src/net/http/internal
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/http/internal.a -trimpath $WORK -shared -p net/http/internal -complete -installsuffix shared -buildid d4befae1a0ac3796812b495c14fe25c778273f70 -D _/home/jaten/pkg/go1.5.1/src/net/http/internal -I $WORK -pack ./chunked.go
mkdir -p $WORK/net/url/_obj/
mkdir -p $WORK/net/
cd /home/jaten/pkg/go1.5.1/src/net/url
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/url.a -trimpath $WORK -shared -p net/url -complete -installsuffix shared -buildid 5c623fb20555a26f38edd42f60ffb53cac023cc9 -D _/home/jaten/pkg/go1.5.1/src/net/url -I $WORK -pack ./url.go
mkdir -p $WORK/encoding/gob/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/gob
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/gob.a -trimpath $WORK -shared -p encoding/gob -complete -installsuffix shared -buildid 9b6574ba6ea3dbe51b178f04cf2c469e6ef0c047 -D _/home/jaten/pkg/go1.5.1/src/encoding/gob -I $WORK -pack ./dec_helpers.go ./decode.go ./decoder.go ./doc.go ./enc_helpers.go ./encode.go ./encoder.go ./error.go ./type.go
mkdir -p $WORK/text/template/parse/_obj/
mkdir -p $WORK/text/template/
cd /home/jaten/pkg/go1.5.1/src/text/template/parse
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/text/template/parse.a -trimpath $WORK -shared -p text/template/parse -complete -installsuffix shared -buildid d4baee7e3c8436c6b9ce9ead79f343de7b317b58 -D _/home/jaten/pkg/go1.5.1/src/text/template/parse -I $WORK -pack ./lex.go ./node.go ./parse.go
mkdir -p $WORK/go/scanner/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/scanner
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/scanner.a -trimpath $WORK -shared -p go/scanner -complete -installsuffix shared -buildid 5b4454326fa7b81e20338c26f53c6c3985b478d9 -D _/home/jaten/pkg/go1.5.1/src/go/scanner -I $WORK -pack ./errors.go ./scanner.go
mkdir -p $WORK/go/ast/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/ast
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/ast.a -trimpath $WORK -shared -p go/ast -complete -installsuffix shared -buildid 4188c12c94508692f7c2deac7e8361992519f9e5 -D _/home/jaten/pkg/go1.5.1/src/go/ast -I $WORK -pack ./ast.go ./commentmap.go ./filter.go ./import.go ./print.go ./resolve.go ./scope.go ./walk.go
mkdir -p $WORK/vendor/github.com/glycerine/msgp/msgp/_obj/
mkdir -p $WORK/vendor/github.com/glycerine/msgp/
cd /home/jaten/R-3.1.1/src/library/Recommended/rmq/src/vendor/github.com/glycerine/msgp/msgp
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/vendor/github.com/glycerine/msgp/msgp.a -trimpath $WORK -shared -p vendor/github.com/glycerine/msgp/msgp -complete -installsuffix shared -buildid e6f2f08a3ed814193e3cb229a722fe7bf920d4b2 -importmap github.com/philhofer/fwd=vendor/github.com/philhofer/fwd -D _/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/vendor/github.com/glycerine/msgp/msgp -I $WORK -I /home/jaten/R-3.1.1/src/library/Recommended/rmq/pkg/linux_amd64_shared -pack ./advise_linux.go ./circular.go ./defs.go ./edit.go ./elsize.go ./errors.go ./extension.go ./file.go ./integers.go ./json.go ./json_bytes.go ./number.go ./read.go ./read_bytes.go ./size.go ./unsafe.go ./write.go ./write_bytes.go
mkdir -p $WORK/compress/gzip/_obj/
cd /home/jaten/pkg/go1.5.1/src/compress/gzip
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/compress/gzip.a -trimpath $WORK -shared -p compress/gzip -complete -installsuffix shared -buildid b20c4353effb771a09dfa59d7cbfd917a064ddb3 -D _/home/jaten/pkg/go1.5.1/src/compress/gzip -I $WORK -pack ./gunzip.go ./gzip.go
mkdir -p $WORK/text/template/_obj/
cd /home/jaten/pkg/go1.5.1/src/text/template
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/text/template.a -trimpath $WORK -shared -p text/template -complete -installsuffix shared -buildid 97edb139a88765b760d87fbd81d4308846a536bf -D _/home/jaten/pkg/go1.5.1/src/text/template -I $WORK -pack ./doc.go ./exec.go ./funcs.go ./helper.go ./option.go ./template.go
cd /home/jaten/pkg/go1.5.1/src/math/big
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/math/big/_obj/arith_amd64.o -trimpath $WORK -I $WORK/math/big/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./arith_amd64.s
pack r $WORK/math/big.a $WORK/math/big/_obj/arith_amd64.o # internal
mkdir -p $WORK/crypto/rand/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/rand
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/rand.a -trimpath $WORK -shared -p crypto/rand -complete -installsuffix shared -buildid 90e21c02d570b58e32b2c1260ab7b176a14c8736 -D _/home/jaten/pkg/go1.5.1/src/crypto/rand -I $WORK -pack ./eagain.go ./rand.go ./rand_linux.go ./rand_unix.go ./util.go
mkdir -p $WORK/crypto/elliptic/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/elliptic
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/elliptic.a -trimpath $WORK -shared -p crypto/elliptic -complete -installsuffix shared -buildid d4d557ccf97021f6be71d0148a9e31bbcd696a1d -D _/home/jaten/pkg/go1.5.1/src/crypto/elliptic -I $WORK -pack ./elliptic.go ./p224.go ./p256.go
mkdir -p $WORK/encoding/asn1/_obj/
cd /home/jaten/pkg/go1.5.1/src/encoding/asn1
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/encoding/asn1.a -trimpath $WORK -shared -p encoding/asn1 -complete -installsuffix shared -buildid d9680f2095cb7a2d059e291fd2df8ddf9544a15c -D _/home/jaten/pkg/go1.5.1/src/encoding/asn1 -I $WORK -pack ./asn1.go ./common.go ./marshal.go
mkdir -p $WORK/crypto/dsa/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/dsa
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/dsa.a -trimpath $WORK -shared -p crypto/dsa -complete -installsuffix shared -buildid caa157b4989054f627de44c6b225059fd49a3b20 -D _/home/jaten/pkg/go1.5.1/src/crypto/dsa -I $WORK -pack ./dsa.go
mkdir -p $WORK/crypto/rsa/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/rsa
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/rsa.a -trimpath $WORK -shared -p crypto/rsa -complete -installsuffix shared -buildid 6e4b2b9720cbfbf0705b01fa1d9d03cba6293242 -D _/home/jaten/pkg/go1.5.1/src/crypto/rsa -I $WORK -pack ./pkcs1v15.go ./pss.go ./rsa.go
mkdir -p $WORK/go/parser/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/parser
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/parser.a -trimpath $WORK -shared -p go/parser -complete -installsuffix shared -buildid 3b42841b701385268d75a3c7335efaf1ce98c5af -D _/home/jaten/pkg/go1.5.1/src/go/parser -I $WORK -pack ./interface.go ./parser.go
mkdir -p $WORK/go/printer/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/printer
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/printer.a -trimpath $WORK -shared -p go/printer -complete -installsuffix shared -buildid 9e8c708d20ac2b46389e247635a854183bd61af5 -D _/home/jaten/pkg/go1.5.1/src/go/printer -I $WORK -pack ./nodes.go ./printer.go
mkdir -p $WORK/crypto/ecdsa/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/ecdsa
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/ecdsa.a -trimpath $WORK -shared -p crypto/ecdsa -complete -installsuffix shared -buildid 3634cdf2e9be0bd134cf3e2ebd36f600db2c9eca -D _/home/jaten/pkg/go1.5.1/src/crypto/ecdsa -I $WORK -pack ./ecdsa.go
mkdir -p $WORK/crypto/x509/pkix/_obj/
mkdir -p $WORK/crypto/x509/
cd /home/jaten/pkg/go1.5.1/src/crypto/x509/pkix
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/x509/pkix.a -trimpath $WORK -shared -p crypto/x509/pkix -complete -installsuffix shared -buildid 6efa978bb6053827e8b35648516ce4091dc2eaef -D _/home/jaten/pkg/go1.5.1/src/crypto/x509/pkix -I $WORK -pack ./pkix.go
mkdir -p $WORK/html/template/_obj/
mkdir -p $WORK/html/
cd /home/jaten/pkg/go1.5.1/src/html/template
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/html/template.a -trimpath $WORK -shared -p html/template -complete -installsuffix shared -buildid 8d283ab666fd588164e7e648762ee3f1dc5bc886 -D _/home/jaten/pkg/go1.5.1/src/html/template -I $WORK -pack ./attr.go ./content.go ./context.go ./css.go ./doc.go ./error.go ./escape.go ./html.go ./js.go ./template.go ./transition.go ./url.go
mkdir -p $WORK/runtime/cgo/_obj/
mkdir -p $WORK/runtime/
mkdir -p $WORK/internal/format/_obj/
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
CGO_LDFLAGS="/usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a" "-lm" "-lpthread" /home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/runtime/cgo/_obj/ -importpath runtime/cgo -import_runtime_cgo=false -import_syscall=false -exportheader=$WORK/runtime/cgo/_obj/_cgo_install.h -- -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror cgo.go
cd /home/jaten/pkg/go1.5.1/src/internal/format
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/internal/format.a -trimpath $WORK -shared -p internal/format -complete -installsuffix shared -buildid c448095378f9e4faa85afa1bc7d0ff721062f143 -D _/home/jaten/pkg/go1.5.1/src/internal/format -I $WORK -pack ./format.go
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -print-libgcc-file-name
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/_cgo_main.o -c $WORK/runtime/cgo/_obj/_cgo_main.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/_cgo_export.o -c $WORK/runtime/cgo/_obj/_cgo_export.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/cgo.cgo2.o -c $WORK/runtime/cgo/_obj/cgo.cgo2.c
mkdir -p $WORK/go/format/_obj/
cd /home/jaten/pkg/go1.5.1/src/go/format
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/go/format.a -trimpath $WORK -shared -p go/format -complete -installsuffix shared -buildid ca58ba4fa8bfcb3354064917d22e055c0a4bcd13 -D _/home/jaten/pkg/go1.5.1/src/go/format -I $WORK -pack ./format.go
cd /home/jaten/pkg/go1.5.1/src/runtime/cgo
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_fatalf.o -c ./gcc_fatalf.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_libinit.o -c ./gcc_libinit.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o -c ./gcc_linux_amd64.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_setenv.o -c ./gcc_setenv.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_util.o -c ./gcc_util.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_amd64.o -c ./gcc_amd64.S
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/runtime/cgo/_obj/_cgo_.o $WORK/runtime/cgo/_obj/_cgo_main.o $WORK/runtime/cgo/_obj/_cgo_export.o $WORK/runtime/cgo/_obj/cgo.cgo2.o $WORK/runtime/cgo/_obj/gcc_fatalf.o $WORK/runtime/cgo/_obj/gcc_libinit.o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o $WORK/runtime/cgo/_obj/gcc_setenv.o $WORK/runtime/cgo/_obj/gcc_util.o $WORK/runtime/cgo/_obj/gcc_amd64.o /usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a -lm -lpthread
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/runtime/cgo/_obj/ -dynpackage cgo -dynimport $WORK/runtime/cgo/_obj/_cgo_.o -dynout $WORK/runtime/cgo/_obj/_cgo_import.go -dynlinker
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/runtime/cgo/_obj/_all.o $WORK/runtime/cgo/_obj/_cgo_export.o $WORK/runtime/cgo/_obj/cgo.cgo2.o $WORK/runtime/cgo/_obj/gcc_fatalf.o $WORK/runtime/cgo/_obj/gcc_libinit.o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o $WORK/runtime/cgo/_obj/gcc_setenv.o $WORK/runtime/cgo/_obj/gcc_util.o $WORK/runtime/cgo/_obj/gcc_amd64.o /usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a -Wl,-r -nostdlib /home/jaten/491/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/libgcc.a -Wl,--build-id=none
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/runtime/cgo.a -trimpath $WORK -shared -p runtime/cgo -installsuffix shared -buildid d3cf5508fc5faeae42beb51dfab658200014c55a -D _/home/jaten/pkg/go1.5.1/src/runtime/cgo -I $WORK -pack -asmhdr $WORK/runtime/cgo/_obj/go_asm.h ./callbacks.go ./iscgo.go ./setenv.go $WORK/runtime/cgo/_obj/_cgo_gotypes.go $WORK/runtime/cgo/_obj/cgo.cgo1.go $WORK/runtime/cgo/_obj/_cgo_import.go
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/asm -o $WORK/runtime/cgo/_obj/asm_amd64.o -trimpath $WORK -I $WORK/runtime/cgo/_obj/ -I /home/jaten/pkg/go1.5.1/pkg/include -D GOOS_linux -D GOARCH_amd64 -shared ./asm_amd64.s
pack r $WORK/runtime/cgo.a $WORK/runtime/cgo/_obj/asm_amd64.o $WORK/runtime/cgo/_obj/_all.o # internal
mkdir -p $WORK/net/_obj/
cd /home/jaten/pkg/go1.5.1/src/net
CGO_LDFLAGS="/usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a" "-lm" /home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/net/_obj/ -importpath net -exportheader=$WORK/net/_obj/_cgo_install.h -- -I $WORK/net/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC cgo_linux.go cgo_resnew.go cgo_socknew.go cgo_unix.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -o $WORK/net/_obj/_cgo_main.o -c $WORK/net/_obj/_cgo_main.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -o $WORK/net/_obj/_cgo_export.o -c $WORK/net/_obj/_cgo_export.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -o $WORK/net/_obj/cgo_linux.cgo2.o -c $WORK/net/_obj/cgo_linux.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -o $WORK/net/_obj/cgo_resnew.cgo2.o -c $WORK/net/_obj/cgo_resnew.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -o $WORK/net/_obj/cgo_socknew.cgo2.o -c $WORK/net/_obj/cgo_socknew.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/net/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -o $WORK/net/_obj/cgo_unix.cgo2.o -c $WORK/net/_obj/cgo_unix.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/net/_obj/_cgo_.o $WORK/net/_obj/_cgo_main.o $WORK/net/_obj/_cgo_export.o $WORK/net/_obj/cgo_linux.cgo2.o $WORK/net/_obj/cgo_resnew.cgo2.o $WORK/net/_obj/cgo_socknew.cgo2.o $WORK/net/_obj/cgo_unix.cgo2.o /usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a -lm
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/net/_obj/ -dynpackage net -dynimport $WORK/net/_obj/_cgo_.o -dynout $WORK/net/_obj/_cgo_import.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/net/_obj/_all.o $WORK/net/_obj/_cgo_export.o $WORK/net/_obj/cgo_linux.cgo2.o $WORK/net/_obj/cgo_resnew.cgo2.o $WORK/net/_obj/cgo_socknew.cgo2.o $WORK/net/_obj/cgo_unix.cgo2.o /usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a -Wl,-r -nostdlib /home/jaten/491/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/libgcc.a -Wl,--build-id=none
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net.a -trimpath $WORK -shared -p net -installsuffix shared -buildid 90ba2c8cda5a8c17cb77a510b3353ad9e9e4889f -D _/home/jaten/pkg/go1.5.1/src/net -I $WORK -pack ./addrselect.go ./conf.go ./dial.go ./dnsclient.go ./dnsclient_unix.go ./dnsconfig_unix.go ./dnsmsg.go ./fd_mutex.go ./fd_poll_runtime.go ./fd_posix.go ./fd_unix.go ./file.go ./file_unix.go ./hook.go ./hook_cloexec.go ./hook_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 ./nss.go ./parse.go ./pipe.go ./port.go ./port_unix.go ./sendfile_linux.go ./sock_cloexec.go ./sock_linux.go ./sock_posix.go ./sockopt_linux.go ./sockopt_posix.go ./sockoptip_linux.go ./sockoptip_posix.go ./tcpsock.go ./tcpsock_posix.go ./tcpsockopt_posix.go ./tcpsockopt_unix.go ./udpsock.go ./udpsock_posix.go ./unixsock.go ./unixsock_posix.go $WORK/net/_obj/_cgo_gotypes.go $WORK/net/_obj/cgo_linux.cgo1.go $WORK/net/_obj/cgo_resnew.cgo1.go $WORK/net/_obj/cgo_socknew.cgo1.go $WORK/net/_obj/cgo_unix.cgo1.go $WORK/net/_obj/_cgo_import.go
pack r $WORK/net.a $WORK/net/_obj/_all.o # internal
mkdir -p $WORK/crypto/x509/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/x509
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/x509.a -trimpath $WORK -shared -p crypto/x509 -complete -installsuffix shared -buildid a5f585ceff45b7ebc30b51843be6d305fc83e19f -D _/home/jaten/pkg/go1.5.1/src/crypto/x509 -I $WORK -pack ./cert_pool.go ./pem_decrypt.go ./pkcs1.go ./pkcs8.go ./root.go ./root_linux.go ./root_unix.go ./sec1.go ./verify.go ./x509.go
mkdir -p $WORK/net/textproto/_obj/
cd /home/jaten/pkg/go1.5.1/src/net/textproto
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/textproto.a -trimpath $WORK -shared -p net/textproto -complete -installsuffix shared -buildid 9a4093be68234892ca83f0c2159f3bfe003bb7ef -D _/home/jaten/pkg/go1.5.1/src/net/textproto -I $WORK -pack ./header.go ./pipeline.go ./reader.go ./textproto.go ./writer.go
mkdir -p $WORK/mime/multipart/_obj/
cd /home/jaten/pkg/go1.5.1/src/mime/multipart
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/mime/multipart.a -trimpath $WORK -shared -p mime/multipart -complete -installsuffix shared -buildid 0ede237dd15f4d7534a4ee5f6aba3965ced344f2 -D _/home/jaten/pkg/go1.5.1/src/mime/multipart -I $WORK -pack ./formdata.go ./multipart.go ./writer.go
mkdir -p $WORK/crypto/tls/_obj/
cd /home/jaten/pkg/go1.5.1/src/crypto/tls
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/crypto/tls.a -trimpath $WORK -shared -p crypto/tls -complete -installsuffix shared -buildid 8a92f99b6090c54d1e2ff06641a154dc2ea7ed0d -D _/home/jaten/pkg/go1.5.1/src/crypto/tls -I $WORK -pack ./alert.go ./cipher_suites.go ./common.go ./conn.go ./handshake_client.go ./handshake_messages.go ./handshake_server.go ./key_agreement.go ./prf.go ./ticket.go ./tls.go
mkdir -p $WORK/net/http/_obj/
cd /home/jaten/pkg/go1.5.1/src/net/http
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/http.a -trimpath $WORK -shared -p net/http -complete -installsuffix shared -buildid ea816c77bbb19fbc8f673482585dc1c165eff388 -D _/home/jaten/pkg/go1.5.1/src/net/http -I $WORK -pack ./client.go ./cookie.go ./doc.go ./filetransport.go ./fs.go ./header.go ./jar.go ./lex.go ./request.go ./response.go ./server.go ./sniff.go ./status.go ./transfer.go ./transport.go
mkdir -p $WORK/vendor/github.com/gorilla/websocket/_obj/
mkdir -p $WORK/vendor/github.com/gorilla/
cd /home/jaten/R-3.1.1/src/library/Recommended/rmq/src/vendor/github.com/gorilla/websocket
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/vendor/github.com/gorilla/websocket.a -trimpath $WORK -shared -p vendor/github.com/gorilla/websocket -complete -installsuffix shared -buildid aa09fea8d6e7f53df3e2cba08baf4f83c974cacc -D _/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/vendor/github.com/gorilla/websocket -I $WORK -pack ./client.go ./conn.go ./doc.go ./json.go ./server.go ./util.go
mkdir -p $WORK/net/rpc/_obj/
cd /home/jaten/pkg/go1.5.1/src/net/rpc
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/net/rpc.a -trimpath $WORK -shared -p net/rpc -complete -installsuffix shared -buildid ba2272d6fe3b5323ad1a3248320c7a4919f9cb9f -D _/home/jaten/pkg/go1.5.1/src/net/rpc -I $WORK -pack ./client.go ./debug.go ./server.go
mkdir -p $WORK/vendor/github.com/ugorji/go/codec/_obj/
mkdir -p $WORK/vendor/github.com/ugorji/go/
cd /home/jaten/R-3.1.1/src/library/Recommended/rmq/src/vendor/github.com/ugorji/go/codec
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/vendor/github.com/ugorji/go/codec.a -trimpath $WORK -shared -p vendor/github.com/ugorji/go/codec -complete -installsuffix shared -buildid b61aec1770175054ba400ae411a33145c2dcde76 -D _/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/vendor/github.com/ugorji/go/codec -I $WORK -pack ./0doc.go ./binc.go ./cbor.go ./decode.go ./encode.go ./fast-path.generated.go ./gen-helper.generated.go ./gen.generated.go ./gen.go ./helper.go ./helper_internal.go ./helper_not_unsafe.go ./json.go ./msgpack.go ./noop.go ./prebuild.go ./rpc.go ./simple.go ./time.go
mkdir -p $WORK/rmq/_obj/
mkdir -p $WORK/rmq/_obj/exe/
cd /home/jaten/R-3.1.1/src/library/Recommended/rmq/src/rmq
CGO_LDFLAGS="/usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a" "-lm" "-L/home/jaten/pkg/R-3.1.1/lib/" "-lR" "-lRblas" "/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/rmq/libinterface.a" "-fPIC" /home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/rmq/_obj/ -importpath rmq -exportheader=$WORK/rmq/_obj/_cgo_install.h -- -I $WORK/rmq/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -I/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/rmq/../include -fPIC rmq.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/rmq/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -I/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/rmq/../include -fPIC -o $WORK/rmq/_obj/_cgo_main.o -c $WORK/rmq/_obj/_cgo_main.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/rmq/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -I/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/rmq/../include -fPIC -o $WORK/rmq/_obj/_cgo_export.o -c $WORK/rmq/_obj/_cgo_export.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/rmq/_obj/ -m64 -I/home/jaten/R-3.1.1/src/include -fPIC -I/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/rmq/../include -fPIC -o $WORK/rmq/_obj/rmq.cgo2.o -c $WORK/rmq/_obj/rmq.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/rmq/_obj/_cgo_.o $WORK/rmq/_obj/_cgo_main.o $WORK/rmq/_obj/_cgo_export.o $WORK/rmq/_obj/rmq.cgo2.o /usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a -lm -L/home/jaten/pkg/R-3.1.1/lib/ -lR -lRblas ./libinterface.a -fPIC
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/cgo -objdir $WORK/rmq/_obj/ -dynpackage main -dynimport $WORK/rmq/_obj/_cgo_.o -dynout $WORK/rmq/_obj/_cgo_import.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/rmq/_obj/_all.o $WORK/rmq/_obj/_cgo_export.o $WORK/rmq/_obj/rmq.cgo2.o /usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a -L/home/jaten/pkg/R-3.1.1/lib/ ./libinterface.a -fPIC -Wl,-r -nostdlib /home/jaten/491/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/libgcc.a -Wl,--build-id=none
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/compile -o $WORK/rmq.a -trimpath $WORK -shared -p main -installsuffix shared -buildid 6240fa792c7d18209c48f8d7c5c8abfb16c42607 -importmap github.com/glycerine/msgp/msgp=vendor/github.com/glycerine/msgp/msgp -importmap github.com/gorilla/websocket=vendor/github.com/gorilla/websocket -importmap github.com/ugorji/go/codec=vendor/github.com/ugorji/go/codec -D _/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/rmq -I $WORK -I /home/jaten/R-3.1.1/src/library/Recommended/rmq/pkg/linux_amd64_shared -pack ./enctm.go ./rmq_gen.go ./vprint.go $WORK/rmq/_obj/_cgo_gotypes.go $WORK/rmq/_obj/rmq.cgo1.go $WORK/rmq/_obj/_cgo_import.go
pack r $WORK/rmq.a $WORK/rmq/_obj/_all.o # internal
cd .
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/link -o $WORK/rmq/_obj/exe/a.out -L $WORK -L /home/jaten/R-3.1.1/src/library/Recommended/rmq/pkg/linux_amd64_shared -installsuffix shared -extld=gcc -buildmode=c-shared -buildid=6240fa792c7d18209c48f8d7c5c8abfb16c42607 -v $WORK/rmq.a
# rmq
HEADER = -H5 -T0x401000 -D0x0 -R0x1000
searching for runtime.a in $WORK/runtime.a
 0.00 deadcode
 0.12 pclntab=1540911 bytes, funcdata total 350820 bytes
 0.14 dodata
 0.23 reloc
 0.25 asmb
 0.25 codeblk
 0.34 datblk
 0.35 sym
 0.36 symsize = 297720
 0.37 symsize = 299136
 0.37 dwarf
 0.41 symsize = 299136
 0.56 dwarf pass 2.
 0.72 headr
host link: "gcc" "-m64" "-gdwarf-2" "-Wl,-Bsymbolic" "-shared" "-o" "/tmp/go-build381587143/rmq/_obj/exe/a.out" "-rdynamic" "/tmp/go-link-740494749/000000.o" "/tmp/go-link-740494749/000001.o" "/tmp/go-link-740494749/000002.o" "/tmp/go-link-740494749/go.o" "/usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a" "-lm" "-L/home/jaten/pkg/R-3.1.1/lib/" "-lR" "-lRblas" "/home/jaten/R-3.1.1/src/library/Recommended/rmq/src/rmq/libinterface.a" "-fPIC" "/usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a" "-lm" "-lpthread" "/usr/cn/zookeeper-3.4.5/install/lib/libzookeeper_mt.a" "-lm"
/home/jaten/pkg/go1.5.1/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-740494749/000000.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp/go-link-740494749/000000.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

make: *** [all] Error 2
$

in the above run on ubuntu12.04 LDFLAGS and CFLAGS are here (but no -shared):

package main
/*                      
#cgo LDFLAGS: -L/home/jaten/R-3.1.1/lib/ -lR -lRblas ${SRCDIR}/libinterface.a -fPIC                                                                                                    
#cgo CFLAGS: -I${SRCDIR}/../include -fPIC 
#include <string.h>     
#include "interface.h"                                                                                                                                                                     
*/
import "C"
...
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Oct 21, 2015

Sorry, I missed the -buildmode=c-shared. I would gently suggest that you highlight that next time--it's not the common case and it was not obvious in the initial report.

The only problematic thing I see in your log is this:

gcc -c -o interface.o cpp/interface.cpp -Iinclude/

I don't think that is coming from Go. I think it's coming from your Makefile. I think you need to compile that object with the -fPIC option, as the system linker error message suggests.

@glycerine

This comment has been minimized.

Copy link
Author

commented Oct 22, 2015

Thanks for being so polite, Ian. I strive to emulate your example of good manners. Indeed I should have highlighted the buildmode=c-shared. I was so immersed in the project that it didn't occur to me that it was not obvious.

And yes you nailed it. My initial gcc call on interface.cpp was indeed the problem. I just couldn't figure out from those linker errors which of the many compiled files it was complaining about. Thank you so much for pointing out the problem. Compilation on linux and OSX can't be expected to require the same build flags, I must keep reminding myself.

For anyone in the future looking at this same issue, it was fixed by adding -fPIC to the very first gcc call (the one that I wrote by hand myself to compile some glue code).

`gcc -fPIC -c -o interface.o cpp/interface.cpp -Iinclude/`

@glycerine glycerine closed this Oct 22, 2015

@golang golang locked and limited conversation to collaborators Oct 24, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.