Building build_poly in GYRE 5.1
- Starfighter
- Posts: 9
- Joined: Sun Jan 07, 2018 9:19 pm
Building build_poly in GYRE 5.1
I'm attempting to build GYRE using the 5.1 Release on a Mac Pro (late 2013) running Mac OS X Sierra (ver. 10.12.6).
I was able to build the executables poly_to_fgong and gyre. However, I was not able to build build_poly following the procedure posted at https://bitbucket.org/rhdtownsend/gyre/ ... %20Started. The question I have is is there something I need to do to include build_poly into the build?
Please advise.
I was able to build the executables poly_to_fgong and gyre. However, I was not able to build build_poly following the procedure posted at https://bitbucket.org/rhdtownsend/gyre/ ... %20Started. The question I have is is there something I need to do to include build_poly into the build?
Please advise.
-
- Posts: 4
- Joined: Wed Dec 06, 2017 1:39 pm
Re: Building build_poly in GYRE 5.1
Hi,
Did you successfully install the MESA SDK?
Please include the error output from your attempted build.
Thanks,
Jacqueline
Did you successfully install the MESA SDK?
Please include the error output from your attempted build.
Thanks,
Jacqueline
- rhtownsend
- Site Admin
- Posts: 398
- Joined: Sun Mar 31, 2013 4:22 pm
Re: Building build_poly in GYRE 5.1
Try using the Mad (Madison) SDK, rather than the MESA SDK. Available here:Starfighter wrote:I'm attempting to build GYRE using the 5.1 Release on a Mac Pro (late 2013) running Mac OS X Sierra (ver. 10.12.6).
I was able to build the executables poly_to_fgong and gyre. However, I was not able to build build_poly following the procedure posted at https://bitbucket.org/rhdtownsend/gyre/ ... %20Started. The question I have is is there something I need to do to include build_poly into the build?
Please advise.
http://www.astro.wisc.edu/~townsend/sta ... ref=madsdk
(The Mad SDK includes the ODEPACK library of differential equation integrators, which are needed to compile build_poly).
cheers,
Rich
- Starfighter
- Posts: 9
- Joined: Sun Jan 07, 2018 9:19 pm
Re: Building build_poly in GYRE 5.1
I attempted building GYRE using MADSDK in place of MESASDK and the build failed with the following messages:
Samuels-Mac-Pro:~ user$ cd $GYRE_DIR
Samuels-Mac-Pro:gyre user$ make
FC gyre.f90
LD gyre
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [gyre] Error 1
rm gyre.o
Samuels-Mac-Pro:gyre user$
Again, I'm attempting to build version 5.1 of GYRE on a Mac Pro (Late 2013) running Mac OS X ver. 10.12.6 (Sierra) and doing the build with MESASDK works except that it doesn't build build_poly.
Samuels-Mac-Pro:~ user$ cd $GYRE_DIR
Samuels-Mac-Pro:gyre user$ make
FC gyre.f90
LD gyre
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [gyre] Error 1
rm gyre.o
Samuels-Mac-Pro:gyre user$
Again, I'm attempting to build version 5.1 of GYRE on a Mac Pro (Late 2013) running Mac OS X ver. 10.12.6 (Sierra) and doing the build with MESASDK works except that it doesn't build build_poly.
- rhtownsend
- Site Admin
- Posts: 398
- Joined: Sun Mar 31, 2013 4:22 pm
Re: Building build_poly in GYRE 5.1
Try running 'make clean' before you do 'make'.Starfighter wrote:I attempted building GYRE using MADSDK in place of MESASDK and the build failed with the following messages:
Samuels-Mac-Pro:~ user$ cd $GYRE_DIR
Samuels-Mac-Pro:gyre user$ make
FC gyre.f90
LD gyre
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [gyre] Error 1
rm gyre.o
Samuels-Mac-Pro:gyre user$
Again, I'm attempting to build version 5.1 of GYRE on a Mac Pro (Late 2013) running Mac OS X ver. 10.12.6 (Sierra) and doing the build with MESASDK works except that it doesn't build build_poly.
cheers,
Rich
- Starfighter
- Posts: 9
- Joined: Sun Jan 07, 2018 9:19 pm
Re: Building build_poly in GYRE 5.1
Rich,
Tried your suggestion and that didn't work either. In attempting to figure out how the build process knows to use madsdk.
I looked into the Makefile in the ~/gyre/src/build sub-directory. I believe the problem is that build process with version 5.1 uses only the mesasdk and never looks into the madsdk for odepack which is needed to trigger the build for build_poly.
Therefore, I believe the question is how to build the equivalent of madsdk_odepack_link for mesasdk that is compatible with Mac OS X Sierra (Mac OS X ver. 10.12.x)?
Hope this helps.
Sam Dupree.
Tried your suggestion and that didn't work either. In attempting to figure out how the build process knows to use madsdk.
I looked into the Makefile in the ~/gyre/src/build sub-directory. I believe the problem is that build process with version 5.1 uses only the mesasdk and never looks into the madsdk for odepack which is needed to trigger the build for build_poly.
Therefore, I believe the question is how to build the equivalent of madsdk_odepack_link for mesasdk that is compatible with Mac OS X Sierra (Mac OS X ver. 10.12.x)?
Hope this helps.
Sam Dupree.
- rhtownsend
- Site Admin
- Posts: 398
- Joined: Sun Mar 31, 2013 4:22 pm
Re: Building build_poly in GYRE 5.1
Hi Sam --Starfighter wrote:Rich,
Tried your suggestion and that didn't work either. In attempting to figure out how the build process knows to use madsdk.
I looked into the Makefile in the ~/gyre/src/build sub-directory. I believe the problem is that build process with version 5.1 uses only the mesasdk and never looks into the madsdk for odepack which is needed to trigger the build for build_poly.
Therefore, I believe the question is how to build the equivalent of madsdk_odepack_link for mesasdk that is compatible with Mac OS X Sierra (Mac OS X ver. 10.12.x)?
Hope this helps.
Sam Dupree.
Can you check that you have the Mad SDK properly installed and activated? Please post the output from
echo `madsdk_odepack_link`
Note: backticks, not quotes!
cheers,
Rich
- Starfighter
- Posts: 9
- Joined: Sun Jan 07, 2018 9:19 pm
Re: Building build_poly in GYRE 5.1
Rich,
Found the solution. I needed to add the following statement, source $MADSDK_ROOT/bin/madsdk_init.sh, to pick up madsdk.
Let me make sure I have it correct. it seems I need both the mesasdk and madsdk directories, is that correct?
Sam Dupree.
Found the solution. I needed to add the following statement, source $MADSDK_ROOT/bin/madsdk_init.sh, to pick up madsdk.
Let me make sure I have it correct. it seems I need both the mesasdk and madsdk directories, is that correct?
Sam Dupree.
- rhtownsend
- Site Admin
- Posts: 398
- Joined: Sun Mar 31, 2013 4:22 pm
Re: Building build_poly in GYRE 5.1
Glad you got the Mad SDK working!Starfighter wrote:Rich,
Found the solution. I needed to add the following statement, source $MADSDK_ROOT/bin/madsdk_init.sh, to pick up madsdk.
Let me make sure I have it correct. it seems I need both the mesasdk and madsdk directories, is that correct?
Sam Dupree.
You don't need both MESA and Mad SDK's -- the Mad SDK is a superset of the MESA SDK, so just the Mad SDK will suffice.
cheers,
Rich