Created attachment 392038 [details] emerge --info I know that static linking is not a very popular (if not something else) choice in today's Linux systems. Although I have it enabled (via static/static-libs)and various packages fail to compile in various ways. One of them is fuse and it is denying to build some static library as shown below. [ebuild R ] sys-fs/fuse-2.9.3 USE="examples static-libs*" 0 KiB collect2: error: ld returned 1 exit status Makefile:390: recipe for target 'libfuse.la' failed make[1]: *** [libfuse.la] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -march=native -O2 -m3dnow -mtls-dialect=gnu2 -mglibc -m64 -pipe -fomit-frame-pointer -frename-registers -ftracer -fno-stack-protector -c ulockmgr.c -o ulockmgr.o >/dev/null 2>&1 make[1]: Leaving directory '/var/tmp/portage/sys-fs/fuse-2.9.3/work/fuse-2.9.3/lib' Makefile:385: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 * ERROR: sys-fs/fuse-2.9.3::gentoo failed (compile phase): * emake failed
Created attachment 392040 [details] build.log
Built fine with ld.bfd (binutils-config --linker ld.bfd). Same error when switching back to gold linker.
sys-fs/fuse-2.9.4 does not build with gold linker on amd64 here. Built fine with ld.bfd (binutils-config --linker ld.bfd).
*** This bug has been marked as a duplicate of bug 402967 ***