<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How to compile a 32-bit application using gcc on the 64-bit Linux version</title> <atom:link href="http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Jumbo</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-175735</link> <dc:creator>Jumbo</dc:creator> <pubDate>Fri, 18 Nov 2011 21:38:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-175735</guid> <description>Hi should these be installed on the 32 bit or 64 bit?
1. libstdc++.i386
2. libgcc.i386
3. glibc.i386
4. glibc-devel.i386</description> <content:encoded><![CDATA[<p>Hi should these be installed on the 32 bit or 64 bit?<br
/> 1. libstdc++.i386<br
/> 2. libgcc.i386<br
/> 3. glibc.i386<br
/> 4. glibc-devel.i386</p> ]]></content:encoded> </item> <item><title>By: Jiabao Wan</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-172157</link> <dc:creator>Jiabao Wan</dc:creator> <pubDate>Mon, 27 Jun 2011 15:34:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-172157</guid> <description>Thanks !   Thanks!  Thanks!
I searched the entire Baidu(in china), did not find the answer!,This is where the original!
No one can give me the answer,but the teacher is here:
Make sure you have installed the following packages as well:-
1. libstdc++.i386
2. libgcc.i386
3. glibc.i386
4. glibc-devel.i386</description> <content:encoded><![CDATA[<p>Thanks !   Thanks!  Thanks!<br
/> I searched the entire Baidu(in china), did not find the answer!,This is where the original!</p><p>No one can give me the answer,but the teacher is here:<br
/> Make sure you have installed the following packages as well:-<br
/> 1. libstdc++.i386<br
/> 2. libgcc.i386<br
/> 3. glibc.i386<br
/> 4. glibc-devel.i386</p> ]]></content:encoded> </item> <item><title>By: Alex</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-171454</link> <dc:creator>Alex</dc:creator> <pubDate>Sat, 21 May 2011 05:08:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-171454</guid> <description>i have a  oriented file(tmp.o) compiled on 32-bit ,and i want to compile it with &quot;my.o&quot; on 64-bit  can i use that command???</description> <content:encoded><![CDATA[<p>i have a  oriented file(tmp.o) compiled on 32-bit ,and i want to compile it with &#8220;my.o&#8221; on 64-bit  can i use that command???</p> ]]></content:encoded> </item> <item><title>By: Vamsi</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-171116</link> <dc:creator>Vamsi</dc:creator> <pubDate>Tue, 03 May 2011 14:37:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-171116</guid> <description>This works best!!!</description> <content:encoded><![CDATA[<p>This works best!!!</p> ]]></content:encoded> </item> <item><title>By: felipe1982</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-161094</link> <dc:creator>felipe1982</dc:creator> <pubDate>Mon, 15 Nov 2010 06:03:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-161094</guid> <description>On openSUSE, I fixed the compilation problems by installing
gcc-c++-32bit
and all dependencies. now the problem is solved. It will automatically select gcc45, or, the latest gcc.</description> <content:encoded><![CDATA[<p>On openSUSE, I fixed the compilation problems by installing<br
/> gcc-c++-32bit<br
/> and all dependencies. now the problem is solved. It will automatically select gcc45, or, the latest gcc.</p> ]]></content:encoded> </item> <item><title>By: bknysz</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-156795</link> <dc:creator>bknysz</dc:creator> <pubDate>Wed, 23 Jun 2010 15:41:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-156795</guid> <description>If I remember correctly, I just manually copied the 32-bit version into the directory
/emul/ia32-linux/usr/lib/libelf*</description> <content:encoded><![CDATA[<p>If I remember correctly, I just manually copied the 32-bit version into the directory<br
/> /emul/ia32-linux/usr/lib/libelf*</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-156791</link> <dc:creator>Anonymous</dc:creator> <pubDate>Wed, 23 Jun 2010 12:06:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-156791</guid> <description>@bknysz: It&#039;s been a while, but did you find a solution for libelf issue? I am running into the same problem here ...</description> <content:encoded><![CDATA[<p>@bknysz: It&#8217;s been a while, but did you find a solution for libelf issue? I am running into the same problem here &#8230;</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-155554</link> <dc:creator>Anonymous</dc:creator> <pubDate>Tue, 04 May 2010 15:46:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-155554</guid> <description>you don&#039;t need a variable. sizeof(long) works fine, too ;)</description> <content:encoded><![CDATA[<p>you don&#8217;t need a variable. sizeof(long) works fine, too ;)</p> ]]></content:encoded> </item> <item><title>By: bknysz</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-154646</link> <dc:creator>bknysz</dc:creator> <pubDate>Wed, 31 Mar 2010 12:12:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-154646</guid> <description>I&#039;m trying to compile a 32-bit app on 64-bit debian. One of the libraries I need is libelf. The link is failing. Any ideas? I&#039;ve installed ia32-libs, and am using the -m32 compiler switch. Thanks for any help you can give me.</description> <content:encoded><![CDATA[<p>I&#8217;m trying to compile a 32-bit app on 64-bit debian. One of the libraries I need is libelf. The link is failing. Any ideas? I&#8217;ve installed ia32-libs, and am using the -m32 compiler switch. Thanks for any help you can give me.</p> ]]></content:encoded> </item> <item><title>By: jonywalker800</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-154226</link> <dc:creator>jonywalker800</dc:creator> <pubDate>Fri, 12 Mar 2010 05:23:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-154226</guid> <description>Thanks this is what i am looking for</description> <content:encoded><![CDATA[<p>Thanks this is what i am looking for</p> ]]></content:encoded> </item> <item><title>By: Sudarsun Santhiappan</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-150988</link> <dc:creator>Sudarsun Santhiappan</dc:creator> <pubDate>Thu, 08 Oct 2009 13:10:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-150988</guid> <description>Make sure you have installed the following packages as well:-
1. libstdc++.i386
2. libgcc.i386
3. glibc.i386
4. glibc-devel.i386</description> <content:encoded><![CDATA[<p>Make sure you have installed the following packages as well:-<br
/> 1. libstdc++.i386<br
/> 2. libgcc.i386<br
/> 3. glibc.i386<br
/> 4. glibc-devel.i386</p> ]]></content:encoded> </item> <item><title>By: Atie</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-150597</link> <dc:creator>Atie</dc:creator> <pubDate>Thu, 10 Sep 2009 17:29:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-150597</guid> <description>I faced this error when using &quot; gcc -m32 -o de &#039;/home/atieh/Desktop/debug.o&quot; of course my program is not only in C languge , it &#039;s embbeded with assembly.
here is the error:
skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status</description> <content:encoded><![CDATA[<p>I faced this error when using &#8221; gcc -m32 -o de &#8216;/home/atieh/Desktop/debug.o&#8221; of course my program is not only in C languge , it &#8216;s embbeded with assembly.<br
/> here is the error:<br
/> skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgcc.a when searching for -lgcc<br
/> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgcc.a when searching for -lgcc<br
/> /usr/bin/ld: cannot find -lgcc<br
/> collect2: ld returned 1 exit status</p> ]]></content:encoded> </item> <item><title>By: Highwind</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-150278</link> <dc:creator>Highwind</dc:creator> <pubDate>Fri, 21 Aug 2009 01:32:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-150278</guid> <description>I found this:
you might want to install glibc-devel.i386 (even if you’re on x64) to fix this problem
and this:
On ubuntu 64-bit version, solution is:
sudo apt-get install g++-multilib
hope that will solve it.</description> <content:encoded><![CDATA[<p>I found this:<br
/> you might want to install glibc-devel.i386 (even if you’re on x64) to fix this problem<br
/> and this:<br
/> On ubuntu 64-bit version, solution is:<br
/> sudo apt-get install g++-multilib</p><p>hope that will solve it.</p> ]]></content:encoded> </item> <item><title>By: Highwind</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-150276</link> <dc:creator>Highwind</dc:creator> <pubDate>Fri, 21 Aug 2009 01:26:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-150276</guid> <description>I get a similar error as Vlad:
In file included from /usr/include/features.h:352,
from /usr/include/stdio.h:28,
from slu_util.h:4,
from slu_sdefs.h:28,
from sgssv.c:9:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
Anyone?</description> <content:encoded><![CDATA[<p>I get a similar error as Vlad:<br
/> In file included from /usr/include/features.h:352,<br
/> from /usr/include/stdio.h:28,<br
/> from slu_util.h:4,<br
/> from slu_sdefs.h:28,<br
/> from sgssv.c:9:<br
/> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory</p><p>Anyone?</p> ]]></content:encoded> </item> <item><title>By: Steven</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-148970</link> <dc:creator>Steven</dc:creator> <pubDate>Mon, 15 Jun 2009 16:15:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-148970</guid> <description>Try giving build info to autoconf.
for a one line solution,
$&gt; env CFLAGS=&quot;-m32&quot; LDFLAGS=&quot;-m32&quot; ./configure --build=i686-unknown-linux-gnu ...</description> <content:encoded><![CDATA[<p>Try giving build info to autoconf.<br
/> for a one line solution,<br
/> $&gt; env CFLAGS=&#8221;-m32&#8243; LDFLAGS=&#8221;-m32&#8243; ./configure &#8211;build=i686-unknown-linux-gnu &#8230;</p> ]]></content:encoded> </item> <item><title>By: Tim</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-148587</link> <dc:creator>Tim</dc:creator> <pubDate>Sun, 17 May 2009 17:50:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-148587</guid> <description>Any ideas how to convince the average ./configure to compile in 32 bit mode? I&#039;m trying to compile pcsx2 (a PS2 emulator) in 32 bit mode because apparently it works better. I did
export CFLAGS=-m32
export CXXFLAGS=-m32
beforehand, and building stuff works. However the problem is that configure correctly realises I&#039;m using a 64 bit processor and set lots of #defines and other things (such as choosing the x86-64 version of an assembly file). This messes up the build. God I hate autotools.</description> <content:encoded><![CDATA[<p>Any ideas how to convince the average ./configure to compile in 32 bit mode? I&#8217;m trying to compile pcsx2 (a PS2 emulator) in 32 bit mode because apparently it works better. I did</p><p>export CFLAGS=-m32<br
/> export CXXFLAGS=-m32</p><p>beforehand, and building stuff works. However the problem is that configure correctly realises I&#8217;m using a 64 bit processor and set lots of #defines and other things (such as choosing the x86-64 version of an assembly file). This messes up the build. God I hate autotools.</p> ]]></content:encoded> </item> <item><title>By: martin</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-144679</link> <dc:creator>martin</dc:creator> <pubDate>Sun, 17 Aug 2008 11:19:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-144679</guid> <description>vlad - you need to install gcc multilib for your distribution - it should then compile O.K.</description> <content:encoded><![CDATA[<p>vlad &#8211; you need to install gcc multilib for your distribution &#8211; it should then compile O.K.</p> ]]></content:encoded> </item> <item><title>By: Amit</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-144391</link> <dc:creator>Amit</dc:creator> <pubDate>Thu, 17 Jul 2008 12:02:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-144391</guid> <description>How can I build x64 target. using -m64 gives error. how can I download the libraries for 64 bit. remember I am using ubuntu and gcc 4.1.2.
looks like by default gcc compiles x86.</description> <content:encoded><![CDATA[<p>How can I build x64 target. using -m64 gives error. how can I download the libraries for 64 bit. remember I am using ubuntu and gcc 4.1.2.</p><p>looks like by default gcc compiles x86.</p> ]]></content:encoded> </item> <item><title>By: vlad</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-143821</link> <dc:creator>vlad</dc:creator> <pubDate>Mon, 19 May 2008 17:27:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-143821</guid> <description>I got this error trying to compile with -m32 :S
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h
Whats wrong?</description> <content:encoded><![CDATA[<p>I got this error trying to compile with -m32 :S<br
/> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h</p><p>Whats wrong?</p> ]]></content:encoded> </item> <item><title>By: beparas</title><link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-139816</link> <dc:creator>beparas</dc:creator> <pubDate>Fri, 01 Jun 2007 12:07:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-139816</guid> <description>its working . thx</description> <content:encoded><![CDATA[<p>its working . thx</p> ]]></content:encoded> </item> </channel> </rss>
