FreeFem / FreeFem-sources

FreeFEM source code
https://freefem.org/
Other
755 stars 188 forks source link

Problem building FreeFEM source code on operating system: CentOS Linux 7 (Core) #228

Closed rustamNSU closed 2 years ago

rustamNSU commented 2 years ago

Dear FreeFEM developers,

I try to build FreeFEM source code on remote cluster as user on operating system: CentOS Linux 7 (Core) (without sudo permission).

$ hostnamectl
   Static hostname: login
         Icon name: computer-server
           Chassis: server
        Machine ID: 451d8a709d4347db8e0bc41795630edf
           Boot ID: f1c76e042b634a1c8fdf80732d5c144a
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-1062.18.1.el7.x86_64
      Architecture: x86-64

I followed the instructions from freefem-doc (website)

git clone https://github.com/FreeFem/FreeFem-sources
cd FreeFem-sources
autoreconf -i
./configure --enable-download --enable-optim --with-mpi --with-hdf5=yes prefix=${PWD}
./3rdparty/getall -a
cd 3rdparty/ff-petsc
make petsc-slepc
cd -
./reconfigure

all these steps were completed without any problems, but when I tried to build the freefem libraries (using make), after a few hours I got the following error

make  check-am
make[3]: Entering directory '/home2/abdullin_r_f/programs/FreeFem-sources/src/fflib'
make[3]: Nothing to be done for 'check-am'.
make[3]: Leaving directory '/home2/abdullin_r_f/programs/FreeFem-sources/src/fflib'
make[2]: Leaving directory '/home2/abdullin_r_f/programs/FreeFem-sources/src/fflib'
Making check in nw
make[2]: Entering directory '/home2/abdullin_r_f/programs/FreeFem-sources/src/nw'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home2/abdullin_r_f/programs/FreeFem-sources/src/nw'
Making check in mpi
make[2]: Entering directory '/home2/abdullin_r_f/programs/FreeFem-sources/src/mpi'
depbase=`echo ffapi.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
/opt/software/intel/2021.2/mpi/2021.2.0/bin/mpicxx -DHAVE_CONFIG_H -I. -I../..  -I./../fflib -I./../Graphics -I./../femlib -I"/opt/software/intel/2021.2/mpi/2021.2.0/include" -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker -Xlinker -rpath -Xlinker -Xlinker --enable-new-dtags  -I/usr/include -I/home/fano.hydro/abdullin_r_f/programs/FreeFem-sources/ff-petsc/r/include  -DPARALLELE -g  -DNDEBUG -O3 -mmmx -mavx -std=c++14 -DBAMG_LONG_LONG  -DNCHECKPTR -fPIC -MT ffapi.o -MD -MP -MF $depbase.Tpo -c -o ffapi.o ffapi.cpp &&\
mv -f $depbase.Tpo $depbase.Po
g++: error: unrecognized command line option ‘-rpath’
make[2]: *** [Makefile:681: ffapi.o] Error 1
make[2]: Leaving directory '/home2/abdullin_r_f/programs/FreeFem-sources/src/mpi'
make[1]: *** [Makefile:538: check-recursive] Error 1
make[1]: Leaving directory '/home2/abdullin_r_f/programs/FreeFem-sources/src'
make: *** [Makefile:790: check-recursive] Error 1

Could you please have a look and help? Thanks! config.log config.param.txt make_output.txt

prj- commented 2 years ago

It seems you are mixing icpc and g++. Is that intended?