IllinoisRocstar / Rocstar

Rocstar MultiPhysics simulation suite (RocstarMP)
Other
22 stars 24 forks source link

make error #4

Closed XiSheng1998 closed 4 years ago

XiSheng1998 commented 4 years ago

I'm sorry but I still got an error when I install the newest version of rocstar. Impact 2.1.1 works totally fine but when I install Rocstar and run make -j$(nproc) I still got an error. The evironment variables are: $IMPACT_DIR=$IMPACT_INSTALL_PATH $METIS_LIB=../libmetis.a Here are logs:

root@ubuntu:/opt/ROCSTAR_PROJECT/build# IMPACT_DIR=$IMPACT_DIR cmake -DCMAKE_INSTALL_PREFIX=$ROCSTAR_INSTALL_PATH -DMETIS_LIB=$METIS_LIB ..
-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- The Fortran compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Setting build type to 'Release' as none was specified.
-- Found MPI_C: /usr/lib/x86_64-linux-gnu/libmpich.so (found version "3.1") 
-- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/libmpichcxx.so (found version "3.1") 
-- Found MPI_Fortran: /usr/lib/x86_64-linux-gnu/libmpichfort.so (found version "3.1") 
-- Found MPI: TRUE (found version "3.1")  
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components:  doxygen missing components:  dot
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/ROCSTAR_PROJECT/build
root@ubuntu: /opt/ROCSTAR_PROJECT/build root@ubuntu:/opt/ROCSTAR_PROJECT/build# make -j$(nproc)
Scanning dependencies of target Rocman
[  0%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/rocstar_driver.C.o
[  1%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/RocstarCoupling.C.o
[  1%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/builtin_couplings.C.o
[  1%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/derived_couplings.C.o
[  1%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/RocstarAction.C.o
[  1%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/basic_actions.C.o
[  1%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/SurfDiver.C.o
[  2%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/transfer_actions.C.o
[  2%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/RocstarAgent.C.o
[  2%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/SolidAgent.C.o
[  2%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/BurnAgent.C.o
[  2%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/FluidAgent.C.o
[  2%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/Control_parameters.C.o
[  3%] Building CXX object Rocman/CMakeFiles/Rocman.dir/src/rocman.C.o
[  3%] Linking CXX shared library ../lib/libRocman.so
[  3%] Built target Rocman
Scanning dependencies of target rocstar
[  3%] Building CXX object CMakeFiles/rocstar.dir/src/rocstar.C.o
[  3%] Linking CXX executable bin/rocstar
[  3%] Built target rocstar
Scanning dependencies of target mesquite_95
[  3%] Building CXX object Rocmop/External/mesquite_0_9_5/CMakeFiles/mesquite_95.dir/srcLinks/ASMQualityMetric.cpp.o
/opt/ROCSTAR_PROJECT/Rocmop/External/mesquite_0_9_5/srcLinks/ASMQualityMetric.cpp:1:1: error: expected unqualified-id before '.' token
 ../src/QualityMetric/Smoothness/ASMQualityMetric.cpp
 ^
Rocmop/External/mesquite_0_9_5/CMakeFiles/mesquite_95.dir/build.make:62: recipe for target 'Rocmop/External/mesquite_0_9_5/CMakeFiles/mesquite_95.dir/srcLinks/ASMQualityMetric.cpp.o' failed
make[2]: *** [Rocmop/External/mesquite_0_9_5/CMakeFiles/mesquite_95.dir/srcLinks/ASMQualityMetric.cpp.o] Error 1
CMakeFiles/Makefile2:466: recipe for target 'Rocmop/External/mesquite_0_9_5/CMakeFiles/mesquite_95.dir/all' failed
make[1]: *** [Rocmop/External/mesquite_0_9_5/CMakeFiles/mesquite_95.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

And I'm looking forward for reply, thank you.

msafdari1234 commented 4 years ago

We cannot reproduce this issue. The log you have provided does not provide much details. I can only see you are using root login. You may switch to a regular user instead and try again.