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
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:
After successfully configuring and running the command, I was able to compile most of modules except ypp_rt, ypp_nl. I get the following error (config.log file attached below)
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
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"
Code: Select all
make -j8 all
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
Thank you in Advance,
Best regards,
Murali