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

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
batman
Posts: 12
Joined: Sun Jun 20, 2021 2:04 pm

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

Post by batman » Fri Jun 25, 2021 9:15 am

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
You do not have the required permissions to view the files attached to this post.
Last edited by batman on Tue Jan 25, 2022 9:03 am, edited 1 time in total.
Muralidhar Nalabothula
Doctoral student at Department of Physics and Materials Science,
Université du Luxembourg

User avatar
claudio
Posts: 448
Joined: Tue Mar 31, 2009 11:33 pm
Contact:

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

Post by claudio » Fri Jun 25, 2021 9:39 am

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
Claudio Attaccalite
[CNRS/ Aix-Marseille Université/ CINaM laborarory / TSN department
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09
web site: http://www.attaccalite.com

batman
Posts: 12
Joined: Sun Jun 20, 2021 2:04 pm

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

Post by batman » Fri Jun 25, 2021 10:17 am

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
Muralidhar Nalabothula
Doctoral student at Department of Physics and Materials Science,
Université du Luxembourg

User avatar
Davide Sangalli
Posts: 610
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

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

Post by Davide Sangalli » Mon Jan 24, 2022 11:39 am

Dear all,
this should have been fixed with the following commit:

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

Best,
D.
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

Post Reply