-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No working boost sleep implementation" libpthread required by librt #3274
Comments
The problem here is that the BOOST_CPPFLAGS aren't passed when doing the sleep test. |
the updated version of configure.ac has the fix. still have the same issue. config.log at https://gist.github.com/aa6779337bcbb4ae8943.git |
@kathy007 that gist link doesn't work (shows as empty here) |
@laanwj sorry here is the link https://gist.github.com/kathy007/aa6779337bcbb4ae8943 |
Curious - both test programs fail to link.
Very strange. This could be a conflict between two sets of boost libraries. @theuni do you have any idea what could cause this? |
I'm using debian 7.6 and boost1.56.0 |
Did you compile boost from source, or are you using the distro-provided dev packages? |
I didn't use the package, just followed build-unix.md. |
You didn't give a --with-boost option to point to the one you compiled, so it's finding the ones on your system (which are presumably borked, which is why you're building your own). |
Hi Thanks @theuni for your help! I think that solves the "sleep implementation problem" but I'm getting another problem : configure: error: pkg-config not found. (I updated the gist) |
apt-get install pkg-config. Is that not listed in the required packages? |
it works. Thank you so much for your help! |
On Debian 8 with all the dependencies required for the install i'm still getting this result.
|
On ubuntu I was running into this after no error with |
What ubuntu version? |
…rs (bitcoin#3274) * Implement assign_to in prevector * Implement optimized fill() methods for trivially constructible types in prevector No need to invoke the "new" operator on every element when the elements are trivially constructible (e.g. unsigned char) * Benchmark prevector<...>::const_iterator vs vector.assign() * Manually invoke ::memmove instead of relying on the stl Some compilers do not automatically switch to memmove internally, so lets do this manually. * Use prevector::assign_to in benchmark * Rename prevector benchmarks * Use larger copy ranges in benchmarks Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
libpthread not getting linked, required by librt. is this a librt problem?
full config.log at https://gist.github.com/fryx/bdf3bee728b8cbbac18a
configure:11734: $? = 0
configure:11748: result: yes
configure:11886: g++ -o conftest -I/usr/local/BerkeleyDB.4.8/include -L/usr/local/BerkeleyDB.4.8/lib/ -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -fPIE -fno-stack-protector -fstack-protector-all -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -Wl,-z,now conftest.cpp -L/usr/lib -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_thread-mt -lboost_chrono-mt >&5
/usr/lib/gcc/x86_64-alpine-linux-uclibc/4.7.3/../../../../x86_64-alpine-linux-uclibc/bin/ld: /lib/librt.so.0.9.32: undefined reference to symbol 'pthread_cancel'
/usr/lib/gcc/x86_64-alpine-linux-uclibc/4.7.3/../../../../x86_64-alpine-linux-uclibc/bin/ld: note: 'pthread_cancel' is defined in DSO /lib/libpthread.so.0.9.32 so try adding it to the linker command line
/lib/libpthread.so.0.9.32: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
configure:11886: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Bitcoin"
| #define PACKAGE_TARNAME "bitcoin"
The text was updated successfully, but these errors were encountered: