Page 1 of 1

Yambo 5.0.3 compilation error on Mac M1 (arm architecture) running on Mac OS with gcc-11

Posted: Fri Jun 25, 2021 9:15 am
by batman
Dear Yambo developers,

I have been trying to install Yambo 5.0.3 on Mac M1 (arm 64 architecture) running on Mac OS 11.12 with gcc-11 and open-mpi 4.1.1 (build on gcc-11). Although, the architecture is not yet supported, I am trying to build for x86_x64. I configured with the following script:

Code: Select all

./configure --build=x86_64-apple-darwin20.5.0 --enable-hdf5-p2y-support --enable-iotk FC=gfortran MPIFC=mpif90 CC=gcc MPICC=mpicc \
  --without-editor \
  --with-iotk-path="/Users/muralidhar.nalabothu/softwares/qe-6.6/iotk" \
  --with-hdf5-path="/opt/local" \
  --with-netcdf-path="/opt/local" \
  --with-libxc-path="/opt/local" \
  --with-fft-path="/opt/local" \
  --with-blas-libs="-L/opt/local/lib -lopenblas" \
  --with-netcdff-path="/opt/local" \
  --with-lapack-libs="-L/opt/local/lib/lapack -llapack  -lblas" FCFLAGS="-fallow-argument-mismatch"
After successfully configuring and running the

Code: Select all

make -j8 all
command, I was able to compile most of modules except ypp_rt, ypp_nl. I get the following error (config.log file attached below)

Code: Select all

>>>[Making dipoles]<<<
<command-line>: warning: ISO C99 requires whitespace after the macro name
cd /Users/muralidhar.nalabothu/softwares/yambo-5.0.3/ypp/dipoles; /Users/muralidhar.nalabothu/softwares/yambo-5.0.3/sbin/moduledep.sh DIPOLES_driver.o > /Users/muralidhar.nalabothu/softwares/yambo-5.0.3/ypp/dipoles/make.dep
DIPOLES_driver.F
ar: creating archive lib_ypp_dipoles.a

>>>[Making el-ph]<<<
<command-line>: warning: ISO C99 requires whitespace after the macro name
cd /Users/muralidhar.nalabothu/softwares/yambo-5.0.3/ypp/el-ph; /Users/muralidhar.nalabothu/softwares/yambo-5.0.3/sbin/moduledep.sh  > /Users/muralidhar.nalabothu/softwares/yambo-5.0.3/ypp/el-ph/make.dep
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
	ar -m [-TLsv] archive file ...
	ar -m [-abiTLsv] position archive file ...
	ar -p [-TLsv] archive [file ...]
	ar -q [-cTLsv] archive file ...
	ar -r [-cuTLsv] archive file ...
	ar -r [-abciuTLsv] position archive file ...
	ar -t [-TLsv] archive [file ...]
	ar -x [-ouTLsv] archive [file ...]
make[1]: *** [arcreate] Error 1
make: *** [ypp_rt] Error 2
Please note that, I was able to successfully compile Yambo-4.5 on this machine. This error is also reported on intel macs with gcc-11 by sitangshu at viewtopic.php?t=1767


Thank you in Advance,

Best regards,
Murali

Re: Yambo 5.0.3 compilation error on Mac M1 running on Mac OS with gcc-11

Posted: Fri Jun 25, 2021 9:39 am
by claudio
Dear Muralidhar Nalabothula

I don't have a mac, so I don't know how to help you with gcc-11,
just two suggestions:

1) try to compile without "-j8"

2) consider the possibility to install intel compiler on mac
as alternative to the gcc,

http://www.yambo-code.org/wiki/index.ph ... l_compiler


best
Claudio

Re: Yambo 5.0.3 compilation error on Mac M1 running on Mac OS with gcc-11

Posted: Fri Jun 25, 2021 10:17 am
by batman
Dear Claudio Attaccalite,

Thanks for the suggestions,

1) I gave a try with out -j8 flag and the issue still persists

2) Currently the intel MKL is not supported on M1 macs, I cannot even go for lower versions of gcc (can install gcc-10 but openmpi fails to build on gcc-10)


Thank you,

Best regards,
Murali

Re: Yambo 5.0.3 compilation error on Mac M1 running on Mac OS with gcc-11

Posted: Mon Jan 24, 2022 11:39 am
by Davide Sangalli
Dear all,
this should have been fixed with the following commit:

https://github.com/yambo-code/yambo/com ... a4bdc1c11c

Best,
D.