kaniini / libucontext

ucontext implementation featuring glibc-compatible ABI
Other
106 stars 41 forks source link

build error #35

Closed beliefsky closed 3 months ago

beliefsky commented 2 years ago

make info:

cp arch/common/include/libucontext/bits.h include/libucontext/bits.h
cc -std=gnu99 -D_BSD_SOURCE -fPIC -DPIC -ggdb3 -O2 -Wall -DEXPORT_UNPREFIXED -Iinclude -Iarch/x86_64 -Iarch/common -c -o arch/x86_64/trampoline.o arch/x86_64/trampoline.c
In file included from arch/x86_64/trampoline.c:2:
In file included from include/libucontext/libucontext.h:5:
In file included from include/libucontext/bits.h:6:
In file included from /usr/include/ucontext.h:23:
/usr/include/features.h:187:3: warning: "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-W#warnings]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
  ^
1 warning generated.
cc -std=gnu99 -D_BSD_SOURCE -fPIC -DPIC -ggdb3 -O2 -Wall -DEXPORT_UNPREFIXED -Iinclude -Iarch/x86_64 -Iarch/common -c -o arch/x86_64/makecontext.o arch/x86_64/makecontext.c
In file included from arch/x86_64/makecontext.c:15:
In file included from /usr/include/string.h:26:
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:
/usr/include/features.h:187:3: warning: "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-W#warnings]# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
  ^
1 warning generated.
cc -fPIC -DPIC -ggdb3 -O2 -Wall -DEXPORT_UNPREFIXED -Iinclude -Iarch/x86_64 -Iarch/common -c -o arch/x86_64/setcontext.o arch/x86_64/setcontext.S
cc -fPIC -DPIC -ggdb3 -O2 -Wall -DEXPORT_UNPREFIXED -Iinclude -Iarch/x86_64 -Iarch/common -c -o arch/x86_64/swapcontext.o arch/x86_64/swapcontext.S
cc -fPIC -DPIC -ggdb3 -O2 -Wall -DEXPORT_UNPREFIXED -Iinclude -Iarch/x86_64 -Iarch/common -c -o arch/x86_64/getcontext.o arch/x86_64/getcontext.S
cc -fPIC -o libucontext.so -Wl,-shared,-soname,libucontext.so.1 arch/x86_64/trampoline.o arch/x86_64/makecontext.o arch/x86_64/setcontext.o arch/x86_64/swapcontext.o arch/x86_64/getcontext.o
/usr/bin/ld: /usr/bin/../lib/gcc/x86_64-linux-gnu/9/crtbegin.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:102: libucontext.so] Error 1
kaniini commented 2 years ago

Please specify what OS, toolchain, etc. you are using.

kaniini commented 3 months ago

No response, closed