Thanks again.
Please see below ...
Joe.
-----Original Message----- From: Prof. A Olowofoyeku (The African Chief) [SMTP:african_chief@bigfoot.com] Sent: Thursday, April 11, 2002 8:27 PM To: da Silva, Joe Subject: RE: gpc ebuild for gentoo linux
On 11 Apr 2002 at 19:38, da Silva, Joe wrote:
Thanks, Chief.
Mandrake normally has GCC 2.96 (well, my copy at least),
Yes, it does. But v8.1 only comes with gcc-3.0.x, but that is not the default compiler that the system uses.
which from previous discussions is a "broken" version.
I don't think it is broken in respect of what it can do (it can build the linux kernel, and anything else). But the sources are probably not compatible with building GPC on them.
So my plan to eventually install a GCC 2.95.3 and a similar build of GPC might be problematic?
Not at all. I have done that. It is quite straightforward. However, you will need to install GPC with "make install", rather than "make pascal.install". That way, gcc-2.95.3 will also be installed along with GPC. Just make sure that you don't overwrite the existing gcc installation. I normally configure with "--prefix=/usr/local", so
[Joe da Silva]
Is there any particular reason I should not overwrite an existing GCC installation? I had intended to use "make install" and standardize on 2.95.3 for both GCC and GPC (I'd rather not have two versions of GCC installed, unless I have to).
that the new installation goes to a different place from the system compiler, and when I want to run GPC, I first do: "export PATH=/usr/local/bin:$PATH This means that the GPC path will be found first, and if GPC needs to use the C compiler for something (e.g., building the crt unit), it will use the new gcc-2.95.3 instead of the system gcc compiler).
Hmmm ... looks like I will have to become a lot more familiar with this Linux stuff, before I try this. :-/
There is nothing to fear. It is all quite straightforward. It is as simple as: configure --prefix=/usr/local make make install export PATH=/usr/local/bin:$PATH
Best regards, The Chief
Prof. Abimbola Olowofoyeku (The African Chief) Email: African_Chief@bigfoot.com http://www.bigfoot.com/~african_chief/
On 12 Apr 2002 at 17:35, da Silva, Joe wrote:
[...]
Mandrake normally has GCC 2.96 (well, my copy at least),
Yes, it does. But v8.1 only comes with gcc-3.0.x, but that is not the default compiler that the system uses.
This was a misprint. v8.1 "also" (not "only) comes with gcc-3.0.x.
[...]
So my plan to eventually install a GCC 2.95.3 and a similar build of GPC might be problematic?
Not at all. I have done that. It is quite straightforward. However, you will need to install GPC with "make install", rather than "make pascal.install". That way, gcc-2.95.3 will also be installed along with GPC. Just make sure that you don't overwrite the existing gcc installation. I normally configure with "--prefix=/usr/local", so
[Joe da Silva]
Is there any particular reason I should not overwrite an existing GCC installation? I had intended to use "make install" and standardize on 2.95.3 for both GCC and GPC (I'd rather not have two versions of GCC installed, unless I have to).
You can overwrite the existing gcc installation if you want to, and if you know what you are doing. My advice is: don't do it. The gcc that comes installed with the distro is, AFAIK, fully functional (in the sense that it can compile the kernel). If you overwrite it, then you are on your own!
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~African_Chief email: African_Chief@bigfoot.com
da Silva, Joe wrote:
-----Original Message----- From: Prof. A Olowofoyeku (The African Chief)
Not at all. I have done that. It is quite straightforward. However, you will need to install GPC with "make install", rather than "make pascal.install". That way, gcc-2.95.3 will also be installed along with GPC. Just make sure that you don't overwrite the existing gcc installation. I normally configure with "--prefix=/usr/local", so
`make pascal.install-with-gcc' (in recent GPC's) will only install the GCC files in the .../gcc-lib/... directory and not overwrite the main gcc binary. That's meant for such cases.
Using a different prefix means you then have a gcc (the system's) in /usr/bin and another one (newly built) in /usr/local/bin, and it depends on the order of your PATH which one you actually use. I wouldn't really recommend that.
Frank