Compilation error in Yambo-4.5.0 in ubuntu 16.04

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
Post Reply
soumyadeepghosh35
Posts: 22
Joined: Tue Jun 04, 2019 11:54 am

Compilation error in Yambo-4.5.0 in ubuntu 16.04

Post by soumyadeepghosh35 » Sat Jun 20, 2020 5:59 am

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
You do not have the required permissions to view the files attached to this post.
Soumyadeep Ghosh,
Senior Research Fellow,
HBNI-RRCAT, Indore, India-452013
Mob: (+91)9424664553
User Lab: 0731244-2580
Email: soumyadeepghosh35@gmail.com, soumyadeep@rrcat.gov.in

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: Compilation error in Yambo-4.5.0 in ubuntu 16.04

Post by Daniele Varsano » Sat Jun 20, 2020 2:37 pm

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
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

soumyadeepghosh35
Posts: 22
Joined: Tue Jun 04, 2019 11:54 am

Re: Compilation error in Yambo-4.5.0 in ubuntu 16.04

Post by soumyadeepghosh35 » Sat Jun 20, 2020 7:45 pm

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
Soumyadeep Ghosh,
Senior Research Fellow,
HBNI-RRCAT, Indore, India-452013
Mob: (+91)9424664553
User Lab: 0731244-2580
Email: soumyadeepghosh35@gmail.com, soumyadeep@rrcat.gov.in

andrea.ferretti
Posts: 206
Joined: Fri Jan 31, 2014 11:13 am

Re: Compilation error in Yambo-4.5.0 in ubuntu 16.04

Post by andrea.ferretti » Sat Jun 20, 2020 8:27 pm

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;
| }
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Post Reply