Mail Archives: djgpp/1998/06/10/08:09:35
From: Petros Dafniotis <dafniotis AT my DOT company DOT com>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please don't use such addresses if You want somebody to answer
You !!! One alternative for me was to ignore message at all (I thought
about this). I'm sure You don't want this.
Subject: g77 v0.5.23 and gcc 2.8.1: Crashes!
> [NOTE: Email address intentionally wrong to avoid SPAMMERS]
> [Email me at the address below should you wish to contact me]
>
> Ok, I am desperate to get this to work.
>
> I downloaded:
> - all files from v2,
> - important files from v2gnu,
> - important files from v2apps and v2gnu
>
> I have:
> a DELL Pentium 200MMX running Win95 with FAT32.
>
> I installed gcc 2.8.1 with sources. After that I installed g77 0.5.23
> (taken from prep.ai.mit.edu) and merged the two distributions. I made a
> link to BASH for SH (i.e.
> cd \djgpp\bin
> ln -s bash.exe sh.exe (I may have this the other way around)
> )
> I defined the PATH and DJGPP correctly (BTW, it is very important to put
> the DJGPP\BIN in the beginning of the PATH to have the SH scripts use
> DJGPP's find instead of MSDOS find; that took me 2hrs to figure it
> out..) and I modified DJGPP.ENV to allow for `LFN=y'. I then modified
> the files Makefile and Make-lang.in in djgpp/gnu/gcc-2.81/f/ (replaced
> "stamp-objlist" with "s-objlist" as someone had suggested in DejaNews)
> and then I executed the:
Perhaps this was my recent posting. Some days ago I uploaded archives
also of g77 (together with some updates to gcc-2.8.1 due to problems that
appeared after initial upload in begin of May) to ftp.delorie.com and now they
can be downloaded together. However as I see that's no problem for You
as in my archives was only changes mentioned above and some more similar
ones.
>
> cd \djgpp\gnu\gcc-2.81\build.djg
> bash
> . djconfig.sh
> . djmake.sh all CFLAGS=-O2
> . djmake.sh install CFLAGS=-O2 prefix=$DJDIR
>
> (step 2 terminated with the message "out of DPMI load selectors" and I
> had to start another DOS session and continue with reexecuting that
> step)
>
Known to me. I had to do the same. This problem is mentioned in DJGPP FAQ
and restarting make in fresh DOS session is perhaps only cure currently.
> All in all, it builds everything. But then g77 crashes in simple files
> like for example the LAPACK cbdsqr.f with:
> g77 -c -O2 -fno-backslash cbdsqr.f
> (with -O it goes through this one but fails in another LAPACK file).
>
Downloaded from NETLIB cbdsqr.f and tried to compile with g77 version
I uploaded to ftp.delorie.com: no crashes for me (I didn't check if cdbsqr works
correctly)
C:\FTP>g77 -v -c -O2 -fno-backslash cbdsqr.f
g77 version 0.5.23
Reading specs from c:/djgpp/lib/gcc-lib/djgpp\2.81\specs
gcc version 2.8.1
c:/djgpp/lib/gcc-lib/djgpp\2.81\f771.exe cbdsqr.f -fset-g77-defaults -quiet -du
mpbase cbdsqr.f -O2 -version -fversion -fno-backslash -o c:/djgpp/tmp\ccaqybqh
GNU F77 version 2.8.1 (djgpp) compiled by GNU C version 2.8.1.
GNU Fortran Front End version 0.5.23
c:/djgpp/bin/as.exe -o cbdsqr.o c:/djgpp/tmp\ccaqybqh
However I was also able to crash g77 with optimizations in some other
programs and also was unable to get correct results on some others (not all of
course). However I'm not going to spend much time with Fortran as I mostly
using C++ (only some programs that are written in Fortran). You may try to use
f2c for such sources. I hope there should be no problems in mixing f2c and g77
I think that it would be nice if somebody who regulary uses g77 and is
able to build it from sources could try to locate such problems and
could submit bug reports about g77. I shall not do this as I use Fortran
not often at all.
> I also tried rebuilding the GCC/G77 using CFLAGS=-O only. It also fails
> for g77.
If You are thinking problems of compiling Fortran sources than I think this
should not matter whether You're compiling gcc/g77 with -O or -O2 or without
optimizations at all (unless You're expecting to meet some C compiler bug
here)
>
> Any ideas? Has anyone been able to build g77 v0.5.23 and compile all
> BLAS and LAPACK sources for example?
>
About the first question I already answered.
About second: I didn't tried to build any of them.
>
> PS: I have emx/rsx with g77 v0.5.22 working fine with these files.
> PPS: I did not try rsx or cwsdpmi or anything else with DJGPP.
>
Some problems that was fixed in 0.5.22 reappeared in 0.5.23 as
gcc driver was no more patched for g77 (so some problems were no more
fixed). See readme files about g77 for more info.
With best regards
Andris
- Raw text -