Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

trying to build SCAM with the intel compiler

Dear Bulletin!

Do anyone have experience of succesfully compiling and running SCAM
with intel's compiler version 8.0? The SCAM user-guide tells that the
modifications needed for getting the model running with Intel's compiler
should be minor...

As you have understood I'm no pro in programming.

So far I have modified the configure-script so that the Intel compiler is
choosen and the configure-script testing of icc and ifort results in 2 ok,
when it comes to the test of the linker however my solution is not so
popular anymore (error message display at the bottom of this post)..

would be most grateful for hints on solving the problem

best regards
Johannes Karlsson


Checking linker (ifort)... ifort -o /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/testprg /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.o /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/f90test.o /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/f77test.o
failed.
Command that failed:
ifort -o /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/testprg /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.o /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/f90test.o /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/f77test.o
/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.o(.text+0x366): In function `main':
/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.c:68: multiple definition of `main'
/afs/su.se/system/i386_linux24/contrib/ex-pkg/2003-08-11/intel_fc_80/lib/for_main.o(.text+0x0): first defined here
ld: Warning: size of symbol `main' changed from 42 in /afs/su.se/system/i386_linux24/contrib/ex-pkg/2003-08-11/intel_fc_80/lib/for_main.o to 26 in /afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.o
/afs/su.se/system/i386_linux24/contrib/ex-pkg/2003-08-11/intel_fc_80/lib/for_main.o(.text+0x1c): In function `main':
: undefined reference to `MAIN__'
/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.o(.text+0xf7): In function `run_tests':
/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.c:26: undefined reference to `test_int77'
/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.o(.text+0x1bf):/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.c:37: undefined reference to `test_int90'
/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.o(.text+0x287):/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.c:48: undefined reference to `test_double77'
/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.o(.text+0x2fd):/afs/su.se/home/j/o/joka7201/myhd/cam/cam1/models/atm/cam/tools/scam/obj/ctest.c:57: undefined reference to `test_double90'
make: *** [/local/joka7201/cam/cam1/models/atm/cam/tools/scam/obj/config.out] Error 1
 
Top