Giter Site home page Giter Site logo

cmake error about rocstar-legacy HOT 8 OPEN

illinoisrocstar avatar illinoisrocstar commented on July 30, 2024
cmake error

from rocstar-legacy.

Comments (8)

XiSheng1998 avatar XiSheng1998 commented on July 30, 2024

OK, I solved Doxygen issue, just by installed doxygen. but it still saying HDF5_LIB and METIS_INC are set to NOTFOUND, I installed libhdf5 and metis 4.0.3, but still doesn't work.

from rocstar-legacy.

msafdari1234 avatar msafdari1234 commented on July 30, 2024

from rocstar-legacy.

multiplemonomials avatar multiplemonomials commented on July 30, 2024

If you need it @XiSheng1998 we at RPL created a fork of Rocstar to address some of the CMake build system issues. Check it out here: https://github.com/USCRPL/Rocstar . Among other things it includes a bundled version of Metis, and removes the dependency on HDF5 (nothing actually uses it!).

from rocstar-legacy.

XiSheng1998 avatar XiSheng1998 commented on July 30, 2024

Seems like your HDF5 and METIS libraries are not installed in the standard
system path. You can manually specify path in your cmake cache. In the top
build directory, issue "ccmake .", find "HDF5_LIB" and "METIS_INC"
variables and manually set them.

OK, finally I solved the metis-notfound problem and HDF5-LIB-notfound problem. And cmake processing with no errors but a warning:

root@ubuntu:/usr/local/src# cmake $ROCSTAR_SOURCE
-- No build type selected, default to Release
-- A library with BLAS API found.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Configuring done
CMake Warning (dev) at Rocmop/CMakeLists.txt:62 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "MSQ_MV" of target "Rocmop" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /usr/local/src/Rocstar-legacy-master

however, when I try to run make -j, error occured:

In file included from /usr/local/src/Rocstar-legacy-master/IRAD/src/COMM.C:6:0:
/usr/local/src/Rocstar-legacy-master/IRAD/include/COMM.H: In member function ‘int IRAD::Comm::CommunicatorObject::GatherMO(std::vector<DataType>&, std::vector<DataType>&, std::vector<int>&, int)’:
/usr/local/src/Rocstar-legacy-master/IRAD/include/COMM.H:482:12: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
      nrecv += nsi++;
      ~~~~~~^~~~~~~~
/usr/local/src/Rocstar-legacy-master/IRAD/include/COMM.H: In member function ‘int IRAD::Comm::CommunicatorObject::AllGatherMO(std::vector<DataType>&, std::vector<DataType>&, std::vector<int>&, int)’:
/usr/local/src/Rocstar-legacy-master/IRAD/include/COMM.H:529:12: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
      nrecv += nsi++;
      ~~~~~~^~~~~~~~
/usr/local/src/Rocstar-legacy-master/IRAD/include/COMM.H: In member function ‘int IRAD::Comm::CommunicatorObject::GatherMOV(std::vector<DataType>&, std::vector<DataType>&, std::vector<int>&, int)’:
/usr/local/src/Rocstar-legacy-master/IRAD/include/COMM.H:561:12: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
      nrecv += nsi++;
      ~~~~~~^~~~~~~~
/usr/local/src/Rocstar-legacy-master/IRAD/include/COMM.H: In member function ‘int IRAD::Comm::CommunicatorObject::AllGatherMOV(std::vector<DataType>&, std::vector<DataType>&, std::vector<int>&, int)’:
/usr/local/src/Rocstar-legacy-master/IRAD/include/COMM.H:593:12: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
      nrecv += nsi++;
      ~~~~~~^~~~~~~~

IRAD/CMakeFiles/IRAD.dir/build.make:182: recipe for target 'IRAD/CMakeFiles/IRAD.dir/src/COMM.C.o' failed
make[2]: *** [IRAD/CMakeFiles/IRAD.dir/src/COMM.C.o] Error 1
CMakeFiles/Makefile2:1146: recipe for target 'IRAD/CMakeFiles/IRAD.dir/all' failed
make[1]: *** [IRAD/CMakeFiles/IRAD.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

It seems that something's wrong with IRAD, the cotent of /Rocstar-legacy/IRAD folder was downloaded from https://github.com/IllinoisRocstar/IRAD. Because there's something wrong with my Linux git submodule command, I have to download IRAD manually and Unzip to /Rocstar-legacy/IRAD folder, and then the error occurs.

from rocstar-legacy.

XiSheng1998 avatar XiSheng1998 commented on July 30, 2024

I also tried to make IRAD independently, cmake process seems ok but error occurs when it comes to make process:

root@ubuntu:/usr/local/src/irad# make
Scanning dependencies of target IRAD
[  4%] Building CXX object CMakeFiles/IRAD.dir/src/ComLine.C.o
[  9%] Building CXX object CMakeFiles/IRAD.dir/src/Parameters.C.o
[ 14%] Building CXX object CMakeFiles/IRAD.dir/src/Configuration.C.o
[ 19%] Building CXX object CMakeFiles/IRAD.dir/src/Profiler.C.o
[ 23%] Building CXX object CMakeFiles/IRAD.dir/src/UnixUtils.C.o
[ 28%] Building CXX object CMakeFiles/IRAD.dir/src/COMM.C.o
In file included from /usr/local/src/IRAD/src/COMM.C:6:0:
/usr/local/src/IRAD/include/COMM.H: In member function ‘int IRAD::Comm::CommunicatorObject::GatherMO(std::vector<DataType>&, std::vector<DataType>&, std::vector<int>&, int)’:
/usr/local/src/IRAD/include/COMM.H:482:12: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
      nrecv += nsi++;
      ~~~~~~^~~~~~~~
/usr/local/src/IRAD/include/COMM.H: In member function ‘int IRAD::Comm::CommunicatorObject::AllGatherMO(std::vector<DataType>&, std::vector<DataType>&, std::vector<int>&, int)’:
/usr/local/src/IRAD/include/COMM.H:529:12: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
      nrecv += nsi++;
      ~~~~~~^~~~~~~~
/usr/local/src/IRAD/include/COMM.H: In member function ‘int IRAD::Comm::CommunicatorObject::GatherMOV(std::vector<DataType>&, std::vector<DataType>&, std::vector<int>&, int)’:
/usr/local/src/IRAD/include/COMM.H:561:12: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
      nrecv += nsi++;
      ~~~~~~^~~~~~~~
/usr/local/src/IRAD/include/COMM.H: In member function ‘int IRAD::Comm::CommunicatorObject::AllGatherMOV(std::vector<DataType>&, std::vector<DataType>&, std::vector<int>&, int)’:
/usr/local/src/IRAD/include/COMM.H:593:12: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
      nrecv += nsi++;
      ~~~~~~^~~~~~~~
CMakeFiles/IRAD.dir/build.make:182: recipe for target 'CMakeFiles/IRAD.dir/src/COMM.C.o' failed
make[2]: *** [CMakeFiles/IRAD.dir/src/COMM.C.o] Error 1
CMakeFiles/Makefile2:493: recipe for target 'CMakeFiles/IRAD.dir/all' failed
make[1]: *** [CMakeFiles/IRAD.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

from rocstar-legacy.

msafdari1234 avatar msafdari1234 commented on July 30, 2024

I suspect you are using a relatively modern compiler. IRAD is old and not compatible with modern compilers. We have noticed these issues and fixed them in our new IMPACT release. I just updated our IMPACT project. The project no longer relies on IRAD (which will be no longer supported) and it is compatible with the latest gnu compilers. We are upgrading Rocstar build system to a great deal soon. It will be ready for public release in next few weeks.

Meanwhile, please go ahead and checkout our new IMPACT release, build it and use that for Rocstar (not this legacy version, try the new version). That should address these compile issues.

from rocstar-legacy.

XiSheng1998 avatar XiSheng1998 commented on July 30, 2024

Additionally, when I use ccmake $ROCSTAR_SOURCE, and I found that BLOCKSOLVE_INC and BLOCKSOLVE_LIB was set to notfound, I checked Rocburn/CMakeList.txt, and found:

find_library(BLOCKSOLVE_LIBRARY blocksolve95)
find_path(BLO	CKSOLVE_INC blocksolve95.h)

But I could found any information of blocksolve library. Is there any way to download this lib?

from rocstar-legacy.

msafdari1234 avatar msafdari1234 commented on July 30, 2024

Blocksolve is not used in the project, so you are safe. Rocstar build system soon will be improved in new release and these issue will be fixed. Once again, none of the new fixes will be released under Rocstar-legacy and I recommend you to switch to Rocstar.

from rocstar-legacy.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.