-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined symbol: _ZN6casadi10differenceERKSt6vectorINS_2MXESaIS1_EES5_ #3712
Comments
Instead of using the AUR package. I've rebuilt casadi following https://github.com/casadi/casadi/wiki/InstallationLinux
|
Might be related to the SWIG version. There was a recent fix (#3540) to get CasADi to work with SWIG 4.2.1. You might want to build the |
@jaeandersson, my build two comments up does build from the main branch, and still shows the issue, right? |
Did you try a older SWIG build? I think that the one used for the CasADi binary builds is https://github.com/jaeandersson/swig/tree/matlab-customdoc |
No, I haven't tried downgrading swig yet |
I adopted casadi on AUR, and now it build fine, both on my daily desktop and in a clean docker.
@greyltc : I think you might need to ensure everything is clean and up to date on your side, and then try again from AUR. |
@nim65s I'm glad it's working for you! That means this is probably something strange in my setups then. I've got this on 3 seperate machines that are all up to date. I've built in a clean chroot. I've done a minimal build outside of makepkg (as above). It's always the same. I saw you adopted the package and made a bunch of changes, I haven't tried your new package yet. What does
I can't figure out where this symbol is coming from. I'm thinking something needs to get rebuilt, but I can't figure out what it is. |
Hum, I have no idea what is going on with this one:
|
Just to add something on this: compiling with swig-4.2.1 (the version currently used in archlinux):
while compiling with swig-4.1.0 that symbol is not present in So I am guessing this is a swig-4.2.1 issue but different from #3540 I don't know why this happen, and why this is a problem given that the symbol is defined in NB: the symbol is the same I just demangled it:
|
It seem commits from #3723 fix also this issue, using |
#3724 seems to fix this on |
Hi. I'm on Arch Linux and
import casadi
in python is borked for me with the following output:Any idea what could be going wrong here? I build casadi via the AUR package: https://aur.archlinux.org/packages/casadi
The text was updated successfully, but these errors were encountered: