/usr/lib/gcc/x86_64-pc-linux-gnux32/9.3.0/../../../../x86_64-pc-linux-gnux32/bin/ld: i386 architecture of input file `simd/CMakeFiles/simd.dir/i386/jidctint-avx2.asm.o ' is incompatible with i386:x64-32 output /usr/lib/gcc/x86_64-pc-linux-gnux32/9.3.0/../../../../x86_64-pc-linux-gnux32/bin/ld: i386 architecture of input file `simd/CMakeFiles/simd.dir/i386/jquanti-avx2.asm.o' is incompatible with i386:x64-32 output /usr/lib/gcc/x86_64-pc-linux-gnux32/9.3.0/../../../../x86_64-pc-linux-gnux32/bin/ld: final link failed: file in wrong format collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. * ERROR: media-libs/libjpeg-turbo-2.0.4::gentoo failed (compile phase): * ninja -v -j1 -l0 failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 4049: Called cmake-multilib_src_compile * environment, line 620: Called multilib-minimal_src_compile * environment, line 3344: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile' * environment, line 3594: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 3279: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 3277: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile' * environment, line 488: Called multilib-minimal_abi_src_compile * environment, line 3338: Called multilib_src_compile * environment, line 3814: Called cmake_src_compile * environment, line 721: Called cmake_build * environment, line 700: Called eninja * environment, line 1309: Called die * The specific snippet of code: * "$@" || die "${nonfatal_args[@]}" "${*} failed" Reproducible: Always Steps to Reproduce: emerge libjpeg-turbo Actual Results: fails to compile Expected Results: compile successfully
Created attachment 640184 [details] The complete build log
Created attachment 640186 [details] The ebuild environment
emerge -pqv '=media-libs/libjpeg-turbo-2.0.4::gentoo' [ebuild N ] media-libs/libjpeg-turbo-2.0.4 USE="-java -static-libs" ABI_X86="(x32) -32 -64" * IMPORTANT: 22 news items need reading for repository 'gentoo'. * Use eselect news read to view new items.
Created attachment 640188 [details] emerge --info '=media-libs/libjpeg-turbo-2.0.4::gentoo'
Changing -DREQUIRE_SIMD=OFF to -DWITH_SIMD=OFF in libjpeg-turbo-2.0.5-r1.ebuild seems to fix the problem. I was able to build it for all three x86 ABIs. - [[ ${ABI} == "x32" ]] && mycmakeargs+=( -DREQUIRE_SIMD=OFF ) #420239 + [[ ${ABI} == "x32" ]] && mycmakeargs+=( -DWITH_SIMD=OFF ) #420239 #723800
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16351f1c34fa68463027918e9ae59268885b4927 commit 16351f1c34fa68463027918e9ae59268885b4927 Author: Sam James <sam@gentoo.org> AuthorDate: 2020-12-12 22:25:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-12-12 22:25:10 +0000 media-libs/libjpeg-turbo: fix compilaton on ppc, x32 * Drop now-unnecessary FLOATTEST workaround for tests to pass on ppc. It was causing the build to fail in 2.0.6. * Update x32 workaround. Closes: https://bugs.gentoo.org/723800 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org> media-libs/libjpeg-turbo/libjpeg-turbo-2.0.6.ebuild | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)