public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* LFS in g77
@ 2002-09-17 12:36 Dr. Germund Höjer
  0 siblings, 0 replies; only message in thread
From: Dr. Germund Höjer @ 2002-09-17 12:36 UTC (permalink / raw)
  To: gcc-help; +Cc: Gamess-L

I use SuSE 7.2 with kernel 2.4.4 and glibc 2.2.2-18 ugdated to 2.2.2-64. I have built GCC 3.2 without problems. 

echo ++++ Configure
set CFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
set CXXFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
set LDFLAGS=-s
/home/germund/gcc/gcc-3.2/configure --prefix=/opt/gcc32 --disable-shared \
                                    --enable-threads --disable-libgcj \
                                    --enable-languages=c,f77 --disable-nls \
                                    > $ORGDIR/$BUILD-configure.log
echo ++++ Build
make CFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
LIBCFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
CXXFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fno-implicit-templates" \
LIBCXXFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fno-implicit-templates" \
BOOT_CFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
LDFLAGS=-s bootstrap > $ORGDIR/$BUILD-build.log
echo ++++ Install
make CFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
LIBCFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
CXXFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fno-implicit-templates" \
LIBCXXFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fno-implicit-templates" \
BOOT_CFLAGS="-O2 -march=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
LDFLAGS=-s install > $ORGDIR/$BUILD-install.log

The quantum chemistry package GAMESS compiles o'kay and all test cases run correctly. 

But running a case producing a disk file lager than 2GB fails. The file is created properly, the file size reported by the KDE default filemanager coincides with the number of 
records saved on disk. This is true for the case of files less than 4GB. In the case of larger files I am not quite sure, the file size reported by the filemanager wraps around at 
4GB but the diskfile may be correct (I have not been able to check). However in all cases with a file > 2GB, when the program (GAMESS) after creating the file tries to read it 
an I/O error is produced and the program aborts.
It seems that g77 almost has LFS, only a minor error remains in this combination.

With gcc 3.0x different patches to gcc depending on glibc version used, where necessary to make LFS work.

Is there any kernel-glibc-gcc combination which creates a g77 with LFS without any particular patches needed?
If patches are needed, how does one create them or where can they be found?
I have not managed to find in the gcc documentation the special flags for LFS used during configuration-build-install of gcc. The ones reported above have been published 
by Georgy Salnikov on the GAMESS home site.

Any help or suggestion is appreciated.

Best regards

Dr. Germund Höjer
Facultad de Química
Universidad Nacional Autónoma de México
México, D.F.
tel: +52-55-56223804 
fax: +52-55-56223521
germund@eros.pquim.unam.mx
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-17 19:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17 12:36 LFS in g77 Dr. Germund Höjer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).