Page 1 of 1

compillation problem in Cygwin environment

Posted: Tue Nov 21, 2017 6:03 pm
by nulakani
Dear Sir
Greetings

Recently, i have tried the yambo installation on a cygwin based linux environment. first i did configuration using 1) ./configure command and next i have issued 2) make all. The complilation went on well except the yambo linking. I have serched the fouram for the possible clarification for this kind of errors and unable to find the same. I have attached the config.log file for your persual. This is the error message on the machine

---------------------------------------------------------------------------------------------
">>>[Linking yambo]<<<
make[2]: Entering directory '/cygdrive/f/NNV/SOFT/YM/driver'
/cygdrive/f/NNV/SOFT/YM/driver/driver.c: In function ‘main’:
/cygdrive/f/NNV/SOFT/YM/driver/driver.c:117:13: warning: ‘optind’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
extern int optind;
^

/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lxcf90
collect2: error: ld returned 1 exit status
Makefile:84: recipe for target 'yambo' failed
make[2]: *** [yambo] Error 1
make[2]: Leaving directory '/cygdrive/f/NNV/SOFT/YM/driver'
Makefile:191: recipe for target 'yambo' failed
make[1]: *** [yambo] Error 2
make[1]: Leaving directory '/cygdrive/f/NNV/SOFT/YM'
yambo build failed
--------------------------------------------------------------------

I have also tried with the older version Yambo-3.4.1. It has installed witout any error.

Please helpme to solve this issue.

With best regards
Venkat
CSIR-CLRI, India.

Re: compillation problem in Cygwin environment

Posted: Wed Nov 22, 2017 10:36 am
by Daniele Varsano
Dear Venkat,
from your config.log file I can see you configured specifying a libxc path:

Code: Select all

$ ./configure --with-libxc-path=/cygdrive/f/NNV/SOFT/YM/lib/libxc/libxc-y2.0.3/ x86_64
and it looks that yambo has having problem linking with your xc libs.
After a make clean_all, reconfigure without specifying the libxc path:

Code: Select all

./configure
yambo will download the needed libraries and compile them.

Best,

Daniele