You are not logged in.
Hi,
upgraded gcc today and after since the command
gcc -m32 -o sample sample.c
terminates with
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
and no a.out file got generated
apparently the linker is somewhat broken, but don't really have a clue how
the commands
gcc -m32 -o sample.s -S sample.c
and
gcc -o sample sample.c
work fine.
Has anyone of you an idea what's wrong with my libgcc.a?
Thanks for help
tobias
Last edited by tobi_k (2012-10-10 09:22:29)
Offline
This has possibly something to do with it:
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] y
:: gcc and gcc-multilib are in conflict. Remove gcc-multilib? [y/N] y
gcc 4.7.2-1 71.25 MiB 17.97 MiB
gcc-libs 4.7.2-1 2.93 MiB 0.75 MiB
gcc-libs-multilib 4.7.1-6 -2.95 MiB
gcc-multilib 4.7.1-6 -78.85 MiB
pkgfile -sv libgcc.a:
...
multilib/gcc-multilib 4.7.1-6 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/libgcc.a
multilib/gcc-multilib 4.7.1-6 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/32/libgcc.a
...
It is still there, but installing gcc-multilib gives a conflict, I think due to this "provide" line:
Repository : multilib
Name : gcc-libs-multilib
Version : 4.7.1-6
URL : http://gcc.gnu.org
Licenses : GPL LGPL FDL custom
Groups : None
Provides : gcc-libs=4.7.1-6
I guess we need to wait for gcc-libs-multilib to get updated to 4.7.2.
Bug reported at https://bugs.archlinux.org/task/31856
Last edited by Lekensteyn (2012-10-09 10:25:42)
Offline
Thank you for your reply,
yes that's the exact update I did.
Waiting is probably the only option, even though it's quite a pain to do so...
Have a good day,
tobias
Offline
In case you have missed it, you need to install libtool-multilib. See also the duplicate thread https://bbs.archlinux.org/viewtopic.php … 2#p1172942
Offline
Yes worked out for me,
just did a Pacman -S libtool-multilib
Offline