<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using Alternate Compilers</title>
	<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/</link>
	<description>making sense of mixed up software</description>
	<pubDate>Mon, 13 Oct 2008 04:52:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on Using Alternate Compilers by: Prabhu</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-538</link>
		<pubDate>Mon, 11 Jun 2007 11:02:57 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-538</guid>
					<description>Hi,
 Could you please tell me how do we disable auto configuration ( stateless
FE80::) address in linux. Do we have any command or need to change any of config file in linux.

Thanks,
Prabhu</description>
		<content:encoded><![CDATA[	<p>Hi,<br />
 Could you please tell me how do we disable auto configuration ( stateless<br />
FE80::) address in linux. Do we have any command or need to change any of config file in linux.</p>
	<p>Thanks,<br />
Prabhu
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Using Alternate Compilers by: Moritz Barsnick</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-500</link>
		<pubDate>Wed, 10 Jan 2007 15:24:41 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-500</guid>
					<description>All autoconf based packages support
PROMPT&amp;#62; CC=mycompiler CXX=myothercompiler ./configure
These variables therefore also work with rpmbuild (if exported).

Most regular Makefiles also support CC/CXX make variables (note: not environment variables). But there's no default rpmbuild method to pass them in, without modifying at least the SPEC file. Therefore, IMHO, there should be a requirement for SPEC files to properly evaluate CC/CXX.

E.g. (not-autoconf based):
Modify the SPEC file line
make
to read
make CC=${CC:-gcc} CXX=${CXX:-g++}

I have stumbled across this tens of times while trying to (re)build with the Intel C++ Compiler (with programs called &quot;icc&quot; and &quot;icpc&quot;). (Autoconf-based packages are fine, as I'd like to stress again, and these make up some 90% or so of the distribution, I guess.)

Is it fair to submit bugzilla bugs against these SPEC files? Could there be a common understanding (especially among the build system folks) that this is a necessity?

Thanks,
Moritz</description>
		<content:encoded><![CDATA[	<p>All autoconf based packages support<br />
PROMPT&gt; CC=mycompiler CXX=myothercompiler ./configure<br />
These variables therefore also work with rpmbuild (if exported).</p>
	<p>Most regular Makefiles also support CC/CXX make variables (note: not environment variables). But there&#8217;s no default rpmbuild method to pass them in, without modifying at least the SPEC file. Therefore, IMHO, there should be a requirement for SPEC files to properly evaluate CC/CXX.</p>
	<p>E.g. (not-autoconf based):<br />
Modify the SPEC file line<br />
make<br />
to read<br />
make CC=${CC:-gcc} CXX=${CXX:-g++}</p>
	<p>I have stumbled across this tens of times while trying to (re)build with the Intel C++ Compiler (with programs called &#8220;icc&#8221; and &#8220;icpc&#8221;). (Autoconf-based packages are fine, as I&#8217;d like to stress again, and these make up some 90% or so of the distribution, I guess.)</p>
	<p>Is it fair to submit bugzilla bugs against these SPEC files? Could there be a common understanding (especially among the build system folks) that this is a necessity?</p>
	<p>Thanks,<br />
Moritz
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Using Alternate Compilers by: Krolyn</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-477</link>
		<pubDate>Fri, 01 Sep 2006 14:34:37 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-477</guid>
					<description>Hi all,

I've had a similar problem. I needed to compile a program with gcc-3.2.3 and so installed compat-gcc-32. the compiler works perfectly (must use gcc32 instead og gcc) but I have no java support since gcj is only installed in the 4.1 version. Any idea how to use gcj with gcc-3.2.3??

thans in adv</description>
		<content:encoded><![CDATA[	<p>Hi all,</p>
	<p>I&#8217;ve had a similar problem. I needed to compile a program with gcc-3.2.3 and so installed compat-gcc-32. the compiler works perfectly (must use gcc32 instead og gcc) but I have no java support since gcj is only installed in the 4.1 version. Any idea how to use gcj with gcc-3.2.3??</p>
	<p>thans in adv
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Using Alternate Compilers by: Awais</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-465</link>
		<pubDate>Sat, 22 Jul 2006 18:02:04 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-465</guid>
					<description>Changing Default GCC
I have to change the gcc version from the default 3.x or 4.x to gcc2.95 as I am working in NS which does not even comple with gcc3.x.
What I do is install the gcc2.95 in /opt and change the system variables for path etc in /etc/bashrc to include the /opt before /usr/bin/blah_blah
Furthermore the gcc2.95 doesnt compile with gcc4.x so I have to first compile it with gcc3.x and then use it to install the version of NS I usually work on.

For further inquiries or details you can contact me at awais(dot)lodhi(at)gmail(dot)com</description>
		<content:encoded><![CDATA[	<p>Changing Default GCC<br />
I have to change the gcc version from the default 3.x or 4.x to gcc2.95 as I am working in NS which does not even comple with gcc3.x.<br />
What I do is install the gcc2.95 in /opt and change the system variables for path etc in /etc/bashrc to include the /opt before /usr/bin/blah_blah<br />
Furthermore the gcc2.95 doesnt compile with gcc4.x so I have to first compile it with gcc3.x and then use it to install the version of NS I usually work on.</p>
	<p>For further inquiries or details you can contact me at awais(dot)lodhi(at)gmail(dot)com
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Using Alternate Compilers by: Mauriat</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-299</link>
		<pubDate>Wed, 12 Apr 2006 13:29:21 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-299</guid>
					<description>Dinh:
How did you install gcc3.4.3? (Did you install yourself? Or did you use a supported RPM?)
What program are you trying to compile?

You can only run 'make c++=g++34' if the 'Makefile' you are using supports the variable 'c++'. Open 'Makefile' and look for that variable.</description>
		<content:encoded><![CDATA[	<p>Dinh:<br />
How did you install gcc3.4.3? (Did you install yourself? Or did you use a supported RPM?)<br />
What program are you trying to compile?</p>
	<p>You can only run &#8216;make c++=g++34&#8242; if the &#8216;Makefile&#8217; you are using supports the variable &#8216;c++&#8217;. Open &#8216;Makefile&#8217; and look for that variable.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Using Alternate Compilers by: Dinh</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-298</link>
		<pubDate>Wed, 12 Apr 2006 13:24:09 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-298</guid>
					<description>I have a gcc4.0 on my Mandriva and I need to run programs with gcc3.4.3. I installed gcc3.4.3 but then I dont know how to change gcc3.4.3 as default compiler? Any help please?

In the discussion below, did u mean: If I use &quot;make c++=g++34&quot;, my program will be compiled with gcc3.4? 

Thanks</description>
		<content:encoded><![CDATA[	<p>I have a gcc4.0 on my Mandriva and I need to run programs with gcc3.4.3. I installed gcc3.4.3 but then I dont know how to change gcc3.4.3 as default compiler? Any help please?</p>
	<p>In the discussion below, did u mean: If I use &#8220;make c++=g++34&#8243;, my program will be compiled with gcc3.4? </p>
	<p>Thanks
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Using Alternate Compilers by: Chris</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-183</link>
		<pubDate>Wed, 22 Mar 2006 21:43:20 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-183</guid>
					<description>Finally, FINALLY someone explains this. I have had a migraine since 4.x was released. In most cases this works. &quot;Some&quot; is an understatement when it comes to software that does not compile on Suse 10 or Fedora 4 if you ask me, its about 95%. Thanks for Posting this I am very greatful for the information!!!</description>
		<content:encoded><![CDATA[	<p>Finally, FINALLY someone explains this. I have had a migraine since 4.x was released. In most cases this works. &#8220;Some&#8221; is an understatement when it comes to software that does not compile on Suse 10 or Fedora 4 if you ask me, its about 95%. Thanks for Posting this I am very greatful for the information!!!
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Using Alternate Compilers by: Mauriat</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-69</link>
		<pubDate>Fri, 27 Jan 2006 12:59:20 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-69</guid>
					<description>Aaron: You are correct. Thanks</description>
		<content:encoded><![CDATA[	<p>Aaron: You are correct. Thanks
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Using Alternate Compilers by: Aaron</title>
		<link>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-60</link>
		<pubDate>Fri, 27 Jan 2006 04:28:08 +0000</pubDate>
		<guid>http://www.mjmwired.net/linux/2005/11/15/using-alternate-compilers/#comment-60</guid>
					<description># export CC=gcc32
# export CPP=g++32
# ./configure

Please note, it only worked for me when I used CXX (C++ compiler) instead of CPP (pre-processor).</description>
		<content:encoded><![CDATA[	<p># export CC=gcc32<br />
# export CPP=g++32<br />
# ./configure</p>
	<p>Please note, it only worked for me when I used CXX (C++ compiler) instead of CPP (pre-processor).
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
