Page 1 of 1

make[1]: *** [xcspol.o] Error 2

Posted: Sat Dec 12, 2009 1:57 pm
by Fariba Nazari
Dear All,

I wish to compile the yambo on new computers . The compiler is intel 10.1. Os is red hat. The error is make[1]: *** [xcspol.o] Error 2. Would you please let me know what is the problem.
Fariba Nazari
Iasbs

Re: make[1]: *** [xcspol.o] Error 2

Posted: Sat Dec 12, 2009 2:54 pm
by andrea marini
Fariba Nazari wrote:Dear All,
I wish to compile the yambo on new computers . The compiler is intel 10.1. Os is red hat. The error is make[1]: *** [xcspol.o] Error 2. Would you please let me know what is the problem.
Dear Fariba,

to help you please re-configure the source using the --enable-msgs-comps and send us (as an attachment in the forum)
  1. The config.log file
  2. The config/report and config/setup files
  3. The LOG of the compilation ( you can get it by doing >make yambo >& LOG)
Andrea

Re: make[1]: *** [xcspol.o] Error 2

Posted: Sun Dec 13, 2009 10:03 am
by Fariba Nazari
I have solved the problem with the following configure options:

./configure --with-iotk='/lhome/nazari/espresso-3.2.3/iotk' --without-mpi F90=ifort F77=ifort

The exacutable files yambo ypp p2y and a2y is build but when I wish to run there is a following error.

./yambo: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

The config.log and LOG files are in the attachment.

Regards
Fariba Nazari

Re: make[1]: *** [xcspol.o] Error 2

Posted: Sun Dec 13, 2009 10:57 am
by andrea marini
Fariba Nazari wrote: The exacutable files yambo ypp p2y and a2y is build but when I wish to run there is a following error.

./yambo: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
This is not a problem of Yambo, but it is related to the fact that you did not add the intel libraries to the list of the system dynamical libraries that are loaded at the running time. To solve the problem have a look at this two pages: Intel support or Linux Questions.

Re: make[1]: *** [xcspol.o] Error 2

Posted: Mon Apr 12, 2010 5:12 am
by c3031929
Hi,

I'm an honours student at the University of Newcastle, Australia. I have very little understanding of Linux/Unix based systems, and even less of an understanding as to how to compile programs on these operating systems. I think I've come up with the same or similar error to the above, and even though I've followed the instructions on this forum page, I still get the same error message. So if anyone can help me that would be fantastic.

Compiler: Intel 10.1.018
Architechture: 2 x Quad Intel Xeon Chips (Atleast this is what I'm told it is)
Problem Occurs: While I'm compiling in serial. (At least that's what I think I'm doing).
Yambo Version: 3.2.1-r.448
Error Message: make[1]: *** [xcspol.o] Error 2

If anyone can tell me what I need to do I would most appreciate it.

Cheers,

Daniel Walton
Honours Student, Physics Department, University of Newcastle, Australia

Re: make[1]: *** [xcspol.o] Error 2

Posted: Mon Apr 12, 2010 9:11 am
by claudio
Dear Daniel Walton

I was not able to reproduce your error, but I suggest you a couple of possible solutions:

*) first try to use gcc as precompiler and C compile in your configure, namely use: ./configure CC=gcc CPP="gcc -E" FC=ifort

*) second remove the comments from the file xcspol.F, the first 68 lines

let us know if it works

Claudio

Re: make[1]: *** [xcspol.o] Error 2

Posted: Wed Apr 14, 2010 8:01 am
by c3031929
Claudio,

Thanks for the solutions. I only needed to try the first solution to get past my error, however, I ran into a new error following that.

My error message now reads:

(There is a lot of lines above the following four that are very similar to them)
/home/dwalton/NetCDF/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:92: undefined reference to `curl_easy_setopt'
/home/dwalton/Yambo/yambo-3.2.1-r.448/lib/libnetcdf.a(liboc_la-curlfunctions.o): In function `set_proxy':
/home/dwalton/NetCDF/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:49: undefined reference to `curl_easy_setopt'
/home/dwalton/Yambo/yambo-3.2.1-r.448/lib/libnetcdf.a(liboc_la-curlfunctions.o):/home/dwalton/NetCDF/netcdf-4.1.1/libncdap3/oc/curlfunctions.c:53: more undefined references to `curl_easy_setopt' follow
make[1]: *** [yambo] Error 1
make[1]: Leaving directory `/home/dwalton/Yambo/yambo-3.2.1-r.448/driver'
make: *** [yambo] Error 2

I had a look around on the forum to see if the problem had arisen previously but nothing seems to be posted up about it. Any help you could offer would be most appreciated. Again I have attached the log, report and setup files.

Cheers,

Daniel Walton
Honours Student, Physics Department, University of Newcastle, Australia

Re: make[1]: *** [xcspol.o] Error 2

Posted: Wed Apr 14, 2010 9:29 am
by Daniele Varsano
Dear Daniel,
a possible reason of this error is that the netcdf library and yambo are compiled with a different compiler.
If you used gcc for compiling yambo, try to recompile the nectdf with the same compiler.

Cheers,

Daniele