Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443634 - dev-vcs/git-1.8.0-r1 USE=gnome-keyring - ld: i386:x86-64 architecture of input file `git-credential-gnome-keyring.o' is incompatible with i386 output
Summary: dev-vcs/git-1.8.0-r1 USE=gnome-keyring - ld: i386:x86-64 architecture of inpu...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-11-17 13:56 UTC by crabbed halo ablution
Modified: 2014-01-20 04:45 UTC (History)
0 users

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


Attachments
git-1.8.0-gnome-keyring-multilib.patch (git-1.8.0-gnome-keyring-multilib.patch,597 bytes, patch)
2012-11-17 13:56 UTC, crabbed halo ablution
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description crabbed halo ablution 2012-11-17 13:56:20 UTC
Created attachment 329718 [details, diff]
git-1.8.0-gnome-keyring-multilib.patch

Basically it's about respecting CFLAGS. The new git-credential-gnome-keyring doesn't, making it flame out with an error message like this when it tries to link:
gcc -g -O2 -Wall   -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include   -o git-credential-gnome-keyring.o -c git-credential-gnome-keyring.c
gcc -o git-credential-gnome-keyring -Wl,--as-needed -Wl,--hash-style=gnu -m32 git-credential-gnome-keyring.o -lgnome-keyring -lglib-2.0  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `git-credential-gnome-keyring.o' is incompatible with i386 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: git-credential-gnome-keyring.o: file class ELFCLASS64 incompatible with ELFCLASS32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: File in wrong format

Attached trivial patch fixes it.
Comment 1 crabbed halo ablution 2012-11-17 14:06:20 UTC
Bug report also sent to  git@vger.kernel.org
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-18 22:28:26 UTC
Can you please provide `emerge --info` in a comment and attach the full build log?