FAILED: bin/simage-read-line-test : && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/simage-read-line-test.dir/examples/simage-read-line-test.c.o -o bin/simage-read-line-test -Wl,-rpath,/var/tmp/portage/media-libs/simage-1.7.1-r1/work/simage-1.7.1_build/lib lib/libsimage.so.1.7.1a -lsndfile -lm && : /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lsndfile collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. * ERROR: media-libs/simage-1.7.1-r1::gentoo failed (compile phase): ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-libressl-20191121-201237 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * clang: clang version 9.0.0 (tags/RELEASE_900/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/9/bin llvm: 9.0.0 Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Fri, 22 Nov 2019 05:06:08 +0000 emerge -qpvO media-libs/simage [ebuild N ] media-libs/simage-1.7.1-r1 USE="-debug -gif -jpeg -png -qt5 -sndfile -tiff -vorbis"
Created attachment 597310 [details] emerge-info.txt
Created attachment 597312 [details] emerge-history.txt
Created attachment 597314 [details] environment
Created attachment 597316 [details] etc.portage.tbz2
Created attachment 597318 [details] logs.tbz2
Created attachment 597320 [details] media-libs:simage-1.7.1-r1:20191122-062742.log
Created attachment 597322 [details] temp.tbz2
Came upon this issue today. To me it looks like this happens due to the patch from ${FILESDIR}/simage-1.7.1-fix-examples-linking.patch for bug #698882 which introduces linking against libsndfile, while it doesn't RDEPEND on libsndfile unconditionally.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e5e9468b40041e840c3018a2a930c0562018490 commit 1e5e9468b40041e840c3018a2a930c0562018490 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2019-12-16 09:33:50 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2019-12-16 09:34:06 +0000 media-libs/simage-1.7.1-r1: fixed examples linking examples need to link against libsndfile unconditionally so either we could make the dep unconditional or not build the examples. i chose the latter way. btw, examples are not installed anyway, they are just compiled. Closes: https://bugs.gentoo.org/701030 Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> .../files/simage-1.7.1-disable-examples.patch | 44 ++++++++++++++++++++++ .../files/simage-1.7.1-fix-examples-linking.patch | 22 ----------- media-libs/simage/simage-1.7.1-r1.ebuild | 5 ++- 3 files changed, 48 insertions(+), 23 deletions(-)