[MITgcm-support] compile-run error due to gcc update?

Sergey Vinogradov svinogra at aer.com
Mon Feb 6 17:01:55 EST 2006


Hi:

After recent gcc update, I'm getting compile-run error on my 
previously-working configuration. Error is something like this:

------------------------------------------------------------------
Makefile:1167: warning: ignoring old commands for target `write_local_rs.F'
...
Makefile:1207: warning: overriding commands for target `write_myfield.F'
Makefile:1167: warning: ignoring old commands for target `write_myfield.F'
cat chksum_tiled.F | ../../../tools/set64bitConst.sh |  cpp  
-traditional -P -D_BYTESWAPIO -DWORDLENGTH=4 -DHAVE_SYSTEM -DHAVE_FDATE 
-DHAVE_ETIME -DHAVE_CLOC -DHAVE_SETRLSTK -DHAVE_SIGREG -DHAVE_STAT  -I.  
 > chksum_tiled.f
g77 -Wimplicit -Wunused -Wuninitialized -O3 -funroll-loops -c chksum_tiled.f
chksum_tiled.f: In subroutine `chksum_tiled':
chksum_tiled.f:371:
     These lines are here to deliberately cause a compile-time error.
     ^
Non-numeric character at (^) in label field [info -f g77 M LEX]
chksum_tiled.f:372:
     If you see these lines in your .F files or the compiler shows them
     ^
Non-numeric character at (^) in label field [info -f g77 M LEX]
chksum_tiled.f:373:
     as an error then it means you have not placed your configuration
     ^
Non-numeric character at (^) in label field [info -f g77 M LEX]
chksum_tiled.f:374:
     files in the appropriate place.
     ^
Non-numeric character at (^) in label field [info -f g77 M LEX]
chksum_tiled.f:375:
     You need to place you own copy of SIZE.h in the include
     ^
Non-numeric character at (^) in label field [info -f g77 M LEX]
chksum_tiled.f:376:
     path for the model, and comment out these lines.
     ^
Non-numeric character at (^) in label field [info -f g77 M LEX]
------------------------------------------------------------------
My file SIZE.h is on its place, as well as other configuration files. If 
it is related to the gcc update, do you know how to fix it? The compiler 
and some OS updates are the only difference between working and 
non-working code. New gcc is 3.4.3 (see below)

rufus[49]> gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-java-awt=gtk 
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1)

Thanks,

Sergey



More information about the MITgcm-support mailing list