sched_getaffinity (undefined symbol)
Enter code here...check_func sched_getaffinity
test_ld cc
test_cc
BEGIN /tmp/ffconf.PhRaCAYu/test.c
1 extern int sched_getaffinity();
2 int main(void){ sched_getaffinity(); }
END /tmp/ffconf.PhRaCAYu/test.c
emcc -I/home/b1ue/b1ue/workdir_vlc/vlc/contrib/wasm32-unknown-emscripten/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_\
XOPEN_SOURCE=600 -I/home/b1ue/b1ue/workdir_vlc/vlc/contrib/wasm32-unknown-emscripten/include -g -O2 -s USE_PTHREADS=1 -std=c11 -fomit-frame-pointer -c -o /tmp/ffconf.PhR\
aCAYu/test.o /tmp/ffconf.PhRaCAYu/test.c
emcc -L/home/b1ue/b1ue/workdir_vlc/vlc/contrib/wasm32-unknown-emscripten/lib -L/home/b1ue/b1ue/workdir_vlc/vlc/contrib/wasm32-unknown-emscripten/lib -Wl,--as-needed -Wl,\
-z,noexecstack -o /tmp/ffconf.PhRaCAYu/test /tmp/ffconf.PhRaCAYu/test.o
extern int foo();
//int foo();
main()
{
foo();
return 0;
}
emcc main.c -o main
configure:45053: checking for shmat
configure:45053: emcc -o conftest -g -O2 -Werror=unknown-warning-option -Werror=invalid-command-line-argument -D__NEED_ssize_t -s USE_PTHREADS=1 -I/home/b1ue/vlc/vlc/co\
ntrib/wasm32-unknown-emscripten/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wbad-function-cast -Wwri\
te-strings -Wmissing-prototypes -Werror-implicit-function-declaration -Winit-self -pipe -fvisibility=hidden -fno-math-errno -funsafe-math-optimizations -funroll-loops -\
I/home/b1ue/vlc/vlc/contrib/wasm32-unknown-emscripten/include -L/home/b1ue/vlc/vlc/contrib/wasm32-unknown-emscripten/lib -Wl,-z,defs conftest.c >&5
emscripten:warning: Wasm source map won't be usable in a browser without --source-map-base
error: undefined symbol: shmat
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
Error: Aborting compilation due to previous errors
shared:ERROR: '/home/b1ue/b1ue/workdir_vlc/emsdk/node/8.9.1_64bit/bin/node /home/b1ue/b1ue/workdir_vlc/emsdk/upstream/emscripten/src/compiler.js /tmp/tmppnm5jpew.txt /ho\
me/b1ue/b1ue/workdir_vlc/emsdk/upstream/emscripten/src/library_pthread.js' failed (1)
configure:45053: $? = 1
emcc main.c -o main--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/6b383a65-2f51-4830-939f-9d7afb1285ef%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.