Sir,
I am working in HP Pascal (3000) application running in mainframe. I want to make the application run in Linux platform. For this I have to translate the pascal code to C and compile in Linux or use a direct Pascal compiler and compile in Linux. So I installed GNU and tried compilation of a pascal code. But I came across problems in installation and compilation. I need your valuable suggestion or advice to proceed my work. Please help me.
Following are the information YOU need :
GCC version -                               GCC 3.2.2
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu
System type                                i386-redhat-linux-gnu
GCC Configure Option                 ../gnu/gcc-3.2.2/configure --enable-languages=pascal
Command Passed to GCC prog    ../gnu/gcc-3.2.2/configure --enable-languages=pascal
 
I took gpc-20020510.tar, gpc-20030830.i686-pc-linux-gnu.tar,gpc-20020510.tar,gpc-20030830.tar files from web site. I followed the installation instructions  given in the site. After unpacking the zip file I did configuration of GCC by following command:
 
BUG reported after configure:
[root@EXE-INDIA2 gpc-build]# ../gnu/gcc-3.2.2/configure --enable-languages=pascal
Configuring for a i686-pc-linux-gnu host.
                First few lines
*** This configuration is not supported in the following subdirectories:
     target-libstdc++-v3 target-libf2c target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)
Created "Makefile" in /gpc-build using "mt-frag"
Configuring libiberty...
                Last few lines
*** ../../gnu/gcc-3.2.2/gcc/configure detected GCC version 3.2.2.
*** GPC 2.1 requires one of the following versions of GCC sources to build:
***
***   2.8.1
***   2.95.1
***   2.95.2
***   2.95.3-5
***   2.95.3-6
***   2.95.3
***   2.95.4
***   2.95
***
*** (You can try to patch GCC manually by typing a command like
*** `patch -p1 < p/diffs/gcc-2.95.diff' and patching possible rejects
*** by hand before you run `../../gnu/gcc-3.2.2/gcc/configure' again.)
***
Configure in /gpc-build/gcc failed, exiting. I tried
 
I don't know what Patch command will do, but I tried and failed. [root@EXE-INDIA2 gpc-build]# patch -p1 < p/diffs/gcc-2.95.diff
bash: p/diffs/gcc-2.95.diff: No such file or directory
Then I installed GNU by command "make install"
I have given only few lines, not all.
 
[root@EXE-INDIA2 gpc-build]# make install
/bin/sh /gnu/gcc-3.2.2/mkinstalldirs /usr/local /usr/local
make[1]: Entering directory `/gpc-build/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/gnu/gcc-3.2.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  /gnu/gcc-3.2.2/libiberty/regex.c -o pic/regex.o; \
else true; fi
 
I assumed that GNU had been installed and I tried compilation and I encountered the following:[root@EXE-INDIA2 gpc-build]# gpc -c uttrace.p
uttrace.p:1: numeric constant contains digits beyond the radix
uttrace.p:1: warning: missing program header
uttrace.p:1: parse error before `control'
 
I agian tried with other command: [root@EXE-INDIA2 gpc-build]# gcc -c braccess.p
gcc: braccess.p: Pascal compiler not installed on this system
 
Still I am not clear whether I have installed and configured the GNU properly.  I have attached a pascal source to get compiled in Linux. I want that simple file to be compiled successfully in Linux. I request you to help me in solving the installation problems. Awaiting your reply. Happy New Year!
 
Thanks and regards,
B.Gayathri