error: At most two relocations per offset are supported
error: At most two relocations per offset are supported
error: At most two relocations per offset are supported
[212/1279] Creating /root/llvm-project/build-debug/tools/gollvm/libgo/tmp-sigtab.go
FAILED: tools/gollvm/libgo/tmp-sigtab.go
cd /root/llvm-project/build-debug/tools/gollvm/libgo && GOARCH=amd64 GOOS=linux /bin/sh /root/llvm-project/llvm/tools/gollvm/libgo/capturescript.sh /root/llvm-project/llvm/tools/gollvm/gofrontend/libgo/mksigtab.sh /root/llvm-project/build-debug/tools/gollvm/libgo/tmp-sigtab.go
error: no SHELL setting
[214/1279] Creating /root/llvm-project/build-debug/tools/gollvm/libgo/tmp-sysinfo.go
ninja: build stopped: subcommand failed.
By add SHELL=/bin/sh, the errors above seems to be skipped but another period of time:
...
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libgo_c_piclib.dir/__/gofrontend/libgo/go/syscall/errno.c.o: failed to match split-stack sequence at section 4 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libgo_c_piclib.dir/__/gofrontend/libgo/go/syscall/errno.c.o: failed to match split-stack sequence at section 6 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libgo_c_piclib.dir/__/gofrontend/libgo/go/syscall/signame.c.o: failed to match split-stack sequence at section 5 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libbacktrace_piclib.dir/libbacktrace/backtrace.c.o: failed to match split-stack sequence at section 4 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libbacktrace_piclib.dir/libbacktrace/backtrace.c.o: failed to match split-stack sequence at section 6 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libbacktrace_piclib.dir/libbacktrace/dwarf.c.o: failed to match split-stack sequence at section 18 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libbacktrace_piclib.dir/libbacktrace/dwarf.c.o: failed to match split-stack sequence at section 79 offset 0
...
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libffi_piclib.dir/libffi/src/x86/ffi64.c.o: failed to match split-stack sequence at section 22 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libffi_piclib.dir/libffi/src/x86/ffi64.c.o: failed to match split-stack sequence at section 26 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libffi_piclib.dir/libffi/src/x86/ffiw64.c.o: failed to match split-stack sequence at section 16 offset 0
collect2: error: ld returned 1 exit status
[901/1066] Linking C static library tools/gollvm/libgo/libgo.a
ninja: build stopped: subcommand failed.
I'm not sure the error is caused by the container environment or my configurations/other prerequisites.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/23309451-cb0a-4f7b-93a1-27038187302a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golan...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/1ffd3fb4-e739-4f13-9168-565e4c64bc70%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/1ffd3fb4-e739-4f13-9168-565e4c64bc70%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2e9d2af9-7d78-443b-9cda-34d7b9c41623%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2e9d2af9-7d78-443b-9cda-34d7b9c41623%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/975b8157-5795-4c09-9aed-91278aa5f0e6%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/975b8157-5795-4c09-9aed-91278aa5f0e6%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/51910be4-ce4a-49a0-91f4-1e1cc63902f6%40googlegroups.com.
-- trying -fcf-protection=none workaround
-- Performing Test SPLIT_STACK_WORKAROUND
-- Performing Test SPLIT_STACK_WORKAROUND - Success
-- applying -fcf-protection=none workaround
-- starting libgo configuration.
but during building, the same error happened:
[2427/2600] Linking C shared library tools/gollvm/libgo/libgo.so.11git
FAILED: tools/gollvm/libgo/libgo.so.11git
: && /usr/bin/cc -fPIC -fPIC -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -Wl,-z,nodelete -fuse-ld=gold -Wl,-O3 -Wl,--gc-sections -shared -Wl,-soname,libgo.so.11git -o tools/gollvm/libgo/libgo.so.11git ...(omits all object files)... -Wl,-rpath,"\$ORIGIN/../lib" -lpthread -lm -fsplit-stack && :
... ...
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libffi_piclib.dir/libffi/src/x86/ffi64.c.o: failed to match split-stack sequence at section 22 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libffi_piclib.dir/libffi/src/x86/ffi64.c.o: failed to match split-stack sequence at section 26 offset 0
/usr/bin/ld.gold: error: tools/gollvm/libgo/CMakeFiles/libffi_piclib.dir/libffi/src/x86/ffiw64.c.o: failed to match split-stack sequence at section 16 offset 0
collect2: error: ld returned 1 exit status
[2429/2600] Linking C static library tools/gollvm/libgo/libgo.a
ninja: build stopped: subcommand failed.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/51910be4-ce4a-49a0-91f4-1e1cc63902f6%40googlegroups.com.