<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<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>Wed, 17 Mar 2010 22:30:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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 &#8217;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>
	<item>
		<title>By: nixcraft</title>
		<link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-43896</link>
		<dc:creator>nixcraft</dc:creator>
		<pubDate>Wed, 20 Dec 2006 12:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-43896</guid>
		<description>mojo

Thanks for heads up!</description>
		<content:encoded><![CDATA[<p>mojo</p>
<p>Thanks for heads up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mojo</title>
		<link>http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-43894</link>
		<dc:creator>mojo</dc:creator>
		<pubDate>Wed, 20 Dec 2006 12:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html#comment-43894</guid>
		<description>I think
gcc -m32 -o output64 hello.c 

should be 
                   !
gcc -m32 -o output32 hello.c

and 

$ gcc -m64 -o output64 hello.c

should be

$ gcc -m64 -o output64 hello.c</description>
		<content:encoded><![CDATA[<p>I think<br />
gcc -m32 -o output64 hello.c </p>
<p>should be<br />
                   !<br />
gcc -m32 -o output32 hello.c</p>
<p>and </p>
<p>$ gcc -m64 -o output64 hello.c</p>
<p>should be</p>
<p>$ gcc -m64 -o output64 hello.c</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.087 seconds -->
<!-- Cached page served by WP-Cache -->
