pavenis@lanet.lv wrote:
I did build build of gcc-2.95.3 together with gpc-20010409 (after fixing some small source problems, see gcc2953s2.zip for details) for DJGPP under Linux. Seems that it works Ok.
Compiler binaries for DJGPP (built under Linux): http://www.ltn.lv/~pavenis/gpc2953s.zip
b
Output of tests http://www.ltn.lv/~pavenis/make.out
Updated version of gcc2953s2.zip http://www.ltn.lv/~pavenis/gcc2953s2.zip (native building is not really tested)
Very nearly OK. I have done a native (W98/dos box) build of the same gpc-20010409, using original gcc-2.95.3.tar.gz (and libg++-2.8.1.3.tar.gz) sources and the abovementioned gcc2953s2.zip. The only small change was in makesrc.sh to avoid spurious " which made dtou fail when doing with $gpc-archive. The modified zip is in
ftp://agnes.dida.physik.uni-essen.de/home/maurice/gcc2953s2.zip
Compilation of the whole gcc collection succeeds. I have only removed the -mno-bnu210 options in CFLAGS and CXXFLAGS in djbuild1.sh, since I have bnu210 installed. The "native" compiler was already gcc2953b from simtelnet.
The resulting gpc2953b.zip is uploaded to
ftp://agnes.dida.physik.uni-essen.de/home/maurice/gpc2953b.zip
Running the gpc test suite results in only one failure: y2k.pas (which is new). The problem is with the function sleep: Has this function been changed recently ? (We have been discussing at length of various delay functions).
To check I have also installed your abovementioned gpc2953b.zip and tried to compile y2k.pas. It fails with:
C:\djgpp\gnu\gcc-2.953\gcc\p\test>gpc y2k.pas -o y2k.exe --autobuild -D__BP_UNPO RTABLE_ROUTINES__ c:/djgpp/lib/gcc-lib/djgpp/2.953/libgpc.a(file.o)(.text+0x49d):file.c: undefined reference to `lstat' c:/djgpp/lib/gcc-lib/djgpp/2.953/libgpc.a(file.o)(.text+0x18e2):file.c: undefine d reference to `llseek' c:/djgpp/lib/gcc-lib/djgpp/2.953/libgpc.a(file.o)(.text+0x266b):file.c: undefine d reference to `llseek' c:/djgpp/lib/gcc-lib/djgpp/2.953/libgpc.a(file.o)(.text+0x26a9):file.c: undefine d reference to `llseek' c:/djgpp/lib/gcc-lib/djgpp/2.953/libgpc.a(file.o)(.text+0x26e8):file.c: undefine d reference to `llseek' c:/djgpp/lib/gcc-lib/djgpp/2.953/libgpc.a(file.o)(.text+0x2802):file.c: undefine d reference to `llseek' collect2: ld returned 1 exit status
It is a config problem. In my native building tree I find in gcc/p/rts/rts-config.h
<snip> /* Define if the llseek function is declared in <unistd.h>. */ /* #undef LLSEEK_DECLARED */ <snip> /* Define if you have the lstat function. */ /* #undef HAVE_LSTAT */ <snip> and this is correct when looking to my %DJGPP%/include files.
Hope this helps
Maurice