Git Product home page Git Product logo

Comments (7)

JohannesBuchner avatar JohannesBuchner commented on June 2, 2024

Could you please test if including -fcommon in https://github.com/JohannesBuchner/cuba/blob/master/makesharedlib.sh#L5 works?

from cuba.

Mezek avatar Mezek commented on June 2, 2024

No, it doesn't. I've been already trying to add extern coreinit cubafun_; to some header files. It removes linking errors above, but then I was unable run pycuba_demo.py.

from cuba.

JohannesBuchner avatar JohannesBuchner commented on June 2, 2024

Not sure I can be helpful here, but be sure to clear before recompiling. make clean should do it.

from cuba.

tboschi avatar tboschi commented on June 2, 2024

I have the same issue. cubafun_ is defined in CSample.c which is included in Vegas.c, Suave.c, Divonne.c, and Cuhre.c. Creating the objects for each cuba function recompiles the CSample source.
My guess is that when creating the static library libcuba.a there is no linking and so no error. On the other hand, the shared library requires the objects to be linked, but it fails for the multiple definitions.
I don't know if you have a ready solution to this, but I am trying to fix it myself. I'll submit a pull request if I succeed

from cuba.

tboschi avatar tboschi commented on June 2, 2024

I just realised that it is the veresion of cuba in this repository that is broken. I just reproduced what the makesharedlib script does (added -fPIC to the makefile) and it worked without errors.
I used this version of cuba http://www.feynarts.de/cuba/Cuba-4.2.1.tar.gz

from cuba.

JohannesBuchner avatar JohannesBuchner commented on June 2, 2024

Parallelisation in later Cuba versions causes issues with Python, but Thomas Kuhn let me know that one can disable this with a Makefile flag.

@tboschi can you have a look at this and see if it works with pycuba?

from cuba.

tboschi avatar tboschi commented on June 2, 2024

I am not very familiar with pycuba to be honest, but if I found some time I can have a look. Are there specific tests I can do to see if pycuba works as expected?

from cuba.

Related Issues (11)

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.