Frank Heckenbach a écrit:
I've uploaded a new alpha version. I had some problems when compiling the utils stuff with djgpp/gcc-2.95.3 The reason was that GPC_FOR_TARGET was overriden from top level makefile by
c:/djgpp/b/gnu/gcc-2.953/build.djg/gcc/xgpc -Bc:/djgpp/b/gnu/gcc-2.953/build.djg/gcc/ -Bc:/djgpp/i586-pc-msdosdjgpp/bin/ Applying GCC2GPC gives c:/djgpp/b/gnu/gcc-2.953/build.djg/gpc/xgpc -B ... ^ and the needed -I./p/rts is lost The following diff solved the problem for me (take care to unwanted line wrappings): --- p/Make-lang.in.orig 2003-02-09 13:37:16.000000000 +0000 +++ p/Make-lang.in 2003-02-13 13:57:54.000000000 +0000 @@ -163,10 +163,11 @@ # The GPC to use for compiling libgpc.a # Usually the one we just built. -GPC_FOR_TARGET=./xgpc -B./ -I./p/rts +GPC_FOR_TARGET=./xgpc -B./ ADD_RTS_PARENT_DIR=sed -e 's,\(-[BI]\)\([^/][^:]\),\1../../\2,g;s,^\([^/][^:]*/\),../../\1,' GCC2GPC=sed 's, *$$,,;s,^\([^ ]*[/\][^/\]*\)gcc,\1gpc,;s/^gcc$$/gpc/' # $(CC) might be .../gcc-foo/.../xgcc +ADD_RTS_DIR=sed -e 's,$$, -I./p/rts ,' # The ' ' is there so, e.g., `-B.' will be replaced by ADD_RTS_PARENT_DIR RTS_COMPILERS=CC="`echo $(GCC_FOR_TARGET)' ' | $(ADD_RTS_PARENT_DIR)`" \ @@ -193,7 +194,7 @@ # Flags to pass when building the utilities. (PC is the GPC for the host!) UTILS_FLAGS_TO_PASS=\ SHELL="$(SHELL)" \ - PC="`if [ x"$(GPC_HOST)" = x"$(target)" ]; then echo $(GPC_FOR_TARGET)' '; else echo $(CC)' '; fi | $(ADD_RTS_PARENT_DIR) | $(GCC2GPC)`" \ + PC="`if [ x"$(GPC_HOST)" = x"$(target)" ]; then echo $(GPC_FOR_TARGET)' '; else echo $(CC) | $(GCC2GPC); fi | $(ADD_RTS_DIR) | $(ADD_RTS_PARENT_DIR)`" \ CFLAGS="$(CFLAGS)" \ PFLAGS="$(PFLAGS)" \ exeext="$(exeext)" \ but I have no possibility to check the case host <> target Otherwise no errors in the test suite with gcc-2.95.3 and only one with gcc-3.2.1 TEST fjf165a.pas: SKIPPED: German locale not installed TEST fjf341b.pas: c:/djgpp/b/gnu/gcc-3.21/gcc/p/test/fjf341b.pas:5: tree c heck: expected integer_cst, have plus_expr in tree_int_cst_sgn, at tree.c:3515 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu-pascal.de/todo.html> for instructions. failed TEST longr2.pas: SKIPPED: no LongReal math routines available # of GPC tests 3151 # of GPC tests passed 3148 # of GPC tests skipped 2 # of GPC tests failed 1 Maurice -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 63 54 95 mailto:Maurice.Lombardi@ujf-grenoble.fr