Multiple gcc versions?
I have gcc 4.2.3 installed normally. Then I have the exec of gcc 3.3.6 named gcc-3.3.6 in the same dir as the gcc exec. What else do I need to do to ensure the older exec will work? Because it doesn't seem like it does right now, gives me this:
Quote:
|
gcc-3.3.6 usualy comes together with g77 and/or f77, they will
probably be used sometimes, gcc-3.3.6 may be not so usefull. And why use it at all ? Having 3, e.g gcc-4.2.3, gcc-4.1.2 and 4.3.1 is no problem. Can be called with 'CC=gcc-4.x.x command ... ' or / and 'CXX=g++-4.x.x command ... ' .... |
Quote:
|
Sorry, my failure : There is no gcc-3.3.6 in my Slackware 12.1
( For some other Linux's something like that is installed together with the old g77 ) Do you know, where gcc-3.3.6 (/usr/bin/gcc-3.3.6 ?) came from ? Try ' grep gcc-3.3 /var/log/packages/* ' to find the package. ( I doubt, the 3.3.6 from slack 10.2 will work in 12.1 ) .... |
Quote:
I am using Slackware 10.2.0 |
OK, I remember software, which couldn't find 'cc1'
# 'ln -s /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/cc1 \ /usr/local/bin' will work in some occasions. But better delete it after use, may confuse things with the other compiler. .... And by the way, gcc-4.2.3 indicates Slackware 12.1 .... |
Quote:
Quote:
The only thing in /usr/lib/gcc-lib/i486-slackware-linux/3.3.6 is f771 and include |
I have tried building the old gcc source to install in a different dir, and I get this error:
Code:
# gcc -c -g -O2 -gnatpg -gnata -I- -I. -Iada -I./ada ada/ada.ads -o ada/ada.o |
Are you building gcc-3.3.6 with CC=gcc-3.3.6 ??
The gcc people recommends the method from LFS to be used for building gcc. Please use a build directory outside gcc-X.x LFS 4 chapter 5, pass 1 http://lfs.sourceforge.net/view/4.0/chapter05/gcc.html chapter 6, pass 2 http://lfs.sourceforge.net/view/4.0/chapter06/gcc.html LFS 6.3 http://www.linuxfromscratch.org/lfs/view/6.3/ .... |
I didn't specify anything like that CC=3.3.6, no.
Where would I do that? There is nothing simple like CC=4.4.2 in the Makefile. |
The configure script, often present in a source code
package will write your argument " CC= " into the Makefile, when it is done like this 'CC=gcc-3.3.6 ./configure' If there is no "configure" , make should take this argument : 'CC=gcc-3.3.6 make' The expression 'gcc-3.3.6' must be spelled exactly as you have it in /usr/bin/ ( and not " =3.3.6 " ) More examples # 5 http://www.linuxquestions.org/questi...-lenny-694054/ .... |
I am confused. So I should be compiling with gcc-3.3.6? Because if my first post I mentioned it does not work. I am missing something?
|
gcc-3.3.6 , # 1
Quote:
So what is the real question ?? .... |
The issue is 3.3.6 as I said it does not work:
Quote:
I need gcc 3.3.6 installed and working as well. |
.
Did you try with a link to /usr/local/bin/ ? If cc1 is present in /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/ ? Which software is complaining ? .... |
All times are GMT -5. The time now is 09:46 PM. |