GithubHelp home page GithubHelp logo

Comments (9)

mathbagu avatar mathbagu commented on July 20, 2024

It seems the file (SuiteSparse-5.4.0.tar.gz) you downloaded is not complete. Do you have an error before we try to extract the content?
Could you give us the checksum of your downloaded file?

from powsybl-math-native.

tarnh avatar tarnh commented on July 20, 2024

You were right with the partial download. But then something else emerged:

[ 72%] Built target suitesparse
make[2]: *** No rule to make target 'thirdparty/suitesparse/lib64/libklu.a', needed by '../target/classes/natives/linux_64/libmath.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:109: CMakeFiles/math.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

from powsybl-math-native.

mathbagu avatar mathbagu commented on July 20, 2024

Is it possible to send us the complete log? I'm pretty sure you have a compilation error in SuiteSparse but without more information it's hard to give you a better answer.

About your download issue, we will add a test to check the download is complete before trying to extract the content of the archive.

from powsybl-math-native.

tarnh avatar tarnh commented on July 20, 2024

Where should the logfile be located? I can't find it inside ./build/thirdparty/suitesparse_source/SuiteSparse/

from powsybl-math-native.

mathbagu avatar mathbagu commented on July 20, 2024

Simply copy/paste the content of the console into a file. Could you also give us the commands you type (options used).

from powsybl-math-native.

tarnh avatar tarnh commented on July 20, 2024

I'm doing a simple

mkdir build && cd build
cmake ..
make

and here's the log:
https://pastebin.com/Pridkh1m

from powsybl-math-native.

mathbagu avatar mathbagu commented on July 20, 2024

It seems the libklu.a is installed in -- Installing: /home/papa/aur/_power/powsybl-math-native/src/powsybl-math-native/build/thirdparty/suitesparse/lib/libklu.a (Line 1059 of your log file) whereas we are trying to find it in thirdparty/suitesparse/lib64/libklu.a

Could you give me your distribution name and the version of Cmake you use? Is it a 32bits or 64bits version?

As a workaround, you can fix the SUITE_SPARSE_LIB_DIR in the CMakeLists.txt at line 39.

from powsybl-math-native.

tarnh avatar tarnh commented on July 20, 2024

I've just patched my CMakeLists → https://pastebin.com/F9xRUEVM

But then I've still got
make[2]: *** No rule to make target 'thirdparty/suitesparse/lib64/libklu.a', needed by '../target/classes/natives/linux_64/libmath.so'. Stop.
So probably the error lies beyond
set(SUITE_SPARSE_LIB_DIR ${THIRD_PARTY_DIR}/suitesparse/lib64)

from powsybl-math-native.

mathbagu avatar mathbagu commented on July 20, 2024

Could you try to set the SUITE_SPARSE_LIB_DIR to ${THIRD_PARTY_DIR}/suitesparse/lib instead of ${THIRD_PARTY_DIR}/suitesparse/lib64.

from powsybl-math-native.

Related Issues (3)

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.