Maurice Lombardi wrote:
That was part of the solution. With this patch it goes up to the compilation of strings.pas. It dies with
../.././xgpc -B../.././ -c -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 `cat needed-options` -DRTS_RELEASE_STRING="'`cat /dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts/rts-version`'" -DGCC_VERSION="'3.11'" /dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts/string.pas gpc1.exe: internal error: Segmentation violation Please submit a full bug report, with preprocessed source if appropriate. See URL:http://www.gnu-pascal.de/todo.html for instructions. make.exe[3]: *** [string.o] Error 1 make.exe[3]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc/p/rts' make.exe[2]: *** [pascal.rts] Error 2 make.exe[2]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcMaurice Lombardi wrote: That was part of the solution. With this patch it goes up to the compilation of strings.pas. It dies with
../.././xgpc -B../.././ -c -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 `cat needed-options` -DRTS_RELEASE_STRING="'`cat /dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts/rts-version`'" -DGCC_VERSION="'3.11'" /dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts/string.pas gpc1.exe: internal error: Segmentation violation Please submit a full bug report, with preprocessed source if appropriate. See URL:http://www.gnu-pascal.de/todo.html for instructions. make.exe[3]: *** [string.o] Error 1 make.exe[3]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc/p/rts' make.exe[2]: *** [pascal.rts] Error 2 make.exe[2]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gc make.exe[1]: *** [stage2_build] Error 2 make.exe[1]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc' make.exe: *** [bootstrap] Error 2
I was able to reproduce the problem in cross-compiler targetting djgpp. Looks like another bug with debug info. Try re-making with 'CFLAGS=-O2'.
Waldek Hebisch a écrit:
Maurice Lombardi wrote:
That was part of the solution. With this patch it goes up to the compilation of strings.pas. It dies with
I was able to reproduce the problem in cross-compiler targetting djgpp. Looks like another bug with debug info. Try re-making with 'CFLAGS=-O2'.
Rather BOOT_CFLAGS=-O2 And I had to remove manually -g in p/rts/makefile.in for the compilation of rtsc.o and rtsc.lo But it dies anyway while compiling the first pascal program of the rts as
---------------------------------------------------------------------------
../.././xgpc -B../.././ -c -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -O2 --unit-path=/dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts --automake `cat needed-options` -DRTS_RELEASE_STRING="'`cat /dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts/rts-version`'" -DGCC_VERSION="'3.11'" /dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts/rtsc.pas /dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts/rtsc.pas:421: internal error: Segmentation violation Please submit a full bug report, with preprocessed source if appropriate. See URL:http://www.gnu-pascal.de/todo.html for instructions. make.exe[3]: *** [rtsc.o] Error 1 make.exe[3]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc/p/rts' make.exe[2]: *** [pascal.rts] Error 2 make.exe[2]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc' make.exe[1]: *** [stage2_build] Error 2 make.exe[1]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc' make.exe: *** [bootstrap] Error 2
---------------------------------------------------------------------------
(needed options is void)
Maurice
Maurice Lombardi wrote:
Waldek Hebisch a _crit:
I was able to reproduce the problem in cross-compiler targetting djgpp. Looks like another bug with debug info. Try re-making with 'CFLAGS=-O2'.
Rather BOOT_CFLAGS=-O2 And I had to remove manually -g in p/rts/makefile.in for the compilation of rtsc.o and rtsc.lo But it dies anyway while compiling the first pascal program of the rts as
<snip>
I was not able to reproduce the problem in cross-compiler (I have no machine with DJGPP handy). However, in distributed version I used wrong order of initialisation -- parts of backed were used before being initialised. Could you try the following patch? It corrects initialisation and also should enable stabs debug info (still no dwarf).
Waldek Hebisch a écrit:
Maurice Lombardi wrote:
Waldek Hebisch a _crit:
I was able to reproduce the problem in cross-compiler targetting djgpp. Looks like another bug with debug info. Try re-making with 'CFLAGS=-O2'.
Rather BOOT_CFLAGS=-O2 And I had to remove manually -g in p/rts/makefile.in for the compilation of rtsc.o and rtsc.lo But it dies anyway while compiling the first pascal program of the rts as
<snip>
I was not able to reproduce the problem in cross-compiler (I have no machine with DJGPP handy). However, in distributed version I used wrong order of initialisation -- parts of backed were used before being initialised. Could you try the following patch? It corrects initialisation and also should enable stabs debug info (still no dwarf).
Still the same crash. I used the flags BOOT_CFLAGS=-O2 RTSFLAGS="-gstabs -v"
------------------------------------------------------------------------
../.././xgpc -B../.././ -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -O2 -gstabs -v --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: Reading specs from ../.././specs Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls --enable-languages=pascal --enable-checking --enable-stabs Thread model: single gpc version 20021111, based on gcc-3.1.1 ../.././gpcpp.exe -v -I. -iprefix ../.././../lib/gcc-lib/djgpp/3.11/ -isystem ../.././include -famtmpfile=c:\djgpp\tmp/ccMNPJ1e.gpa -funit-path=/dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts -fautomake -fprint-needed-options -fdelphi-comments -D__GNU_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_LITTLE_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 -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Acpu=i386 -Amachine=i386 -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/ccorvjTj.i GNU Pascal Compiler PreProcessor version 20021111, based on gcc-3.1.1 (80386, BSD syntax) {$include "..."} search starts here: {$include <...>} search starts here: . End of search list. ../.././gpc1.exe c:\djgpp\tmp/ccorvjTj.i -quiet -dumpbase endian.pas -gstabs -O2 -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -version -famtmpfile=c:\djgpp\tmp/ccMNPJ1e.gpa -funit-path=/dev/c/djgpp/gnu/gcc311s2/gnu/gcc-3.11/gcc/p/rts -fautomake -fprint-needed-options -o c:\djgpp\tmp/ccHQwJnk.s GNU Pascal version 3.1.1 (djgpp) compiled by GNU C version 3.1.1. make.exe[3]: *** [needed-options] Error 1 make.exe[3]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc/p/rts' make.exe[2]: *** [pascal.rts] Error 2 make.exe[2]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc' make.exe[1]: *** [stage2_build] Error 2 make.exe[1]: Leaving directory `c:/djgpp/gnu/gcc311s2/gnu/gcc-3.11/build.djg/gcc' make.exe: *** [bootstrap] Error 2
-------------------------------------------------------------------------
I will be out of office for a week. No email, no computer ...
Maurice