Trouble Building on Ubuntu 20.04  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
drcosquared
Posts: 1
Joined: Thu Oct 08, 2020 7:42 pm

Trouble Building on Ubuntu 20.04

Post by drcosquared » Thu Oct 08, 2020 7:53 pm

Hello,

I'm trying to build Abinit 9.2.1 with the Intel MKL on Ubuntu 20.04 using the mpi GNU compliers v9.3. The configuration script seems to complete with no errors, but compiling fails. I've tried being more explicit with linking libraries and even trying Openblas, but it seems like the same file fails to compile. The point where make fails is here:

Code: Select all

make[5]: *** No rule to make target 'm_optim_dumper.F90', needed by 'm_optim_dumper.o'.  Stop.
make[5]: *** Waiting for unfinished jobs....
../../../../../shared/common/src/14_hidewrite/m_io_tools.F90:1129:0:

 1129 |    iomsg = trim(msg)//ch10//"Runtime error message: "//trim(iomsg)
      | 
Warning: ‘__builtin_memset’ specified bound between 9223372036854775808 and 18446744073709551592 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
For reference here is my configuration file.

Code: Select all

prefix="${HOME}/abinit"
with_mpi="yes"
with_mpi_flavor="auto"
enable_mpi_io="yes"
with_linalg_flavor="mkl"
LINALG_CPPFLAGS="-I${MKLROOT}/include"
LINALG_LIBS="-L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl"
with_fft_flavor="fftw3"
FFTW3_LIBS="-L/usr/lib/x86_64-linux-gnu -lfftw3 -lfftw3f"
with_libxc="/usr/"
LIBXC_FCFLAGS="-I/usr/include"
LIBXC_LIBS="-L/usr/lib -lxcf90 -lxc"
with_hdf5="/usr"
H5CC="/usr/bin/h5pcc"
with_netcdf="yes"
with_netcdf_fortran="yes"
Any help would be greatly appreciated!

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: Trouble Building on Ubuntu 20.04  [SOLVED]

Post by ebousquet » Tue Oct 13, 2020 3:41 pm

Dear ,
Could your problem the same as this one that has been solved:
viewtopic.php?f=3&t=4482?
There was a similar question before, please check if it is not in some previous posts.
Best wishes,
Eric

Locked