compilation error with intel ifort
Posted: Sun Sep 05, 2021 3:54 am
Dear Community,
I am using UBUNTU 20.04 version on my machine. I downloaded Yambo from the link
https://github.com/yambo-code/yambo, and tried to compile it here. I followed steps:
./configure
make -j4 hdf5
make -j4 netcdf
make -j4 yambo
But in the last step, it showed error:
>>>[Linking yambo]<<<
make[1]: Entering directory '/home/cl01/Documents/setup/yambo-master/driver'
ld: driver.o: in function `main':
driver.c:(.text+0x0): multiple definition of `main'; /opt/intel/oneapi/compiler/2021.2.0/linux/bin/intel64/../../compiler/lib/intel64_lin/for_main.o:for_main.c:(.text+0x0): first defined here
ld: /opt/intel/oneapi/compiler/2021.2.0/linux/bin/intel64/../../compiler/lib/intel64_lin/for_main.o: in function `main':
for_main.c:(.text+0x2e): undefined reference to `MAIN__'
make[1]: *** [Makefile
yambo] Error 1
make[1]: Leaving directory '/home/cl01/Documents/setup/yambo-master/driver'
make: *** [config/mk/actions/compile_yambo.mk:5: yambo] Error 2
Kindly figure out this and suggest to me the needful.
Thank You
Regards
Sumit Kukreti
PhD Scholar
IIT Jodhpur
India
I am using UBUNTU 20.04 version on my machine. I downloaded Yambo from the link
https://github.com/yambo-code/yambo, and tried to compile it here. I followed steps:
./configure
make -j4 hdf5
make -j4 netcdf
make -j4 yambo
But in the last step, it showed error:
>>>[Linking yambo]<<<
make[1]: Entering directory '/home/cl01/Documents/setup/yambo-master/driver'
ld: driver.o: in function `main':
driver.c:(.text+0x0): multiple definition of `main'; /opt/intel/oneapi/compiler/2021.2.0/linux/bin/intel64/../../compiler/lib/intel64_lin/for_main.o:for_main.c:(.text+0x0): first defined here
ld: /opt/intel/oneapi/compiler/2021.2.0/linux/bin/intel64/../../compiler/lib/intel64_lin/for_main.o: in function `main':
for_main.c:(.text+0x2e): undefined reference to `MAIN__'
make[1]: *** [Makefile
make[1]: Leaving directory '/home/cl01/Documents/setup/yambo-master/driver'
make: *** [config/mk/actions/compile_yambo.mk:5: yambo] Error 2
Kindly figure out this and suggest to me the needful.
Thank You
Regards
Sumit Kukreti
PhD Scholar
IIT Jodhpur
India