Compilation error in Yambo 4.3.1
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
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
-
- Posts: 191
- Joined: Thu Jan 05, 2017 8:08 am
Compilation error in Yambo 4.3.1
Dear Sir,
While compiling Yambo 4.3.1, I find this error:
************************************************************************
configure: netCDF-Fortran 4.4.4
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: checking user options
checking whether extra valgrind tests should be run... no
checking whether parallel IO tests should be run... no
checking whether netCDF extra tests should be run (developers only)... no
checking for doxygen... doxygen
checking for dot... no
configure: WARNING: dot not found - will use simple charts in documentation
configure: finding C compiler
checking for gcc... mpicc
checking whether the C compiler works... no
configure: error: in `/home/sitangshu/Softwares/yambo-4.3.1/lib/netcdff/netcdf-fortran-4.4.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Makefile:34: recipe for target 'configure-stamp' failed
make[2]: *** [configure-stamp] Error 77
make[2]: Leaving directory '/home/sitangshu/Softwares/yambo-4.3.1/lib/netcdff'
Makefile:151: recipe for target 'ext-libs' failed
make[1]: *** [ext-libs] Error 2
make[1]: Leaving directory '/home/sitangshu/Softwares/yambo-4.3.1'
yambo build failed
*******************************************************************************************
I have also attached the config.log file for your perusal. I would be glad if you please let me know the bug...
With regards,
Sitangshu
While compiling Yambo 4.3.1, I find this error:
************************************************************************
configure: netCDF-Fortran 4.4.4
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: checking user options
checking whether extra valgrind tests should be run... no
checking whether parallel IO tests should be run... no
checking whether netCDF extra tests should be run (developers only)... no
checking for doxygen... doxygen
checking for dot... no
configure: WARNING: dot not found - will use simple charts in documentation
configure: finding C compiler
checking for gcc... mpicc
checking whether the C compiler works... no
configure: error: in `/home/sitangshu/Softwares/yambo-4.3.1/lib/netcdff/netcdf-fortran-4.4.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Makefile:34: recipe for target 'configure-stamp' failed
make[2]: *** [configure-stamp] Error 77
make[2]: Leaving directory '/home/sitangshu/Softwares/yambo-4.3.1/lib/netcdff'
Makefile:151: recipe for target 'ext-libs' failed
make[1]: *** [ext-libs] Error 2
make[1]: Leaving directory '/home/sitangshu/Softwares/yambo-4.3.1'
yambo build failed
*******************************************************************************************
I have also attached the config.log file for your perusal. I would be glad if you please let me know the bug...
With regards,
Sitangshu
You do not have the required permissions to view the files attached to this post.
Sitangshu Bhattacharya
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
-
- Posts: 191
- Joined: Thu Jan 05, 2017 8:08 am
Re: Compilation error in Yambo 4.3.1
Forgot to mention that I have gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)
Regards,
Sitangshu
Regards,
Sitangshu
Sitangshu Bhattacharya
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
- Daniele Varsano
- Posts: 4198
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: Compilation error in Yambo 4.3.1
Dear Sitangshu,
it seems you have something odd in the definition of the C compiler when compiling the netcdf library.
You can try to define the compiler explicitly in the configure line:
./configure CC=gcc CPP='gcc -E'
check also the the MPI wrapper mpicc and mpifort points to the correct compilers.
Best,
Daniele
it seems you have something odd in the definition of the C compiler when compiling the netcdf library.
You can try to define the compiler explicitly in the configure line:
./configure CC=gcc CPP='gcc -E'
check also the the MPI wrapper mpicc and mpifort points to the correct compilers.
Best,
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/
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/
-
- Posts: 191
- Joined: Thu Jan 05, 2017 8:08 am
Re: Compilation error in Yambo 4.3.1
Thank you Daniele,let me check with this..
Regards,
Sitangshu
Regards,
Sitangshu
Sitangshu Bhattacharya
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
-
- Posts: 191
- Joined: Thu Jan 05, 2017 8:08 am
Re: Compilation error in Yambo 4.3.1
Dear Daniele,
The problem still remains.
I tried to install the next lower version: 4.3.0 and it surprisingly worked. I am sharing the config.log file of this version..
Please check..
Regards,
Sitangshu
The problem still remains.
I tried to install the next lower version: 4.3.0 and it surprisingly worked. I am sharing the config.log file of this version..
Please check..
Regards,
Sitangshu
You do not have the required permissions to view the files attached to this post.
Sitangshu Bhattacharya
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
-
- Posts: 299
- Joined: Fri Apr 09, 2010 12:30 pm
Re: Compilation error in Yambo 4.3.1
Dear all,
I met the same problem and for 4.3.0 it it is OK.
What the problem could be?
Thanks!
SD
I met the same problem and for 4.3.0 it it is OK.
What the problem could be?
Thanks!
SD
- Daniele Varsano
- Posts: 4198
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: Compilation error in Yambo 4.3.1
Dear Shudong and Sitangshu,
we have spotted the problem and sovled it (Thanks to Andrea Ferretti).
You can easily fix it by changing this line in the Makefile.loc file in lib/netcdf and lib/netcdff
by setting it as:
LIBPATH=$(libs_prefix)/$(fc_kind)/${fc}/${netcdf_ver}/${hdf5_ver}
note that in the current file the latter string /${hdf5_ver} is missing.
Best,
Daniele
we have spotted the problem and sovled it (Thanks to Andrea Ferretti).
You can easily fix it by changing this line in the Makefile.loc file in lib/netcdf and lib/netcdff
by setting it as:
LIBPATH=$(libs_prefix)/$(fc_kind)/${fc}/${netcdf_ver}/${hdf5_ver}
note that in the current file the latter string /${hdf5_ver} is missing.
Best,
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/
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/
-
- Posts: 191
- Joined: Thu Jan 05, 2017 8:08 am
Re: Compilation error in Yambo 4.3.1
Thanks Daniele,
This is working now.!
With regards,
Sitangshu
This is working now.!
With regards,
Sitangshu
Sitangshu Bhattacharya
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/
Indian Institute of Information Technology-Allahabad
India
Web-page: http://profile.iiita.ac.in/sitangshu/
Institute: http://www.iiita.ac.in/