> > I faced with link error when "Linking CXX executable > > ../../bin/1d_hydro_upwind" > > > > > > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux- > > gnu/libpthread.a(pthread_create.o): > > In function `allocate_stack': > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/allocatestack.c:475: undefined > > reference to `_dl_stack_flags' > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/allocatestack.c:614: undefined > > reference to `_dl_stack_flags' > > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux- > > gnu/libpthread.a(ptw-write.o): > > In function `__write_nocancel': > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/../sysdeps/unix/syscall- > > template.S:81: > > undefined reference to `__syscall_error' > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/../sysdeps/unix/syscall- > > template.S:81: > > undefined reference to `__syscall_error' > > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux- > > gnu/libpthread.a(ptw-read.o): > > In function `__read_nocancel': > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/../sysdeps/unix/syscall- > > template.S:81: > > undefined reference to `__syscall_error' > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/../sysdeps/unix/syscall- > > template.S:81: > > undefined reference to `__syscall_error' > > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux- > > gnu/libpthread.a(ptw-close.o): > > In function `__close_nocancel': > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/../sysdeps/unix/syscall- > > template.S:81: > > undefined reference to `__syscall_error' > > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux- > > gnu/libpthread.a(ptw-close.o):/build/eglibc-oGUzwX/eglibc- > > 2.19/nptl/../sysdeps/unix/syscall-template.S:81: > > more undefined references to `__syscall_error' follow > > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux- > > gnu/libpthread.a(nptl-init.o): > > In function `__pthread_initialize_minimal_internal': > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/nptl-init.c:285: undefined > > reference to `__libc_setup_tls' > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/nptl-init.c:303: undefined > > reference to `_dl_cpuclock_offset' > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/nptl-init.c:419: undefined > > reference to `_dl_pagesize' > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/nptl-init.c:428: undefined > > reference to `_dl_pagesize' > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/nptl-init.c:448: undefined > > reference to `_dl_init_static_tls' > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/nptl-init.c:450: undefined > > reference to `_dl_wait_lookup_done' > > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux- > > gnu/libpthread.a(nptl-init.o): > > In function `__pthread_get_minstack': > > /build/eglibc-oGUzwX/eglibc-2.19/nptl/nptl-init.c:471: undefined > > reference to `_dl_pagesize' > > > > > > I have rerun make with "VERBOSE=1" and can see the "-Wl,-Bstatic > > -lpthread" flag. but it wrong - libpthread cant be linked statically. > > > > How can I tell cmake not to use "-Wl,-Bstatic -lpthread" flag? > > I'm not familiar with cmake... > > ping, please...
My guess the reason for the silence is that nobody has a solution for this. I almost think that this is a cmake issue, but I'm not certain. In essence, we'd appreciate any help on this you might be able to give. Regards Hartmut --------------- http://boost-spirit.com http://stellar.cct.lsu.edu _______________________________________________ hpx-users mailing list hpx-users@stellar.cct.lsu.edu https://mail.cct.lsu.edu/mailman/listinfo/hpx-users