You are not logged in.

#1 2012-02-18 02:20:41

rhd
Member
From: /dev/knoll
Registered: 2010-10-25
Posts: 18
Website

[solved: I am a dope] Can gcc and gcc-multilib coexist?

If I try to install gcc-multilib, it conflicts with my existing 64-bit gcc package. Is there a way for me to install it in another path or install the binaries from gcc-multilib as gcc32, g++32 etc?

Last edited by rhd (2012-02-20 02:50:55)

Offline

#2 2012-02-18 02:52:43

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved: I am a dope] Can gcc and gcc-multilib coexist?

If you read the provides and conflicts of gcc-multilib, you'll find your answer.

Offline

#3 2012-02-18 04:06:20

rhd
Member
From: /dev/knoll
Registered: 2010-10-25
Posts: 18
Website

Re: [solved: I am a dope] Can gcc and gcc-multilib coexist?

:I I get that

Guess I will have to do some ABS-ing then

Offline

#4 2012-02-18 04:13:25

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [solved: I am a dope] Can gcc and gcc-multilib coexist?

I don't think you get what 'provides' means, to be honest....


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2012-02-18 04:19:28

rhd
Member
From: /dev/knoll
Registered: 2010-10-25
Posts: 18
Website

Re: [solved: I am a dope] Can gcc and gcc-multilib coexist?

I'm learning 32-bit assembly and the tutorial I am using has a small collection of example code and a little library which needs a 32-bit copy of libgcc.a.

libgcc.a is owned by gcc and not gcc-libs and so here I am, attempting to install the multilib package instead of the 64-bit version. The -m32 flag doesn't help. [edit: the -m32 flag to gcc, which tells it to compile for a 32 bit arch]

Last edited by rhd (2012-02-18 04:20:39)

Offline

#6 2012-02-18 04:43:39

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: [solved: I am a dope] Can gcc and gcc-multilib coexist?

Have you read the Arch64 FAQ? Specifically, the section titled "Can I build 32-bit packages for i686 inside Arch64"? ...

there are 2 ways to build 32bit applications inside of Arch64;

1st. by installing gcc-multilib and all of it's dependencies , as gcc-multilib *provides* both 32bit and 64bit. (it could be possible that you've missed some package/dependency that you need for multilib, in order for your code to compile?)

2nd. You could setup a Chroot / Bundled 32-bit system within your Arch64 system.

you should be able to find what you need in the FAQ, and the links it provides;

https://wiki.archlinux.org/index.php/Ar … _Arch64.3F

cheerz

Last edited by triplesquarednine (2012-02-18 04:47:36)

Offline

#7 2012-02-18 15:00:07

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved: I am a dope] Can gcc and gcc-multilib coexist?

rhd wrote:

I'm learning 32-bit assembly and the tutorial I am using has a small collection of example code and a little library which needs a 32-bit copy of libgcc.a.

libgcc.a is owned by gcc and not gcc-libs and so here I am, attempting to install the multilib package instead of the 64-bit version. The -m32 flag doesn't help. [edit: the -m32 flag to gcc, which tells it to compile for a 32 bit arch]

$ nosr libgcc.a
core/gcc
community/arm-elf-gcc-base
community/arm-wince-cegcc-gcc
community/avr-gcc
community/mingw32-gcc
community/mingw32-gcc-base
multilib/gcc-multilib

I tried to point out that gcc-multilib provides gcc. Everything gcc does, you can do with gcc-multilib. You can't have both installed at the same time (but you wouldn't want/need to, either).

Last edited by falconindy (2012-02-18 15:01:10)

Offline

#8 2012-02-19 19:42:35

rhd
Member
From: /dev/knoll
Registered: 2010-10-25
Posts: 18
Website

Re: [solved: I am a dope] Can gcc and gcc-multilib coexist?

Ah yes, "multi" means "multi"

thanks neutral

Offline

Board footer

Powered by FluxBB