ornladios / ADIOS

The old ADIOS 1.x code repository. Look for ADIOS2 for new repo
https://csmd.ornl.gov/adios
Other
54 stars 40 forks source link

Error in installation #129

Closed physixfan closed 7 years ago

physixfan commented 7 years ago

Hi,

I used the following command to install adios-1.11.0:

cd adios
mkdir build
cd build
../configure -prefix=/turquoise/users/xfan/local CFLAGS=-fPIC
make clean
make 
make install

But when I execute "make", I get the following error:

In file included from ../../../src/public/adios_mpi.h:13, from ../../../src/core/adios_transport_hooks.h:15, from ../../../utils/bp2ncd/bp2ncd.c:14: ../../../src/public/mpidummy.h:27: error: two or more data types in declaration specifiers ../../../src/public/mpidummy.h:27: warning: useless type name in empty declaration ../../../src/public/mpidummy.h:30: error: two or more data types in declaration specifiers ../../../src/public/mpidummy.h:30: warning: useless type name in empty declaration In file included from ../../../src/public/adios_mpi.h:13, from ../../../src/core/adios_transport_hooks.h:15, from ../../../utils/bp2ncd/bp2ncd.c:14: ../../../src/public/mpidummy.h:53:1: warning: "MPI_COMM_WORLD" redefined In file included from ../../../utils/bp2ncd/bp2ncd.c:12: /usr/include/netcdf.h:44:1: warning: this is the location of the previous definition make[3]: [bp2ncd-bp2ncd.o] Error 1 make[3]: Leaving directory '/turquoise/users/xfan/adios-1.11.0/build/utils/bp2ncd' make[2]: [all-recursive] Error 1 make[2]: Leaving directory '/turquoise/users/xfan/adios-1.11.0/build/utils' make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/turquoise/users/xfan/adios-1.11.0/build' make: [all] Error 2

What should I do to make correctly?

pnorbert commented 7 years ago

Please note that bp2ncd is a sequential code. You probably point to a parallel netcdf installation. The --with-netcdf option needs a sequential build, however, the bp2ncd tool probably does not work anymore, so if you don't need it, just use --without-netcdf.

For having the parallel NC4 transport to write out NC4 files, you need to use the --with-nc4par option at configure.

On Fri, May 5, 2017 at 3:39 PM, physixfan notifications@github.com wrote:

Hi,

I used the following command to install adios-1.10.0 (and also tried adios-1.11.0): cd adios mkdir build cd build ../configure -prefix=/turquoise/users/xfan/local CFLAGS=-fPIC make clean make make install

But when I execute "make", I get the following error:

In file included from ../../../src/public/adios_mpi.h:13, from ../../../src/core/adios_transport_hooks.h:15, from ../../../utils/bp2ncd/bp2ncd.c:14: ../../../src/public/mpidummy.h:27: error: two or more data types in declaration specifiers ../../../src/public/mpidummy.h:27: warning: useless type name in empty declaration ../../../src/public/mpidummy.h:30: error: two or more data types in declaration specifiers ../../../src/public/mpidummy.h:30: warning: useless type name in empty declaration In file included from ../../../src/public/adios_mpi.h:13, from ../../../src/core/adios_transport_hooks.h:15, from ../../../utils/bp2ncd/bp2ncd.c:14: ../../../src/public/mpidummy.h:53:1: warning: "MPI_COMM_WORLD" redefined In file included from ../../../utils/bp2ncd/bp2ncd.c:12: /usr/include/netcdf.h:44:1: warning: this is the location of the previous definition make[3]: [bp2ncd-bp2ncd.o] Error 1 make[3]: Leaving directory /turquoise/users/xfan/adios-1.11.0/build/utils/bp2ncd' make[2]: [all-recursive] Error 1 make[2]: Leaving directory /turquoise/users/xfan/adios-1.11.0/build/utils' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/turquoise/users/xfan/adios-1.11.0/build' make: [all] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ornladios/ADIOS/issues/129, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGMLU0RtVYR6cTmIQ_wsK-FBNKXeIcJks5r23rtgaJpZM4NSVq4 .

physixfan commented 7 years ago

Thanks for your instant reply! After I used --without-netcdf in my configuration, the previous error is gone. However, I get this error instead:

make[4]: Leaving directory '/turquoise/users/xfan/adios-1.10.0/build/tests/suite/programs' make[4]: Entering directory '/turquoise/users/xfan/adios-1.10.0/build/tests/suite' test "../../../tests/suite" = "." || ln -sf ../../../tests/suite/reference . ln: './reference': cannot overwrite directory make[4]: [all-local] Error 1 make[4]: Leaving directory '/turquoise/users/xfan/adios-1.10.0/build/tests/suite' make[3]: [all-recursive] Error 1 make[3]: Leaving directory '/turquoise/users/xfan/adios-1.10.0/build/tests/suite' make[2]: [all-recursive] Error 1 make[2]: Leaving directory '/turquoise/users/xfan/adios-1.10.0/build/tests' make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/turquoise/users/xfan/adios-1.10.0/build' make: *** [all] Error 2

pnorbert commented 7 years ago

I don't know what went wrong with your build there. I would do

cd /turquoise/users/xfan/adios-1.10.0/build rm -rf ../build/*

make On Fri, May 5, 2017 at 3:49 PM, physixfan wrote: > Thanks for your instant reply! After I used --without-netcdf in my > configuration, the previous error is gone. However, I get this error > instead: > > make[4]: Leaving directory /turquoise/users/xfan/adios-1. > 10.0/build/tests/suite/programs' make[4]: Entering directory > /turquoise/users/xfan/adios-1.10.0/build/tests/suite' > test "../../../tests/suite" = "." || ln -sf ../../../tests/suite/reference > . > ln: ./reference': cannot overwrite directory make[4]: *** [all-local] > Error 1 make[4]: Leaving directory/turquoise/users/ > xfan/adios-1.10.0/build/tests/suite' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory /turquoise/users/xfan/adios-1.10.0/build/tests/suite' > make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory > /turquoise/users/xfan/adios-1.10.0/build/tests' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/turquoise/users/xfan/adios-1.10.0/build' > make: *** [all] Error 2 > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > , > or mute the thread > > . >
physixfan commented 7 years ago

Thanks! Now it is installed successfully.