You are not logged in.

#1 2012-10-09 09:37:36

tobi_k
Member
Registered: 2012-10-09
Posts: 3

[Solved] No IA32 compilation possible after gcc upgrade

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

#2 2012-10-09 10:18:32

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 181
Website

Re: [Solved] No IA32 compilation possible after gcc upgrade

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

#3 2012-10-09 10:26:52

tobi_k
Member
Registered: 2012-10-09
Posts: 3

Re: [Solved] No IA32 compilation possible after gcc upgrade

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

#4 2012-10-09 20:58:23

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 181
Website

Re: [Solved] No IA32 compilation possible after gcc upgrade

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

#5 2012-10-10 09:22:12

tobi_k
Member
Registered: 2012-10-09
Posts: 3

Re: [Solved] No IA32 compilation possible after gcc upgrade

Yes worked out for me,

just did a Pacman -S libtool-multilib

Offline

Board footer

Powered by FluxBB