sci-libs/libctl-3.2 fails to build on my system due to missing -lm: /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -march=corei7-avx -pipe -Og -g -gdwarf-4 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o geomtst geomtst.o libctlgeom.la ../src/libctl.la -lguile-2.0 -lgc libtool: link: x86_64-pc-linux-gnu-gcc -march=corei7-avx -pipe -Og -g -gdwarf-4 -Wl,-O1 -Wl,--hash-style=gnu -o .libs/geomtst geomtst.o -Wl,--as-needed ./.libs/libctlgeom.so /var/tmp/portage/sci-libs/libctl-3.2/work/libctl-3.2_build/src/.libs/libctl.so ../src/.libs/libctl.so -lguile-2.0 -lgc /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: geomtst.o: undefined reference to symbol 'cos@@GLIBC_2.2.5' /lib64/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status This is fixed upstream[0] in the 3.3 release. 0: https://github.com/stevengj/libctl/issues/1
Created attachment 516942 [details, diff] patch to include -lm library during configure
(In reply to amyascwk from comment #1) > Created attachment 516942 [details, diff] [details, diff] > patch to include -lm library during configure I also encounter the same build error for sci-libs/libctl-3.2. The attached patch includes the -lm library during configure, as suggested by upstream in https://github.com/stevengj/libctl/issues/1. With this change it manages to build successfully.
Package removed.