-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/gc: "unexpected GOT reloc" error calling Go functions from C #6661
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
Labels
Milestone
Comments
Comment 1 by manoj.dayaram@moovweb.com: Additional attempt: Tried using -ldflags=-hostobj however still got the same error. |
Comment 3 by manoj.dayaram@moovweb.com: Building Go from source. Using gvm to version control Go: https://github.com/moovweb/gvm |
Comment 4 by manoj.dayaram@moovweb.com: Although, I've seen the error in Darwin machines 10.7+ where Go has both been built from source and also installed via Homebrew. |
Comment 5 by manoj.dayaram@moovweb.com: Here's some more information when trying to run the tests: $ go test -x -ldflags -extldflags=-L/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/clibs/lib . WORK=/tmp/go-build533157375 mkdir -p $WORK/gokogiri/xpath/_test/gokogiri/ mkdir -p $WORK/gokogiri/util/_obj/ mkdir -p $WORK/gokogiri/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/util/_obj/_go_.6 -p gokogiri/util -complete -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util -I $WORK ./util.go mkdir -p $WORK/gokogiri/help/_obj/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/help/_obj/ -- -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 help.go cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/util.a $WORK/gokogiri/util/_obj/_go_.6 cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/help/_obj/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/help/_obj/_cgo_defun.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/help/_obj/_cgo_defun.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -print-libgcc-file-name gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/_cgo_main.o -c $WORK/gokogiri/help/_obj/_cgo_main.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/_cgo_export.o -c $WORK/gokogiri/help/_obj/_cgo_export.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/help.cgo2.o -c $WORK/gokogiri/help/_obj/help.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/help/_obj/_cgo_.o $WORK/gokogiri/help/_obj/_cgo_main.o $WORK/gokogiri/help/_obj/_cgo_export.o $WORK/gokogiri/help/_obj/help.cgo2.o -lxml2 -L../../../clibs/lib /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/help/_obj/ -dynimport $WORK/gokogiri/help/_obj/_cgo_.o -dynout $WORK/gokogiri/help/_obj/_cgo_import.c /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/help/_obj/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/help/_obj/_cgo_import.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/help/_obj/_cgo_import.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/help/_obj/_all.o $WORK/gokogiri/help/_obj/_cgo_export.o $WORK/gokogiri/help/_obj/help.cgo2.o -L../../../clibs/lib -Wl,-r -nostdlib /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/x86_64/libgcc.a /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/help/_obj/_go_.6 -p gokogiri/help -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help -I $WORK $WORK/gokogiri/help/_obj/_cgo_gotypes.go $WORK/gokogiri/help/_obj/help.cgo1.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/help.a $WORK/gokogiri/help/_obj/_go_.6 $WORK/gokogiri/help/_obj/_cgo_import.6 $WORK/gokogiri/help/_obj/_cgo_defun.6 $WORK/gokogiri/help/_obj/_all.o mkdir -p $WORK/gokogiri/xpath/_test/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/xpath /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/xpath/_test/ -- -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 expression.go util.go xpath.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/xpath/_test/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/xpath/_test/_cgo_defun.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/xpath/_test/_cgo_defun.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/_cgo_main.o -c $WORK/gokogiri/xpath/_test/_cgo_main.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/_cgo_export.o -c $WORK/gokogiri/xpath/_test/_cgo_export.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/expression.cgo2.o -c $WORK/gokogiri/xpath/_test/expression.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/util.cgo2.o -c $WORK/gokogiri/xpath/_test/util.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -c $WORK/gokogiri/xpath/_test/xpath.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/xpath/_test/_cgo_.o $WORK/gokogiri/xpath/_test/_cgo_main.o $WORK/gokogiri/xpath/_test/_cgo_export.o $WORK/gokogiri/xpath/_test/expression.cgo2.o $WORK/gokogiri/xpath/_test/util.cgo2.o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -lxml2 -L../../../clibs/lib -lxml2 -L../../../clibs/lib /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/xpath/_test/ -dynimport $WORK/gokogiri/xpath/_test/_cgo_.o -dynout $WORK/gokogiri/xpath/_test/_cgo_import.c /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/xpath/_test/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/xpath/_test/_cgo_import.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/xpath/_test/_cgo_import.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/xpath/_test/_all.o $WORK/gokogiri/xpath/_test/_cgo_export.o $WORK/gokogiri/xpath/_test/expression.cgo2.o $WORK/gokogiri/xpath/_test/util.cgo2.o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -L../../../clibs/lib -L../../../clibs/lib -Wl,-r -nostdlib /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/x86_64/libgcc.a /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/xpath/_test/_go_.6 -p gokogiri/xpath -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/xpath -I $WORK -I /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/pkg/darwin_amd64 ./util_test.go ./xpath_test.go $WORK/gokogiri/xpath/_test/_cgo_gotypes.go $WORK/gokogiri/xpath/_test/expression.cgo1.go $WORK/gokogiri/xpath/_test/util.cgo1.go $WORK/gokogiri/xpath/_test/xpath.cgo1.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/xpath/_test/gokogiri/xpath.a $WORK/gokogiri/xpath/_test/_go_.6 $WORK/gokogiri/xpath/_test/_cgo_import.6 $WORK/gokogiri/xpath/_test/_cgo_defun.6 $WORK/gokogiri/xpath/_test/_all.o cd $WORK/gokogiri/xpath/_test /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o ./_go_.6 -p testmain -complete -D "" -I . -I $WORK ./_testmain.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK ./main.a ./_go_.6 cd . /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6l -o $WORK/gokogiri/xpath/_test/xpath.test -L $WORK/gokogiri/xpath/_test -L $WORK -L /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/pkg/darwin_amd64 -extldflags=-L/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/clibs/lib $WORK/gokogiri/xpath/_test/main.a # testmain gokogiri/xpath(__TEXT/__text): unexpected GOT reloc for non-dynamic symbol exec_xpath_function2 $WORK/gokogiri/xpath/_test/xpath.test FAIL gokogiri/xpath [build failed] |
Comment 7 by manoj.dayaram@moovweb.com: Hmmm, that's odd. It's telling me that flag is unrecognized: $ go test -x -ldflags="-hostobj -extldflags=-L/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/clibs/lib" . WORK=/tmp/go-build716375047 mkdir -p $WORK/gokogiri/xpath/_test/gokogiri/ mkdir -p $WORK/gokogiri/util/_obj/ mkdir -p $WORK/gokogiri/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/util/_obj/_go_.6 -p gokogiri/util -complete -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util -I $WORK ./util.go mkdir -p $WORK/gokogiri/help/_obj/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/help/_obj/ -- -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 help.go cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/util.a $WORK/gokogiri/util/_obj/_go_.6 cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/help/_obj/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/help/_obj/_cgo_defun.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/help/_obj/_cgo_defun.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -print-libgcc-file-name gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/_cgo_main.o -c $WORK/gokogiri/help/_obj/_cgo_main.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/_cgo_export.o -c $WORK/gokogiri/help/_obj/_cgo_export.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/help.cgo2.o -c $WORK/gokogiri/help/_obj/help.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/help/_obj/_cgo_.o $WORK/gokogiri/help/_obj/_cgo_main.o $WORK/gokogiri/help/_obj/_cgo_export.o $WORK/gokogiri/help/_obj/help.cgo2.o -lxml2 -L../../../clibs/lib /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/help/_obj/ -dynimport $WORK/gokogiri/help/_obj/_cgo_.o -dynout $WORK/gokogiri/help/_obj/_cgo_import.c /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/help/_obj/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/help/_obj/_cgo_import.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/help/_obj/_cgo_import.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/help/_obj/_all.o $WORK/gokogiri/help/_obj/_cgo_export.o $WORK/gokogiri/help/_obj/help.cgo2.o -L../../../clibs/lib -Wl,-r -nostdlib /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/x86_64/libgcc.a /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/help/_obj/_go_.6 -p gokogiri/help -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help -I $WORK $WORK/gokogiri/help/_obj/_cgo_gotypes.go $WORK/gokogiri/help/_obj/help.cgo1.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/help.a $WORK/gokogiri/help/_obj/_go_.6 $WORK/gokogiri/help/_obj/_cgo_import.6 $WORK/gokogiri/help/_obj/_cgo_defun.6 $WORK/gokogiri/help/_obj/_all.o mkdir -p $WORK/gokogiri/xpath/_test/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/xpath /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/xpath/_test/ -- -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 expression.go util.go xpath.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/xpath/_test/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/xpath/_test/_cgo_defun.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/xpath/_test/_cgo_defun.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/_cgo_main.o -c $WORK/gokogiri/xpath/_test/_cgo_main.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/_cgo_export.o -c $WORK/gokogiri/xpath/_test/_cgo_export.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/expression.cgo2.o -c $WORK/gokogiri/xpath/_test/expression.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/util.cgo2.o -c $WORK/gokogiri/xpath/_test/util.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -c $WORK/gokogiri/xpath/_test/xpath.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/xpath/_test/_cgo_.o $WORK/gokogiri/xpath/_test/_cgo_main.o $WORK/gokogiri/xpath/_test/_cgo_export.o $WORK/gokogiri/xpath/_test/expression.cgo2.o $WORK/gokogiri/xpath/_test/util.cgo2.o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -lxml2 -L../../../clibs/lib -lxml2 -L../../../clibs/lib /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/xpath/_test/ -dynimport $WORK/gokogiri/xpath/_test/_cgo_.o -dynout $WORK/gokogiri/xpath/_test/_cgo_import.c /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/xpath/_test/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/xpath/_test/_cgo_import.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/xpath/_test/_cgo_import.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/xpath/_test/_all.o $WORK/gokogiri/xpath/_test/_cgo_export.o $WORK/gokogiri/xpath/_test/expression.cgo2.o $WORK/gokogiri/xpath/_test/util.cgo2.o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -L../../../clibs/lib -L../../../clibs/lib -Wl,-r -nostdlib /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/x86_64/libgcc.a /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/xpath/_test/_go_.6 -p gokogiri/xpath -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/xpath -I $WORK -I /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/pkg/darwin_amd64 ./util_test.go ./xpath_test.go $WORK/gokogiri/xpath/_test/_cgo_gotypes.go $WORK/gokogiri/xpath/_test/expression.cgo1.go $WORK/gokogiri/xpath/_test/util.cgo1.go $WORK/gokogiri/xpath/_test/xpath.cgo1.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/xpath/_test/gokogiri/xpath.a $WORK/gokogiri/xpath/_test/_go_.6 $WORK/gokogiri/xpath/_test/_cgo_import.6 $WORK/gokogiri/xpath/_test/_cgo_defun.6 $WORK/gokogiri/xpath/_test/_all.o cd $WORK/gokogiri/xpath/_test /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o ./_go_.6 -p testmain -complete -D "" -I . -I $WORK ./_testmain.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK ./main.a ./_go_.6 cd . /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6l -o $WORK/gokogiri/xpath/_test/xpath.test -L $WORK/gokogiri/xpath/_test -L $WORK -L /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/pkg/darwin_amd64 -hostobj -extldflags=-L/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/clibs/lib $WORK/gokogiri/xpath/_test/main.a # testmain /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6l: unknown flag -hostobj $WORK/gokogiri/xpath/_test/xpath.test FAIL gokogiri/xpath [build failed] |
Comment 9 by manoj.dayaram@moovweb.com: lol, yeah, my bad. Here's the real output: $ go test -x -hostobj -ldflags="-extldflags=-L/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/clibs/lib" . WORK=/tmp/go-build267804530 mkdir -p $WORK/gokogiri/xpath/_test/gokogiri/ mkdir -p $WORK/gokogiri/util/_obj/ mkdir -p $WORK/gokogiri/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/util/_obj/_go_.6 -p gokogiri/util -complete -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util -I $WORK ./util.go mkdir -p $WORK/gokogiri/help/_obj/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/help/_obj/ -- -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 help.go cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/util /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/util.a $WORK/gokogiri/util/_obj/_go_.6 cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/help/_obj/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/help/_obj/_cgo_defun.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/help/_obj/_cgo_defun.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -print-libgcc-file-name gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/_cgo_main.o -c $WORK/gokogiri/help/_obj/_cgo_main.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/_cgo_export.o -c $WORK/gokogiri/help/_obj/_cgo_export.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/help/_obj/ -I../../../clibs/include/libxml2 -o $WORK/gokogiri/help/_obj/help.cgo2.o -c $WORK/gokogiri/help/_obj/help.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/help/_obj/_cgo_.o $WORK/gokogiri/help/_obj/_cgo_main.o $WORK/gokogiri/help/_obj/_cgo_export.o $WORK/gokogiri/help/_obj/help.cgo2.o -lxml2 -L../../../clibs/lib /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/help/_obj/ -dynimport $WORK/gokogiri/help/_obj/_cgo_.o -dynout $WORK/gokogiri/help/_obj/_cgo_import.c /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/help/_obj/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/help/_obj/_cgo_import.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/help/_obj/_cgo_import.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/help/_obj/_all.o $WORK/gokogiri/help/_obj/_cgo_export.o $WORK/gokogiri/help/_obj/help.cgo2.o -L../../../clibs/lib -Wl,-r -nostdlib /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/x86_64/libgcc.a /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/help/_obj/_go_.6 -p gokogiri/help -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/help -I $WORK $WORK/gokogiri/help/_obj/_cgo_gotypes.go $WORK/gokogiri/help/_obj/help.cgo1.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/help.a $WORK/gokogiri/help/_obj/_go_.6 $WORK/gokogiri/help/_obj/_cgo_import.6 $WORK/gokogiri/help/_obj/_cgo_defun.6 $WORK/gokogiri/help/_obj/_all.o mkdir -p $WORK/gokogiri/xpath/_test/ cd /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/xpath /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/xpath/_test/ -- -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 expression.go util.go xpath.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/xpath/_test/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/xpath/_test/_cgo_defun.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/xpath/_test/_cgo_defun.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/_cgo_main.o -c $WORK/gokogiri/xpath/_test/_cgo_main.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/_cgo_export.o -c $WORK/gokogiri/xpath/_test/_cgo_export.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/expression.cgo2.o -c $WORK/gokogiri/xpath/_test/expression.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/util.cgo2.o -c $WORK/gokogiri/xpath/_test/util.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -I $WORK/gokogiri/xpath/_test/ -I../../../clibs/include/libxml2 -I../../../clibs/include/libxml2 -o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -c $WORK/gokogiri/xpath/_test/xpath.cgo2.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/xpath/_test/_cgo_.o $WORK/gokogiri/xpath/_test/_cgo_main.o $WORK/gokogiri/xpath/_test/_cgo_export.o $WORK/gokogiri/xpath/_test/expression.cgo2.o $WORK/gokogiri/xpath/_test/util.cgo2.o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -lxml2 -L../../../clibs/lib -lxml2 -L../../../clibs/lib /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/cgo -objdir $WORK/gokogiri/xpath/_test/ -dynimport $WORK/gokogiri/xpath/_test/_cgo_.o -dynout $WORK/gokogiri/xpath/_test/_cgo_import.c /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6c -F -V -w -I $WORK/gokogiri/xpath/_test/ -I /Users/jenkins/.gvm/gos/go1.2rc2/pkg/darwin_amd64 -o $WORK/gokogiri/xpath/_test/_cgo_import.6 -D GOOS_darwin -D GOARCH_amd64 $WORK/gokogiri/xpath/_test/_cgo_import.c gcc -I . -g -O2 -fPIC -m64 -pthread -fno-common -o $WORK/gokogiri/xpath/_test/_all.o $WORK/gokogiri/xpath/_test/_cgo_export.o $WORK/gokogiri/xpath/_test/expression.cgo2.o $WORK/gokogiri/xpath/_test/util.cgo2.o $WORK/gokogiri/xpath/_test/xpath.cgo2.o -L../../../clibs/lib -L../../../clibs/lib -Wl,-r -nostdlib /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/x86_64/libgcc.a /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o $WORK/gokogiri/xpath/_test/_go_.6 -p gokogiri/xpath -D _/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/src/gokogiri/xpath -I $WORK -I /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/pkg/darwin_amd64 ./util_test.go ./xpath_test.go $WORK/gokogiri/xpath/_test/_cgo_gotypes.go $WORK/gokogiri/xpath/_test/expression.cgo1.go $WORK/gokogiri/xpath/_test/util.cgo1.go $WORK/gokogiri/xpath/_test/xpath.cgo1.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK $WORK/gokogiri/xpath/_test/gokogiri/xpath.a $WORK/gokogiri/xpath/_test/_go_.6 $WORK/gokogiri/xpath/_test/_cgo_import.6 $WORK/gokogiri/xpath/_test/_cgo_defun.6 $WORK/gokogiri/xpath/_test/_all.o cd $WORK/gokogiri/xpath/_test /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6g -o ./_go_.6 -p testmain -complete -D "" -I . -I $WORK ./_testmain.go /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/pack grcP $WORK ./main.a ./_go_.6 cd . /Users/jenkins/.gvm/gos/go1.2rc2/pkg/tool/darwin_amd64/6l -o $WORK/gokogiri/xpath/_test/xpath.test -L $WORK/gokogiri/xpath/_test -L $WORK -L /Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/pkg/darwin_amd64 -extldflags=-L/Users/Shared/JenkinsNet/Home/workspace/manhattan-4.8-build/label/darwin_amd64/.build-sandbox/clibs/lib $WORK/gokogiri/xpath/_test/main.a # testmain gokogiri/xpath(__TEXT/__text): unexpected GOT reloc for non-dynamic symbol exec_xpath_function $WORK/gokogiri/xpath/_test/xpath.test -hostobj . FAIL gokogiri/xpath [build failed] |
Per #9511, we will not be making any further bug fixes specific to 10.6. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by manoj.dayaram@moovweb.com:
The text was updated successfully, but these errors were encountered: