Hi, Its my first time to write to this list, but I hope I can describe my problem clearly. I am currently supposed to program "things" (university stuff) in pascal and the teachers recommended GNU-pascal. So I tried to install it on my linux machine (specs later) - no luck. Then I decided to build the gcc from scratch (first I used the compiling tutorial on the gnu-pascal.de) and when I reached a point in ./configure where I got an error:
*** *** Detected GCC version 3.3.2. *** GPC 2.1 requires one of the following versions of the GCC sources to build: *** *** 2.8.1 *** 2.95.1 *** 2.95.2 *** 2.95.3-5 *** 2.95.3-6 *** 2.95.3-8 *** 2.95.3 *** 2.95.4 *** 2.95 *** 3.2.1 *** 3.2.2 *** 3.2.3 *** 3.3.1 *** 3.3 *** *** (You can try to patch GCC manually by typing a command like *** `patch -p1 < p/diffs/gcc-<version>.diff' and patching possible *** rejects by hand before you run configure again.) ***
So I downloaded the .diff files from gcc ftp
-rw-r--r-- 1 root root 7916747 Oct 22 22:14 gcc-3.2.2-3.2.3.diff -rw-r--r-- 1 root root 84108856 Oct 22 22:10 gcc-3.2.3-3.3.diff -rw-r--r-- 1 root root 1222880 Oct 22 22:01 gcc-3.3.1-3.3.2.diff -rw-r--r-- 1 root root 16818189 Oct 22 22:04 gcc-3.3-3.3.1.diff
so here are four of them. And no the things that started to puzzle me:
Currently my gcc is 3.2.2 and the gcc I am trying to compile is 3.3.2. The last supported gcc (by ./configure) is 3.3 so do I need to start applying the patches from the 3.2.2-3.2.3 and so on (all those 4 patches in logical order) or is it done somehow differently?
Doesn't applying the patches break my current gcc as it is needed later with the same compiling?
the ./configure line is ./configure --prefix=/usr/local --enable-shared --with-gnu-as --with-gnu-ld --enable-threads=posix --disable-checking --enable-languages=c,c++,ada,f77,objc,java, pascal --with-system-zlib --enable-__cxa_atexit
My machine is Linux serenity 2.4.20-8 #1 Thu Mar 13 16:42:56 EST 2003 i586 i586 i386 GNU/Linux (300mhz AMD K6-2)
I am using
gpc-20030830.tar.gz http://www.gnu-pascal.de/alpha/gpc-20030830.tar.gz (downloaded 22.10.03 from gnu-pascal.de)
All ideas and links appreciated.
Thank You in advance, Oliver
Oliver Aruväli wrote:
Currently my gcc is 3.2.2 and the gcc I am trying to compile is 3.3.2. The last supported gcc (by ./configure) is 3.3 so do I need to start applying the patches from the 3.2.2-3.2.3 and so on (all those 4 patches in logical order) or is it done somehow differently?
You only need to add the included "gcc-3.3.2.diff" file to the gcc/p/diffs folder, the rest is done automatically by the configure scripts.
Doesn't applying the patches break my current gcc as it is needed later with the same compiling?
No, the patches are conditionalized (and building gpc also will give you a gcc compiler).
Regards,
Adriaan van Os
Oliver Aruveli wrote:
I am currently supposed to program "things" (university stuff) in pascal and the teachers recommended GNU-pascal. So I tried to install it on my linux machine (specs later) - no luck. Then I decided to build the gcc from scratch (first I used the compiling tutorial on the gnu-pascal.de) and when I reached a point in ./configure where I got an error:
*** Detected GCC version 3.3.2. *** GPC 2.1 requires one of the following versions of the GCC sources to build:
<snip>
*** (You can try to patch GCC manually by typing a command like *** `patch -p1 < p/diffs/gcc-<version>.diff' and patching possible *** rejects by hand before you run configure again.)
So I downloaded the .diff files from gcc ftp
Look carefully at the message. It says you to use a patch provided with gpc. gcc-3.3.2 was released after gpc-20030830, so gpc does not know about your gcc, however the patch for gcc-3.3 should work OK (you should get 1 rejected hunk, but that is harmless). So, in the gcc directory you should do patch -p1 < p/diffs/gcc-3.3.diff
You do not need patches from gcc site (the patches from gcc site are to update older gcc to a newer one, you already have newest gcc).
<snip>
the ./configure line is ./configure --prefix=/usr/local --enable-shared --with-gnu-as --with-gnu-ld --enable-threads=posix --disable-checking --enable-languages=c,c++,ada,f77,objc,java, pascal --with-system-zlib --enable-__cxa_atexit
My machine is Linux serenity 2.4.20-8 #1 Thu Mar 13 16:42:56 EST 2003 i586 i586 i386 GNU/Linux (300mhz AMD K6-2)
I am using
gpc-20030830.tar.gz http://www.gnu-pascal.de/alpha/gpc-20030830.tar.gz (downloaded 22.10.03 from gnu-pascal.de)
That looks OK.