Page 1 of 1
Compilation error in Yambo-4.5.0 in ubuntu 16.04
Posted: Sat Jun 20, 2020 5:59 am
by soumyadeepghosh35
Dear All,
I am getting following error during configuring Yambo-4.5.0 in my ubuntu-16.04 OS.
checking whether the C compiler works... no
configure: error: in `/home/soumyadeep/Downloads/YAMBO':
configure: error: C compiler cannot create executables
See `config.log' for more details
Is this the problem with gcc (I use v5.4.0)? I also attach the config.log file. Kindly help.
with many thanks and best regards
Soumyadeep
Re: Compilation error in Yambo-4.5.0 in ubuntu 16.04
Posted: Sat Jun 20, 2020 2:37 pm
by Daniele Varsano
Dear Soumyadeep,
it seems your gcc compiler has some problem. Is it properly installed? Are you able to compile other code using this compiler?
Daniele
Re: Compilation error in Yambo-4.5.0 in ubuntu 16.04
Posted: Sat Jun 20, 2020 7:45 pm
by soumyadeepghosh35
Dear Daniele,
I have installed other codes using same C compiler e.g. Quantum Espresso, Wannier-90 and Exciting. Also these are running properly.
with best regards
Soumyadeep
Re: Compilation error in Yambo-4.5.0 in ubuntu 16.04
Posted: Sat Jun 20, 2020 8:27 pm
by andrea.ferretti
Dear Soumyadeep,
indeed, it seems the gcc compiler creates some problems here (see below a snippet from the config.log file
showing the issue).
Moreover, I think it is wise (if not mandatory yambo-wise) to upgrade to gcc > 7.x, otherwise you may also encounter problems when
compiling using gfortran.
Take care
Andrea
Code: Select all
configure:3398: checking whether the C compiler works
configure:3420: gcc conftest.c >&5
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
configure:3424: $? = 1
configure:3462: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Yambo"
| #define PACKAGE_TARNAME "yambo"
| #define PACKAGE_VERSION "4.5.0 r.163 (based on r.17092 h.28d5a6e)"
| #define PACKAGE_STRING "Yambo 4.5.0 r.163 (based on r.17092 h.28d5a6e)"
| #define PACKAGE_BUGREPORT "yambo@yambo-code.org"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }