Forwarding response...

Regards Hartmut
---------------
http://boost-spirit.com
http://stellar.cct.lsu.edu


> -----Original Message-----
> From: niXman [mailto:i.nix...@autistici.org]
> Sent: Saturday, March 18, 2017 5:13 PM
> To: hartmut.kai...@gmail.com
> Subject: Re: [hpx-users] build hpx as static lib?
> 
> Hartmut Kaiser 2017-03-18 23:33:
> >      cmake -DHPX_WITH_STATIC_LINKING=ON ...
> >
> > should do the trick. I have nottried that in a while, though. Please
> > report
> > back if you run into any problems with this.
> 
> 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...
> 
> 
> --
> Regards, niXman
> ___________________________________________________
> Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
> https://sf.net/p/mingw-w64/

_______________________________________________
hpx-users mailing list
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to