[MITgcm-support] gcc error
Amitabh Mitra
amitabhmitra1 at rediffmail.com
Mon Jul 17 06:51:18 EDT 2006
Dear Sir,
I was trying to run the sea ice experiment s12t_16x32
on SGI Origin.
But there is some problem in creating the Makefile.
As per previous instructions of Mr. Ed Hill I downloaded
the genmake file posted by him on May 11 2006 and made
appropriate changes in the optfile which is attached
with this mail. But the server gets hanged when I run
the command shown below. SGI_2100 28% is the system prompt.
Also I am sending the genmake_warnings.
SGI_2100 28% sh ../../../tools/new-genmake2
-of ../../../tools/build_options/prabhat1
GENMAKE :
A program for GENerating MAKEfiles for the MITgcm project. For a
quick list of options, use "genmake -h" or for more detail see:
http://mitgcm.org/devel_HOWTO/
=== Processing options files and arguments ===
getting local config information: none found
Warning: ROOTDIR was not specified but there appears to be a copy of MITgcm at
"../../.." so we'll try it.
getting OPTFILE information:
using OPTFILE="../../../tools/build_options/prabhat1"
getting AD_OPTFILE information:
using AD_OPTFILE="../../../tools/adjoint_options/adjoint_default"
=== Checking system libraries ===
Do we have the system() command using f90... yes
Do we have the fdate() command using f90... yes
Do we have the etime() command using f90... yes
Can we call simple C routines (here, "cloc()") using f90... no
Can we unlimit the stack size using f90... no
Can we register a signal handler using f90... no
Can we use stat() through C calls... no
Can we create NetCDF-enabled binaries...
-------------------------------------------------------------------
After this there is no response by the server.
So what changes can be done in the optfile so as to run the experiment.
Thanking You,
With regards,
Amitabh Mitra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20060717/7fcdc20d/attachment.htm>
-------------- next part --------------
cc -c genmake_test.c -o genmake_test.o
cc -c genmake_test.c -o genmake_test.o
cc -c genmake_tc_1.c -o genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "cloc_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
cc -c genmake_tc_1.c -o genmake_tc_1.o
running: check_HAVE_SETRLSTK()
program hello
external setrlstk
call setrlstk()
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "setrlstk_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
cc -c genmake_tc_1.c -o genmake_tc_1.o
cc-1515 cc: WARNING File = genmake_tc_1.c, Line = 22
A value of type "void *" cannot be assigned to an entity of type
"void (*)(int, siginfo_t *, void *)".
s.sa_sigaction = (void *)killhandler;
^
running: check_HAVE_SIGREG()
program hello
integer anint
common /iv/ anint
external sigreg
call sigreg(anint)
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "sigreg_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
running: check_HAVE_STAT()
program hello
integer nbyte
call tfsize(nbyte)
print *," HELLO WORLD", nbyte
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
running: check_netcdf_libs()
cc -c genmake_test.c -o genmake_test.o
cc -c genmake_tc_1.c -o genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "cloc_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
cc -c genmake_tc_1.c -o genmake_tc_1.o
running: check_HAVE_SETRLSTK()
program hello
external setrlstk
call setrlstk()
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "setrlstk_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
cc -c genmake_tc_1.c -o genmake_tc_1.o
cc-1515 cc: WARNING File = genmake_tc_1.c, Line = 22
A value of type "void *" cannot be assigned to an entity of type
"void (*)(int, siginfo_t *, void *)".
s.sa_sigaction = (void *)killhandler;
^
running: check_HAVE_SIGREG()
program hello
integer anint
common /iv/ anint
external sigreg
call sigreg(anint)
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "sigreg_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
running: check_HAVE_STAT()
program hello
integer nbyte
call tfsize(nbyte)
print *," HELLO WORLD", nbyte
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
running: check_netcdf_libs()
cc -c genmake_test.c -o genmake_test.o
cc -c genmake_tc_1.c -o genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "cloc_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
cc -c genmake_tc_1.c -o genmake_tc_1.o
running: check_HAVE_SETRLSTK()
program hello
external setrlstk
call setrlstk()
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "setrlstk_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
cc -c genmake_tc_1.c -o genmake_tc_1.o
cc-1515 cc: WARNING File = genmake_tc_1.c, Line = 22
A value of type "void *" cannot be assigned to an entity of type
"void (*)(int, siginfo_t *, void *)".
s.sa_sigaction = (void *)killhandler;
^
running: check_HAVE_SIGREG()
program hello
integer anint
common /iv/ anint
external sigreg
call sigreg(anint)
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
ld32: ERROR 33 : Unresolved text symbol "sigreg_" -- 1st referenced by genmake_tc_2.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
running: check_HAVE_STAT()
program hello
integer nbyte
call tfsize(nbyte)
print *," HELLO WORLD", nbyte
end
f90 -n32 -extend_source -bytereclen -o genmake_tc genmake_tc_2.f genmake_tc_1.o
running: check_netcdf_libs()
-------------- next part --------------
#!/bin/bash
#
# $Header: /u/gcmpack/MITgcm/tools/build_options/irix64_ip27_f77+mpi,v 1.1 2004/02/21 14:41:09 dimitri Exp $
#
S64='$(TOOLSDIR)/set64bitConst.sh'
MAKEDEPEND=makedepend
CPP='/usr/freeware/bin/gcc -E -traditional -P -'
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_SGI -DWORDLENGTH=4'
FC='f90'
FFLAGS='-n32 -extend_source -bytereclen'
FOPTIM='-O3 -OPT:Olimit=0:roundoff=3:div_split=ON:alias=typed'
LIBS='-lmpi'
INCLUDEDIRS='/usr/include'
More information about the MITgcm-support
mailing list