Comments (7)
Could you please test if including -fcommon in https://github.com/JohannesBuchner/cuba/blob/master/makesharedlib.sh#L5 works?
from cuba.
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.
Not sure I can be helpful here, but be sure to clear before recompiling. make clean
should do it.
from cuba.
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.
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.
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.
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)
- Undefined log_finite HOT 10
- How to integrate a function with parameter? HOT 1
- cert expired for `feynarts.de` HOT 1
- problem with the creation of libcuba.so HOT 2
- Upgrade to 4.2 HOT 2
- userdata HOT 5
- xgiven can't be used HOT 3
- Potential NDIM related bug in Cuba-Cuhre HOT 1
- Fails to compile with gcc 11.2.0 HOT 5
- libcuba.a file build problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuba.