Waldek Hebisch a écrit:
Maurice Lombardi wrote:
Frank Heckenbach a écrit:
I have uploaded a new beta version of GPC to http://www.gnu-pascal.de/beta/.
To run the tests I changed from running in the source gcc/p/test directory to running in the build/gcc directory (with make pascal.check) there was a makefile problem because the standard units are in the source tree, not in the build tree. Applying the following patch
--- Make-lang.in.orig 2003-08-28 01:12:52.000000000 +0000 +++ Make-lang.in 2004-02-07 19:25:44.000000000 +0000 @@ -1104,7 +1104,7 @@ echo ""; \ sed -e "s,^srcdir *=.*,srcdir=`cd $(srcdir)/p/test && pwd`,; \ s,^PC *=.*,PC=`pwd`/xgpc -B`pwd`/,; \
s,^TEST_PATHS *=.*,TEST_PATHS=-I ../rts --unit-path=`pwd`/p/units," \
} > p/test/Makefile || { rm -f p/test/Makefile; false; } $(STAMP) "$@"s,^TEST_PATHS *=.*,TEST_PATHS=-I ../rts --unit-path=$(srcdir)/p/units," \ $(srcdir)/p/test/Makefile; \
solves the problem
I wonder what is happening there. I always run tests from `build/gcc' directory and all tests run fine for me. AFAIKS the test script sets uses: --unit-path=$SRCDIR --unit-path=$SRCDIR/../rts \ --unit-path=$SRCDIR/../units --unit-path=$DEFAULT_UNIT_DIR \
and the `$SRCDIR/../units' part should find units from the source tree.
You are right. In fact I have made this change in one of the previous alphas, forgot to say this to you and kept the diff on Make-lang.in in my files. I noticed it because Franck sent a new diff (RTSSTAGESTUFF) on the same file, and I sent my old diff to you. Now I have suppressed this diff, the Makefile generated in build/gcc/p/test has a wrong --unit-path but the test runs successfully because the script test_run supplies a correct unit-path So you should correct Make-lang.in either by supplying the correct unit-path or by suppressing it Notice that the I ../rts is necessary to find the generated files build/gcc/p/rts/rts-config.[h inc] which are not in the source tree.
Since I do not keep track of all my old attempts I cannot find when precisely I have introduced this.
Sorry
Maurice