Hi,
I have the following problem while compiling GYRE code for the first code:
make[1]: Entering directory `/home/pencho/MIT/fall2013/UROP/gyre/src'
make[2]: Entering directory `/home/pencho/MIT/fall2013/UROP/gyre/src/ad'
FC gyre_ad.f90
LD gyre_ad
/bin/sh: 1: mesasdk_hdf5_link: not found
/bin/sh: 1: mesasdk_lapack95_link: not found
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: *** [gyre_ad] Error 1
rm gyre_ad.o
make[2]: Leaving directory `/home/pencho/MIT/fall2013/UROP/gyre/src/ad'
make[1]: Leaving directory `/home/pencho/MIT/fall2013/UROP/gyre/src'
I have reinstalled my SDK and it is from 8th April 2013.
I am running it on Ubuntu 13.04, 64 bit, and used it for MESA for a while, before trying GYRE.
Can you give me any advice how to proceed?
Thank you in advance,
Momchil
Compilation error
- rhtownsend
- Site Admin
- Posts: 398
- Joined: Sun Mar 31, 2013 4:22 pm
Re: Compilation error
Hi Momchil --mmolnar wrote:Hi,
I have the following problem while compiling GYRE code for the first code:
make[1]: Entering directory `/home/pencho/MIT/fall2013/UROP/gyre/src'
make[2]: Entering directory `/home/pencho/MIT/fall2013/UROP/gyre/src/ad'
FC gyre_ad.f90
LD gyre_ad
/bin/sh: 1: mesasdk_hdf5_link: not found
/bin/sh: 1: mesasdk_lapack95_link: not found
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: *** [gyre_ad] Error 1
rm gyre_ad.o
make[2]: Leaving directory `/home/pencho/MIT/fall2013/UROP/gyre/src/ad'
make[1]: Leaving directory `/home/pencho/MIT/fall2013/UROP/gyre/src'
I have reinstalled my SDK and it is from 8th April 2013.
I am running it on Ubuntu 13.04, 64 bit, and used it for MESA for a while, before trying GYRE.
Can you give me any advice how to proceed?
Thank you in advance,
Momchil
It looks like the SDK isn't being found properly. Can you check that the MESASDK_ROOT environment variable has been properly set, and that the initialization script has been run.
Then, do `which gcc`. This should print out the path to the gcc compiler; and this should reside in the 'bin' sudirectory where you installed the SDK. The 'mesasdk_*_link' scripts should also reside in this directory.
cheers,
Rich