Maurice Lombardi wrote:
I have now tried to build gpc with gcc-3.1.1 under djgpp
The build dies at the beginning of the rts compilation with the following message
../.././xgpc -B../.././ -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 --unit-path=/dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts --automake --print-needed-options "/dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts/endian.pas" 2> "needed-options" || true if grep -v '^--' "needed-options" > /dev/null; then echo "needed-options: `cat "needed-options"`"
&2; rm -f "needed-options"; false; else true; fi
needed-options: xgpc.exe: installation problem, cannot exec `gpcpp': No such file or directory (ENOENT)
If I relaunch the offending instruction with adding -v I obtain
Reading specs from ../.././specs Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disab le-nls --enable-languages=pascal Thread model: single gpc version 20021111, based on gcc-3.1.1 gpcpp -v -I. -iprefix ../.././../lib/gcc-lib/djgpp/3.11/ -isystem ../.././inclu de -famtmpfile=c:\djgpp\tmp/ccglUE0I.gpa -funit-path=/dev/c/djgpp/gnu/gcc311s2/g nu/gcc-3.11/gcc/p/rts -fautomake -fprint-needed-options -fdelphi-comments -D__GN U_PASCAL__ -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GPC__=2 -D__GPC_MINOR__=1 -D__GPC _VERSION__=2.1 -D__GPC_RELEASE__=20021111 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_L ITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -D__NEED_NO_ALIGNMENT__=1 -D__MSDOS __ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__ unix__ -Asystem=msdos -Asystem=unix -D__OPTIMIZE__ -W -Wall -Wpointer-arith -Wwr ite-strings -Wmissing-prototypes -Wmissing-declarations -Acpu=i386 -Amachine=i38 6 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 - DDJGPP=2 -Dunix -remap -imacros ../.././djgpp.ver /dev/c/djgpp/gnu/gcc311s2/gnu/ gcc-3.11/gcc/p/rts/endian.pas c:\djgpp\tmp/ccmwE9Qh.i xgpc.exe: installation problem, cannot exec `gpcpp': No such file or directory ( ENOENT) [exited with 1]
apparently the directory ../../ is not prepended to gpcpp (as it should due to -B../.././ and it is when compiled with gcc-2.95.3)
gpcpp.exe and gpc.exe are in this directory. If I copy them in the rts directory the build goes successfully. But if I install the newly builts gpc (and gcc) and I try to compile a small pascal program of mine, I obtain exactly the same problem. gcc itself has no problem.
Any hint ?
It might be a problem with the executable suffix. I hope the following patch with the corresponding code from 3.1.1's gcc.c will fix it.
Frank