Article View: alt.os.linux.ubuntu
Article #125Cannot cross compile ONE LINE PROGRAM, 64 to 32 bit
From: Ignoramus11000
Date: Thu, 30 Oct 2008 17:41
Date: Thu, 30 Oct 2008 17:41
27 lines
2315 bytes
2315 bytes
Here's a program that I am trying to cross compile (obviously I am
working on a larger program, but this is a very simple illustration):
int main( int args, char **argv ) { return 0; }
Here's how I do it:
gcc -o exe -m32 q.c
Here's what I get:
~/tmp==>gcc -o exe -m32 q.c
/usr/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/usr/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
This is a Ubuntu Hardy machine, 64 bit, trying to cross compile for 32
bit. I installed a bunch of 32 bit libraries, but it does not
help. (ia32-libs gcc-4.2-multilib)
--
Due to extreme spam originating from Google Groups, and their inattention
to spammers, I and many others block all articles originating
from Google Groups. If you want your postings to be seen by
more readers you will need to find a different means of
posting on Usenet.
http://improve-usenet.org/
Technical Details
Message-ID:
<FP2dnfTT6Z5GbJTUnZ2dnUVZ_oPinZ2d@giganews.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11318c,79eb8258de53cf24,start X-Google-Thread: 1103af,79eb8258de53cf24,start X-Google-Attributes: gid11318c,gid1103af,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 30 Oct 2008 12:41:47 -0500 Newsgroups: alt.os.linux.ubuntu,gnu.gcc.help,comp.os.linux.development,comp.os.linux.misc From: Ignoramus11000 <ignoramus11000@NOSPAM.11000.invalid> Subject: Cannot cross compile ONE LINE PROGRAM, 64 to 32 bit User-Agent: slrn/0.9.8.1pl1 (Debian) Message-ID: <FP2dnfTT6Z5GbJTUnZ2dnUVZ_oPinZ2d@giganews.com> Date: Thu, 30 Oct 2008 12:41:47 -0500 Lines: 27 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-EnMHmebSBbla+RuyqW7IrLLoe0F+SBABmbr8AHFs5yxAjMDHYEYTb6FzCTpYGAuwXEITU+hM5yCWjeS!X5Z3AWBqeiiC0zb105OWP3pCGqXT+Rp9OpkYk0c1NfdjICXZdSyV8Yx1FwZXW0U+9zVzCpIrBzF5 X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39