Issue when compiling with "make all"

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
User avatar
Davide Sangalli
Posts: 614
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: Issue when compiling with "make all"

Post by Davide Sangalli » Sun Feb 07, 2021 2:27 pm

The three dots are purely cosmetics, it's just a search and replace in the log files. They have nothing to do with the compilation itself.
Just a comment on this.
In the configure there are some operations triggered by a check if the "srcdir" and the "compdir", i.e. the folder from which the configure is executed in the form "srcdir/configure" are different.
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

remi.lacroix
Posts: 13
Joined: Wed Feb 03, 2021 3:17 pm
Contact:

Re: Issue when compiling with "make all"

Post by remi.lacroix » Sun Feb 07, 2021 7:27 pm

Davide Sangalli wrote: Sun Feb 07, 2021 2:27 pm Just a comment on this.
In the configure there are some operations triggered by a check if the "srcdir" and the "compdir", i.e. the folder from which the configure is executed in the form "srcdir/configure" are different.
I am sorry this is causing so much confusions. For security reasons, I have manually modified a copy of the logs before sending them but it really cannot have affected the compilation itself.

I hope this clear things up.
Rémi Lacroix
Scientific Computing Engineer @ User support team, CNRS / IDRIS, Orsay, France
http://www.idris.fr/

User avatar
andrea marini
Posts: 325
Joined: Mon Mar 16, 2009 4:27 pm
Contact:

Re: Issue when compiling with "make all"

Post by andrea marini » Mon Feb 08, 2021 10:40 am

Hi. I just entered now the discussion. I hope I did not miss anything important.

I read the posts and could not really understand where the problem is.

Can you, please, just do the following steps?
  1. the config.log obtained at configuration (you can change the configuration command with all options you generally use)

    Code: Select all

    > ./configure >& config.log
  2. the report and setup files after configuration in the config folder
  3. after the configuration for each of the following values of ACTION: download-all, int-libs, ext-libs, yambo-int-libs, yambo-ext-libs just do

    Code: Select all

    > make ACTION >& ACTION.log
  4. if none of the actions above fail just try compiling and linking the code
  5. after the configuration for each of the following values of OBJECT: yambo ypp a2y c2y p2y yambo_ph ypp_ph yambo_sc ypp_sc yambo_rt ypp_rt yambo_nl ypp_nl just do

    Code: Select all

    > make OBJECT >& OBJECT.log
You can prepare a simple shell script to do everything.

Thx

Andrea
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)

remi.lacroix
Posts: 13
Joined: Wed Feb 03, 2021 3:17 pm
Contact:

Re: Issue when compiling with "make all"

Post by remi.lacroix » Mon Feb 08, 2021 11:06 am

Hi,
andrea marini wrote: Mon Feb 08, 2021 10:40 am if none of the actions above fail just try compiling and linking the code
The whole question here is "with which make targets?" because depending what I choose compiling will fail as I tried to explain in my last message.

I'm attaching the "report" from configure for the attempts in that message.

Rémi
You do not have the required permissions to view the files attached to this post.
Rémi Lacroix
Scientific Computing Engineer @ User support team, CNRS / IDRIS, Orsay, France
http://www.idris.fr/

User avatar
andrea marini
Posts: 325
Joined: Mon Mar 16, 2009 4:27 pm
Contact:

Re: Issue when compiling with "make all"

Post by andrea marini » Mon Feb 08, 2021 11:47 am

Hi,
remi.lacroix wrote: Mon Feb 08, 2021 11:06 am The whole question here is "with which make targets?" because depending what I choose compiling will fail as I tried to explain in my last message.
I am sorry but I cannot understand what do you mean.

Can you be more precise? Are you saying that the full procedure depends on the make you are using?

This is mine. What's yours?

Code: Select all

>make -v
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)

remi.lacroix
Posts: 13
Joined: Wed Feb 03, 2021 3:17 pm
Contact:

Re: Issue when compiling with "make all"

Post by remi.lacroix » Mon Feb 08, 2021 12:14 pm

andrea marini wrote: Mon Feb 08, 2021 11:47 am I am sorry but I cannot understand what do you mean.

Can you be more precise? Are you saying that the full procedure depends on the make you are using?
What I am trying to say is compilation might or might not be successful depending on which targets I am compiling (i.e. which "make <targets>" command I run).

For example "make ypp" will fail but "make core" won't (although it includes "ypp"), "make core ypp_ph" will fail but "make ypp_ph" won't.

It all comes down to dependency issues in the Makefile I guess.
Rémi Lacroix
Scientific Computing Engineer @ User support team, CNRS / IDRIS, Orsay, France
http://www.idris.fr/

User avatar
andrea marini
Posts: 325
Joined: Mon Mar 16, 2009 4:27 pm
Contact:

Re: Issue when compiling with "make all"

Post by andrea marini » Mon Feb 08, 2021 12:21 pm

Hi,

can you please do what I have asked you to do? Without all the logs I have asked you to provide it is almost impossible to understand what's going on.

In addition please add to the configure the option

Code: Select all

--enable-msgs-comps
Thx

Andrea
andrea marini wrote: Mon Feb 08, 2021 10:40 am
Can you, please, just do the following steps?
  1. the config.log obtained at configuration (you can change the configuration command with all options you generally use)

    Code: Select all

    > ./configure >& config.log
  2. the report and setup files after configuration in the config folder
  3. after the configuration for each of the following values of ACTION: download-all, int-libs, ext-libs, yambo-int-libs, yambo-ext-libs just do

    Code: Select all

    > make ACTION >& ACTION.log
  4. if none of the actions above fail just try compiling and linking the code
  5. after the configuration for each of the following values of OBJECT: yambo ypp a2y c2y p2y yambo_ph ypp_ph yambo_sc ypp_sc yambo_rt ypp_rt yambo_nl ypp_nl just do

    Code: Select all

    > make OBJECT >& OBJECT.log
You can prepare a simple shell script to do everything.

Thx

Andrea
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)

remi.lacroix
Posts: 13
Joined: Wed Feb 03, 2021 3:17 pm
Contact:

Re: Issue when compiling with "make all"

Post by remi.lacroix » Mon Feb 08, 2021 12:28 pm

andrea marini wrote: Mon Feb 08, 2021 12:21 pm can you please do what I have asked you to do? Without all the logs I have asked you to provide it is almost impossible to understand what's going on.
Sure, it's just that I have already provided some logs earlier and I'm still not sure what you want me to run at step 4, "make all"?

I will start running steps 1 to 3 in the meantime.
Rémi Lacroix
Scientific Computing Engineer @ User support team, CNRS / IDRIS, Orsay, France
http://www.idris.fr/

User avatar
andrea marini
Posts: 325
Joined: Mon Mar 16, 2009 4:27 pm
Contact:

Re: Issue when compiling with "make all"

Post by andrea marini » Mon Feb 08, 2021 12:33 pm

remi.lacroix wrote: Mon Feb 08, 2021 12:28 pm
andrea marini wrote: Mon Feb 08, 2021 12:21 pm can you please do what I have asked you to do? Without all the logs I have asked you to provide it is almost impossible to understand what's going on.
Sure, it's just that I have already provided some logs earlier and I'm still not sure what you want me to run at step 4, "make all"?

I will start running steps 1 to 3 in the meantime.
Hi. Forget point 4 and move to step 5.

Andrea
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)

remi.lacroix
Posts: 13
Joined: Wed Feb 03, 2021 3:17 pm
Contact:

Re: Issue when compiling with "make all"

Post by remi.lacroix » Mon Feb 08, 2021 1:50 pm

andrea marini wrote: Mon Feb 08, 2021 12:33 pm Hi. Forget point 4 and move to step 5.
Ok, here are all the requested files (note that some paths were partially redacted for security reasons).

Compilation worked for yambo, ypp, a2y, c2y, p2y" (in that order, I know for a fact that if I compile ypp first it will fail) and failed for yambo_ph, ypp_ph, yambo_sc, ypp_sc, yambo_rt, ypp_r,t yambo_nl and ypp_nl.

I haven't check all logs but in many cases the issue is the same as the one I described before, "el-ph" fails to compil because a module cannot be found.

Thanks,
Rémi
You do not have the required permissions to view the files attached to this post.
Last edited by remi.lacroix on Mon Feb 08, 2021 9:23 pm, edited 1 time in total.
Rémi Lacroix
Scientific Computing Engineer @ User support team, CNRS / IDRIS, Orsay, France
http://www.idris.fr/

Post Reply