Created attachment 380406 [details] config.log I have a fresh amd64 installation on a VM with which I'm trying to build for a Raspberry Pi. crossdev was used to install an armv6j-hardfloat-linux-gnueabi toolchain. Attempts at using it to build db (a dependency for who knows how many packages) usually fails in the configure stage: checking for mutexes... (cached) no configure: error: Unable to find a mutex implementation
Created attachment 380408 [details] armv6j-hardfloat-linux-gnueabi-emerge --info
Created attachment 380410 [details] emerge --info
I can confirm this problem. I'm also on amd64 and try to crosscompile for armv7a.
Created attachment 405098 [details] config.log
Created attachment 405100 [details] emerge --info
Created attachment 405102 [details] emerge-armv7a --info
I found a workaround and a hopefully permanent solution. First the workaround: https://forums.gentoo.org/viewtopic-t-994722.html It said to modify: nano /usr/share/crossdev/include/site/linux-gnueabi And comment out the follwing lines: db_cv_mutex=${db_cv_mutex=no} db_cv_posixmutexes=${db_cv_posixmutexes=no} db_cv_uimutexes=${db_cv_uimutexes=no} db_cv_mutex=${db_cv_mutex=POSIX/pthreads/library/arm/gcc-assembly} This worked for me and I could compile sys-lib/db I found in this directory also a file called arm-linux-gnueabi where these lines don't exist and I wondered if I used a wrong target for my crossdev build (armv7a-hardfloat-linux-gnueabi). I have found nothing to that, (even if I'd like to have more information,) but I changed the symlink(/usr/armv7a-hardfloat-linux-gnueabi/etc/portage/make.profile) to the profile of the environment created by crossdev from: /usr/portage/profiles/embedded to: /usr/portage/profiles/default/linux/arm/13.0/armv7a/ This is working for me at the moment without patching the file from the workaround.
should be fixed in the next release. thanks for the debugging ! http://gitweb.gentoo.org/proj/crossdev.git/commit/?id=f9129d9b8138eb459d5abec59bb3356188ffd4bc