make[5]: Leaving directory '/var/tmp/portage/sys-cluster/slurm-18.08.7/work/slurm-18.08.7/src/common' /bin/bash ../../libtool --tag=CC --mode=link gcc -DNUMA_VERSION1_COMPATIBILITY -Os -pipe -march=native -mfpmath=sse -fopenmp -pthread -fno-unroll-all-loops -fno-unroll-loops -fno-peel-loops -Wformat -Wformat-security -Warray-bounds - Wclobbered -Wvolatile-register-var -Wdate-time -Os -pipe -march=native -mfpmath=sse -fopenmp -pthread -fno-unroll-all-loops -fno-unroll-loops -fno-peel-loops -Wformat -Wformat-security -Warray-bounds -Wclobbered -Wvolatile-register-var - Wdate-time -floop-interchange -ftree-loop-distribute-patterns -fpredictive-commoning -ftree-loop-distribution -fsplit-paths -ftree-vectorize -ftree-partial-pre -fgcse-after-reload -fivopts -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wl,-O1 -Wl,--as-needed -Wl,-fuse-ld=gold -lpthread -lgomp -ggdb3 -Wall -g -O1 -fno-strict-aliasing -avoid-version -Wl,--version-script=full_version.map -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-fuse-ld=gold -lpthread -lgomp -fuse-ld=bfd -o libslurmfull.la -rpath /usr/lib64/slurm ../../src/api/libslurmhelper.la libtool: link: gcc -shared -fPIC -DPIC -Wl,--whole-archive ../../src/api/.libs/libslurmhelper.a -Wl,--no-whole-archive -Wl,--as-needed -ldl -lgomp -lpthread -Os -march=native -mfpmath=sse -fopenmp -pthread -Os -march=native -mfpmath=sse -fopenmp -pthread -Wl,-O1 -Wl,-fuse-ld=gold -ggdb3 -g -O1 -Wl,--version-script=full_version.map -Wl,-O1 -Wl,-O1 -Wl,-fuse-ld=gold -fuse-ld=bfd -fopenmp -pthread -Wl,-soname -Wl,libslurmfull.so -o .libs/libslurmfull.so libtool: warning: '-l' is ignored for archives/objects libtool: warning: '-l' is ignored for archives/objects libtool: warning: '-l' is ignored for archives/objects /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: wildcard match appears as both global and local in version '' in script collect2: error: ld returned 1 exit status make[4]: *** [Makefile:830: libslurmfull.la] Error 1 Builds with the bfd linker
Created attachment 593380 [details] slurm-18.08.7:20191019-020911.log buildlog
Slurm never supported gold, which can be seen from the ebuild.
Why not filter -Wl,-fuse-ld=gold then?
(In reply to Alessandro Barbieri from comment #3) > Why not filter -Wl,-fuse-ld=gold then? This already tracks gold being enable and disables it if it is (I have just chacked), have no idea how you hit this.