Make Error 2 netcdf

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
ykipouros
Posts: 2
Joined: Mon May 16, 2011 9:46 pm

Make Error 2 netcdf

Post by ykipouros » Mon May 16, 2011 10:51 pm

Hello all,

I've been trying to install abinit on a 6core, AMD, Ubuntu 11.04 64 bit machine, but have run in to a few problems. Luckily there are some very helpful posts on this forum that have helped me quite a bit so far, but I've finally run into an error I can't really seem to get by, despite the fact it seems like it's pretty common.

I've downloaded all the plugins, and placed them in ~/.abinit/tarballs.

To configure, I used the command:

Code: Select all

export LD_LIBRARY_PATH=/opt/openmpi-1.4.3/lib
./configure --prefix=/opt/abinit-6.6.3 --enable-mpi=yes --with-mpi-prefix=/opt/openmpi-1.4.3


Which produces this log file: http://myweb.dal.ca/yn843798/config.log

Then I did:

Code: Select all

sudo su
make -j6


and get

Code: Select all

configure: finding C compiler
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/xxxx/Downloads/abinit-6.6.3/plugins/netcdf/netcdf-4.1.1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[4]: *** [configure-stamp] Error 1
make[4]: Leaving directory `/home/xxxx/Downloads/abinit-6.6.3/plugins/netcdf'
make[3]: *** [package-ready] Error 2
make[3]: Leaving directory `/home/xxxx/Downloads/abinit-6.6.3/plugins/netcdf'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/xxxx/Downloads/abinit-6.6.3/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xxxx/Downloads/abinit-6.6.3'
make: *** [all] Error 2


I'd prefer not to disable any plugins, unless they are not difficult to install later if/when I need them.

Thanks in advance for your help!

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: Make Error 2 netcdf

Post by pouillon » Thu May 19, 2011 10:11 pm

The build of NetCDF does not allow for a parallel make. To circumvent this, you can use the following command instead:

Code: Select all

make multi multi_nprocs=6
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

ykipouros
Posts: 2
Joined: Mon May 16, 2011 9:46 pm

Re: Make Error 2 netcdf

Post by ykipouros » Fri May 20, 2011 10:11 pm

Thanks, works perfectly now.

Locked