Gentoo Archives: gentoo-user

From: Roger Mason <rmason@×××.ca>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Compiling 32 bit library on x86_64
Date: Fri, 30 Apr 2010 09:25:53
Message-Id: y65eihxs35n.fsf@perthite.esd.mun.ca
1 Hello,
2
3 I need to compile a 32 bit version of libtermcap on an x86_64 (multilib)
4 system. Can someone tell me how to set up CFLAGS? This is what I have
5 at the moment:
6
7 CFLAGS="-O2 -m32 -march=native -msse3 -pipe"
8 CXXFLAGS="-O2 -m32 -march=native -msse3 -pipe"
9
10 ebuild libtermcap-compat-2.0.8-r2.ebuild compile
11
12 ends with:
13
14 /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld:
15 i386 architecture of input file `termcap.o' is incompatible with
16 i386:x86-64 output
17 /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld:
18 i386 architecture of input file `tparam.o' is incompatible with
19 i386:x86-64 output
20 /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld:
21 i386 architecture of input file `version.o' is incompatible with
22 i386:x86-64 output
23
24 Thanks,
25 Roger

Replies

Subject Author
Re: [gentoo-user] Compiling 32 bit library on x86_64 Mike Edenfield <kutulu@××××××.org>