Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790614 - media-libs/sdl2-image[abi_x86_32]: i386 architecture of input file `.libs/IMG.o' is incompatible with i386:x86-64 output
Summary: media-libs/sdl2-image[abi_x86_32]: i386 architecture of input file `.libs/IMG...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-05-17 00:45 UTC by orbea
Modified: 2021-05-24 13:14 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,74.52 KB, text/x-log)
2021-05-17 00:45 UTC, orbea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description orbea 2021-05-17 00:45:30 UTC
Created attachment 709233 [details]
Build log

When building sdl2-image with USE=abi_x86_32 the build fails because it drops the value of $CC for a single linker command and respects OBJC instead.

It can be fixed in the ebuild:

multilib_src_compile() {
        emake OBJC="$(tc-getCC)"
}

-------

rdlibtool --mode=link gcc -I/usr/include/libpng16 -O2 -pipe -I/usr/include/SDL2 -D_REENTRANT -no-undefined -release 2.0 -version-info 6:0:6 -Wl,-O1 -Wl,--as-needed -o libSDL2_image.la -rpath /usr/lib IMG.lo IMG_bmp.lo IMG_gif.lo IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo IMG_svg.lo IMG_tga.lo IMG_tif.lo IMG_xcf.lo IMG_xpm.lo IMG_xv.lo IMG_webp.lo IMG_WIC.lo -lpng16 -lz -ljpeg -ljpeg -lSDL2

rdlibtool: lconf: {.name="libtool"}.
rdlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/var/tmp/portage/media-libs/sdl2-image-2.0.5_p20210328/work/SDL_image-f36684864e82538da2d2cf57fa3db077a3be42c7-abi_x86_32.x86"}.
rdlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 65026, .st_ino = 146949880}.
rdlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = 3.
rdlibtool: lconf: found "/var/tmp/portage/media-libs/sdl2-image-2.0.5_p20210328/work/SDL_image-f36684864e82538da2d2cf57fa3db077a3be42c7-abi_x86_32.x86/libtool".
rdlibtool: link: ln -s libSDL2_image-2.0.so.def .libs/libSDL2_image-2.0.so.def.linux
rdlibtool: link: ln -s libSDL2_image-2.0.so.def.linux .libs/libSDL2_image-2.0.so.def.host
rdlibtool: link: ln -s /dev/null .libs/libSDL2_image.a.disabled
rdlibtool: link: gcc .libs/IMG.o .libs/IMG_bmp.o .libs/IMG_gif.o .libs/IMG_jpg.o .libs/IMG_lbm.o .libs/IMG_pcx.o .libs/IMG_png.o .libs/IMG_pnm.o .libs/IMG_svg.o .libs/IMG_tga.o .libs/IMG_tif.o .libs/IMG_xcf.o .libs/IMG_xpm.o .libs/IMG_xv.o .libs/IMG_webp.o .libs/IMG_WIC.o -I/usr/include/libpng16 -O2 -pipe -I/usr/include/SDL2 -D_REENTRANT -Wl,-O1 -Wl,--as-needed -lpng16 -lz -ljpeg -lSDL2 -shared -fPIC -Wl,--no-undefined -Wl,-soname -Wl,libSDL2_image-2.0.so.0 -o .libs/libSDL2_image-2.0.so.0.6.0
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_bmp.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_gif.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_jpg.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_lbm.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_pcx.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_png.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_pnm.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_svg.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_tga.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_tif.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_xcf.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_xpm.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_xv.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_webp.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/IMG_WIC.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/IMG.o: file class ELFCLASS32 incompatible with ELFCLASS64
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: file in wrong format
collect2: error: ld returned 1 exit status
rdlibtool: exec error upon slbt_exec_link_create_library(), line 1572: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 2084.
make: *** [Makefile:580: libSDL2_image.la] Error 2
Comment 1 Larry the Git Cow gentoo-dev 2021-05-18 17:16:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71f83406f4f917153d37525c872a59931291706e

commit 71f83406f4f917153d37525c872a59931291706e
Author:     orbea <orbea@riseup.net>
AuthorDate: 2021-05-17 01:29:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-18 17:16:10 +0000

    media-libs/sdl2-image: Fix for multilib + slibtool
    
    Closes: https://bugs.gentoo.org/790614
    Signed-off-by: orbea <orbea@riseup.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/sdl2-image/sdl2-image-2.0.5_p20210328.ebuild | 4 ++++
 1 file changed, 4 insertions(+)
Comment 2 Ulrich Müller gentoo-dev 2021-05-18 20:16:01 UTC
(In reply to Larry the Git Cow from comment #1)

Reverted, invalid Signed-off-by.