Welcome, Guest
Username: Password: Remember me

TOPIC: undefined reference to `MAIN__'

undefined reference to `MAIN__' 9 years 8 months ago #16263

  • mrscotter
  • mrscotter's Avatar
Hello,

I am new to telemac, and I would appreciate some help with the installation please. I'm installing the latest version of the package on a RedHat 6.4 Linux cluster with OpenMPI 1.6.4 and the Intel compilers v2013.4.183. I'm managed to figure out the installation to a degree, however I'm not done yet. I hit an error as and when the make process tries to build the executable called gredelsegv6p3.exe. Essentially, it seems like ld is very confused and can't "see" a main program defined. I'm getting the following error:

/export/users/nbtester/efi2linux_nightly/branch-13_0gt/20130515_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x38): undefined reference to `MAIN__'
make: *** [gretelv6p3.exe] Error 1

This installation reference (in French) is great:
calcul-scientifique-ljk.imag.fr/librairi...s-43/article/telemac

Despite that guide I'm not done yet and so I would really appreciate someone's advice on installing on a RedHat Linux system.

Best regards,

David.
The administrator has disabled public write access.

undefined reference to `MAIN__' 9 years 8 months ago #16268

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

Could you post your systel.ini ?

And what version of telemac are you using the message seems to say v6p3 but which one ? (tags v6p3r2 from svn,website...)

Hope it helps.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

undefined reference to `MAIN__' 9 years 8 months ago #16278

  • mrscotter
  • mrscotter's Avatar
Hello,

Thank you for your reply. I downloaded the Telemac source distribution from the svn repository re the instructions on the developers website.

svn co svn.opentelemac.org/svn/opentelemac/tags/v6p3r2

That was done on the 12th March.

I've attached a copy of my systel.ini file. I used systel.edf.ini as my template, and customised the "ivanoe_openmpi_intel_64_12" section with my local details.

Then I followed the installation instructions in the guide produced by the
Laboratoire Jean Kuntzmann (as cited in my original post). If you need any more information then please let me know. Thank you in advance for any light that you can shed on my issue.

Best regards,

David.
The administrator has disabled public write access.

undefined reference to `MAIN__' 9 years 8 months ago #16279

  • mrscotter
  • mrscotter's Avatar
Just realised that I needed to reanme my system.ini for posting purposes. Here is it, all being well.
Attachments:
The administrator has disabled public write access.

undefined reference to `MAIN__' 9 years 8 months ago #16281

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Could you try replacing your configuration in systel.ini with the following code:
[ivanoe_openmpi_intel_64_12]
DIRLIB=ivanoe_intel_openmpi_64_12
# Intel compiler options
FC_NAM="mpif90"
FC_OPT_OBJEXT="o"
FC_OPT_COMPIL=" -c -convert big_endian -no-prec-div -O3 -sox -vec-report1 -xsse4.2 -DHAVE_MPI -DHAVE_TECPLOT"
FC_OPT_DEBUG=" -c "
FC_OPT_PROFILE=" -O3 -pgf90 -w=obs -v -pg -c "
FC_OPT_INCLUDE=" -I"
#
LK_NAM="mpif90"
LK_OPT_NORMAL=" -lz -lstdc++ -v "
LK_OPT_OUTNAME=" -o "
LK_OPT_DEBUG=" -g90 "
LK_OPT_PROFILE=" -pg "
LK_OPT_OTHERS=" "
LK_LIB_SPECIAL=" "
#
LIB_NAM=ar
LIB_OPT_LIBEXT="a"
LIB_OPT_OUTNAME="cru"
LIB_OPT_OTHERS=
LIB_RANLIB="ranlib"
#
RUN_DEBUG="dbx90 "
RUN_PROFILE=
# in Telemac distribution
FC_MPI="mpif90"
LK_MPI="mpif90 -o <EXE>  <OBJS>  <LIBS> "
LIBS_MPI=" -lz -lstdc++ "
RUN_MPI="orterun -hostfile mpirun.txt -np <N> -x PATH -x LD_LIBRARY_PATH <EXE> "

I just modified to use mpif90 all the time as the compiler it prevents a few errors.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.