Subject: g98 compilation using g77

From: "Luke Sweet" <[email-masked]>
Date: Sat, 17 Nov 2001 15:05:44 -0800

I am trying to compile g98 rev A.11 source code running Linux 7.1 on a AMD k6-3 using the g77 and gcc compilers.  I have read that AMD processors are not the greatest for running g98 on but I just want to figure out how to compile the code without using the portland group compiler (I plan on getting a PIII later).  I have read that g98 has been compiled successfully with g77 and that most of the fixes are in the i386.make file.  I have make a couple changes but now I am stuck as to what to do next.  If anyone has any advise on other things that need to be changed or an i386.make file that would work for me, please respond.  Here is the end of the bldg98.log file that I get when trying to compile.

g77   -O2    -c dummy.f
rm -f dummy.f dummy.c
ld -shared -o util.so dummy.o --whole-archive util.a \
--no-whole-archive
gau-fsplit -e ml0 bsd/main.F
ml0.F already exists, over-written
make -f bsd/g98.make OPTFLAG=' -O2   '  ml0.o
make[1]: Entering directory `/luke/sweetle/g98/g98'
gau-cpp -I/luke/sweetle/g98/g98 -I/luke/sweetle/g98/g98s -DGAUSS_PAR -DGAUSS_THPAR  -DDEFMAXSHL=20000 -DDEFMAXATM=20000 -DDEFMAXNZ=20000 -DDEFNVDIM=257 -DDEFARCREC=1024 -DMERGE_LOOPS -DUSE_ESSL -D_I386_ -DLITTLE_END -DUSING_F2C -DDEFMAXIOP=100 -DDEFMAXCHR=1024 -DDEFLMAX=13 -DDEFN3MIN=10 -DDEFMAXHEV=2000 -DDEFCACHE=64 -DDEFMAXLECP=10 -DDEFMAXFUNIT=5 -DDEFMAXFFILE=10000 -DDEFMAXFPS=1300 -DDEFMAXINFO=200 -DDEFMAXOP=120 -DDEFMAXTIT=100 -DDEFMAXRTE=4000 -DDEFMAXOV=500 -D_ALIGN_CORE_  -DO_BKSPEF -DDEFMXTS=1500 -DDEFMXBAS=500 -DDEFMXOPT=50 -DDEFMXBOND=12 -DDEFMXSPH=250 -DDEFMXINV=1500   ml0.F ml0.f
g77  -O2    -c ml0.f
rm -f ml0.f ml0.c
make[1]: Leaving directory `/luke/sweetle/g98/g98'
g77   -O2    -o g98 ml0.o   util.so
ml0.o: In function `MAIN__':
ml0.o(.text+0x7c): undefined reference to `swflag_'
util.so: undefined reference to `gtshls_'
util.so: undefined reference to `swappt_'
util.so: undefined reference to `gtzcrp_'
util.so: undefined reference to `gtoeps_'
util.so: undefined reference to `gsqrt_'
util.so: undefined reference to `symnum_'
util.so: undefined reference to `symscl_'
util.so: undefined reference to `gtrssy_'
util.so: undefined reference to `symten_'
util.so: undefined reference to `symtop_'
util.so: undefined reference to `gord93_'
util.so: undefined reference to `gran_'
util.so: undefined reference to `wait_'
util.so: undefined reference to `grouptr_'
util.so: undefined reference to `gredun_'
util.so: undefined reference to `gtzcrd_'
util.so: undefined reference to `gvwrite_'
util.so: undefined reference to `gtpqil_'
util.so: undefined reference to `gredfc_'
util.so: undefined reference to `gsin_'
util.so: undefined reference to `fork_'
util.so: undefined reference to `symcor_'
util.so: undefined reference to `symant_'
util.so: undefined reference to `symmo_'
util.so: undefined reference to `gtinct_'
util.so: undefined reference to `gsetmp_'
util.so: undefined reference to `symtr6_'
util.so: undefined reference to `gsign_'
util.so: undefined reference to `gtzcrs_'
util.so: undefined reference to `gxmpy_'
collect2: ld returned 1 exit status
make: *** [g98] Error 1
endif

Luke Sweet

Lake Forest College

[email-masked]

Get your FREE download of MSN Explorer at http://explorer.msn.com