makefile problem during compilation

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
rjohns03
Posts: 4
Joined: Tue Nov 03, 2015 8:52 pm

Re: makefile problem during compilation

Post by rjohns03 » Mon Nov 09, 2015 5:25 pm

Hello Myrta,

Unfortunately, this did not work for me. I am still having the same problem in which the compile breaks at the slatec Makefile. I have tried both the -ffreestanding and the -P arguments.

Thank you very much for your help,

Ryan
--

Ryan S. Johnson, PhD
Applications Scientist
Center for Advanced Research Computing
University of New Mexico
E: rjohns03@carc.unm.edu

User avatar
myrta gruning
Posts: 242
Joined: Tue Mar 17, 2009 11:38 am
Contact:

Re: makefile problem during compilation

Post by myrta gruning » Mon Nov 09, 2015 5:51 pm

Hallo Ryan

can you upload the config.log. I can try to give a look if I see some possible solution, or recognise what causes the problem
Dr Myrta Grüning
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland

http://www.researcherid.com/rid/B-1515-2009

rjohns03
Posts: 4
Joined: Tue Nov 03, 2015 8:52 pm

Re: makefile problem during compilation

Post by rjohns03 » Mon Nov 09, 2015 8:04 pm

Certainly.

Thank you,
You do not have the required permissions to view the files attached to this post.
--

Ryan S. Johnson, PhD
Applications Scientist
Center for Advanced Research Computing
University of New Mexico
E: rjohns03@carc.unm.edu

User avatar
myrta gruning
Posts: 242
Joined: Tue Mar 17, 2009 11:38 am
Contact:

Re: makefile problem during compilation

Post by myrta gruning » Tue Nov 10, 2015 1:28 am

Hallo Ryan

What I posted was related to a slightly different problem indeed. Sorry for misleading you.

From a close inspection of the log and comparing what I got from my PC which has the same gcc version
What causes problems is
C_AS_CPP_FLAGS='-I/opt/local/openmpi/1.8.4/gcc/4.8.3//include'
where do you specify this flag?
In my case I do not specify that flag and from the configure it takes the value
C_AS_CPP_FLAGS='-P'

in the config/report then I got
[CPP] gcc -E -P

Try to leave the C_AS_CPP_FLAGS unspecified so that the configure can choose based on the compiler you have on your system

Best
m
Dr Myrta Grüning
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland

http://www.researcherid.com/rid/B-1515-2009

rjohns03
Posts: 4
Joined: Tue Nov 03, 2015 8:52 pm

Re: makefile problem during compilation

Post by rjohns03 » Wed Nov 11, 2015 6:37 pm

Good evening Myrta,

Unfortunately this did not resolve the problem. C_AS_CPP_FLAGS was initially being set when I loaded the openmpi module and I unset it such that configure did set C_AS_CPP_FLAGS='-P'. But the same problem was encountered when it went to build slatec.

I have attached the config.log from this attempt. I am also attaching the script that I am using to set up the build environment in case that might be of some use.

Thanks again for all your help,

Ryan
You do not have the required permissions to view the files attached to this post.
--

Ryan S. Johnson, PhD
Applications Scientist
Center for Advanced Research Computing
University of New Mexico
E: rjohns03@carc.unm.edu

User avatar
myrta gruning
Posts: 242
Joined: Tue Mar 17, 2009 11:38 am
Contact:

Re: makefile problem during compilation

Post by myrta gruning » Mon Nov 16, 2015 4:31 pm

Hallo Ryan

I cannot spot anything else that can cause the problem. :?
One thing you can test further is if one of the other options (double precision or openmp) interfering for some reason. Another possibility is to unset all environment variables except maybe CC=gcc and FC=gfortran and see if this compiles. Of course it may give a code missing feature you want, but if it can help to understand what is wrong.

Best
m

NB As you are using openmpi you can use the --enable-openmpi for OpenMPI specific code instructions
Dr Myrta Grüning
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland

http://www.researcherid.com/rid/B-1515-2009

Post Reply