You are not logged in.

#1 2015-06-09 18:56:49

mallard
Member
Registered: 2015-06-09
Posts: 2

[SOLVED] Unable to build 32-bit applications on 64-bit Arch System

Hey :-)

I'm trying to build a 32 bit application under Arch64.
I enabled the multilib repositories, updated and installed the lib32 packages.
When I build I'm using the -m32 flag. Compiling is fine, but when I try to link I'm getting errors such as

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc

(there are a lot like this, but with what i presume are different libraries)

I've done some googling but to no avail.

Can somebody help me out? Thanks :-)

Last edited by mallard (2015-06-10 07:04:06)

Offline

#2 2015-06-09 22:42:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Unable to build 32-bit applications on 64-bit Arch System

Do you have multilib-devel installed?

Offline

#3 2015-06-10 07:03:40

mallard
Member
Registered: 2015-06-09
Posts: 2

Re: [SOLVED] Unable to build 32-bit applications on 64-bit Arch System

Scimmia wrote:

Do you have multilib-devel installed?

Thanks for your help!
I installed gcc-multilib and now everything is working.

Offline

#4 2015-06-10 08:50:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] Unable to build 32-bit applications on 64-bit Arch System

You can also look at clean-chroot-manager for building arch32 on arch64.

Offline

#5 2016-02-08 17:51:12

iamfreee
Member
Registered: 2016-02-08
Posts: 1

Re: [SOLVED] Unable to build 32-bit applications on 64-bit Arch System

gcc-multilib worked here too! big_smile

Tbanks

Offline

Board footer

Powered by FluxBB