Giter Club home page Giter Club logo

Comments (13)

ViralBShah avatar ViralBShah commented on September 1, 2024 1

Ah will try

from sundials.

balos1 avatar balos1 commented on September 1, 2024 1

We also apply this patch on Windows for KLU, in case it makes sense upstreaming. Just pointing it out here:

https://github.com/JuliaPackaging/Yggdrasil/blob/master/S/Sundials%405/bundled/patches/Sundials_windows.patch

FYI, I will see about getting this patch in sundials.

from sundials.

balos1 avatar balos1 commented on September 1, 2024 1

@ViralBShah We included a bug fix in our v5.2.0 release that should fix this issue. If it does not, please reopen this ticket.

from sundials.

ViralBShah avatar ViralBShah commented on September 1, 2024

cc @jd-lara

from sundials.

giordano avatar giordano commented on September 1, 2024

I think there is a missing -DBUILD_SUNDIALS_LIBRARY in one of the CMake files. Note also that in the log there are a lot of warnings like

[02:40:11] /workspace/srcdir/sundials-5.1.0/src/sundials/sundials_linearsolver.c:28:17: warning: ‘SUNLinSolNewEmpty’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
[02:40:11]  SUNLinearSolver SUNLinSolNewEmpty()
[02:40:11]                  ^~~~~~~~~~~~~~~~~

I can build if I manually do

export CFLAGS="-DBUILD_SUNDIALS_LIBRARY"

before calling cmake.

from sundials.

balos1 avatar balos1 commented on September 1, 2024

@giordano It does appear that -DBUILD_SUNDIALS_LIBRARY is missing somewhere. Can you try setting the CMake variable CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to TRUE instead of setting BUILD_SUNDIALS_LIBRARY in CFLAGS?

from sundials.

ViralBShah avatar ViralBShah commented on September 1, 2024

We also apply this patch on Windows for KLU, in case it makes sense upstreaming. Just pointing it out here:

https://github.com/JuliaPackaging/Yggdrasil/blob/master/S/Sundials%405/bundled/patches/Sundials_windows.patch

from sundials.

ViralBShah avatar ViralBShah commented on September 1, 2024

@balos1 The CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS does not work, and gives the same linking error:

https://dev.azure.com/JuliaPackaging/Yggdrasil/_build/results?buildId=1498&view=logs&j=0c8f16f8-c0df-5cf3-8178-b591b90f12cf&t=fdd4b889-5821-506e-6c2a-64b809c5b85c&l=3913

from sundials.

balos1 avatar balos1 commented on September 1, 2024

@ViralBShah CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS is a CMake variable, not a definition for the compiler. It looks like the build you linked had set this in the CFLAGS variable that is given to the compiler. Instead, when you invoke cmake you want to do cmake -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=True <other options>.

from sundials.

balos1 avatar balos1 commented on September 1, 2024

Ah will try

@ViralBShah Was the build successful?

from sundials.

ViralBShah avatar ViralBShah commented on September 1, 2024

We haven't try with your new suggestion yet, since we have some upstream problems with SuiteSparse at the moment.

from sundials.

ViralBShah avatar ViralBShah commented on September 1, 2024

Thank you. At this point we are getting Sundials 5.1 integrated into Julia and we'll stabilize that and then move to 5.2. At that point if there's still an issue, we'll reopen.

from sundials.

jd-lara avatar jd-lara commented on September 1, 2024

@balos1 We just tried without the workaround and it wasn't successful at building in WIndows.

JuliaPackaging/Yggdrasil#701 (comment)

from sundials.

Related Issues (20)

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.