This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
LFS in g77
- From: "Dr. Germund Höjer" <germund at eros dot pquim dot unam dot mx>
- To: gcc-help at gcc dot gnu dot org
- Cc: Gamess-L at gl dot ciw dot edu
- Date: Tue, 17 Sep 2002 14:39:17 -0600
- Subject: LFS in g77
- Organization: Facutad de Química, UNAM
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