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.