Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723800 - media-libs/libjpeg-turbo-2.0.4 fails to compile on x32
Summary: media-libs/libjpeg-turbo-2.0.4 fails to compile on x32
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-05-18 19:29 UTC by Sandino Araico Sanchez
Modified: 2020-12-12 22:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The complete build log (media-libs:libjpeg-turbo-2.0.4:20200518-192657.log.gz,8.43 KB, application/gzip)
2020-05-18 19:32 UTC, Sandino Araico Sanchez
Details
The ebuild environment (environment,157.63 KB, text/plain)
2020-05-18 19:35 UTC, Sandino Araico Sanchez
Details
emerge --info '=media-libs/libjpeg-turbo-2.0.4::gentoo' (file_723800.txt,5.64 KB, text/plain)
2020-05-18 19:37 UTC, Sandino Araico Sanchez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandino Araico Sanchez 2020-05-18 19:29:09 UTC
/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
Comment 1 Sandino Araico Sanchez 2020-05-18 19:32:12 UTC
Created attachment 640184 [details]
The complete build log
Comment 2 Sandino Araico Sanchez 2020-05-18 19:35:27 UTC
Created attachment 640186 [details]
The ebuild environment
Comment 3 Sandino Araico Sanchez 2020-05-18 19:36:25 UTC
 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.
Comment 4 Sandino Araico Sanchez 2020-05-18 19:37:14 UTC
Created attachment 640188 [details]
emerge --info '=media-libs/libjpeg-turbo-2.0.4::gentoo'
Comment 5 lumato 2020-08-23 12:03:33 UTC
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
Comment 6 Larry the Git Cow gentoo-dev 2020-12-12 22:25:17 UTC
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(-)