Skip to content
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

Python bindings fail to build on 32-bit architectures: SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32 #2130

Closed
yurivict opened this issue Aug 6, 2020 · 2 comments
Assignees
Labels
Bug Feature Request Missing Feature/Wrapper OS: FreeBSD FreeBSD OS
Milestone

Comments

@yurivict
Copy link

yurivict commented Aug 6, 2020

python/ortools/algorithms/knapsack_solverPYTHON_wrap.cxx:2818:3: error: "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
# error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
  ^

FreeBSD 12.1
i386

@Mizux
Copy link
Collaborator

Mizux commented Aug 6, 2020

32 bits is not supported since few releases already...

@Mizux Mizux closed this as completed Aug 6, 2020
@Mizux Mizux added the Feature Request Missing Feature/Wrapper label Aug 6, 2020
@Mizux Mizux added this to the v7.9 milestone Aug 6, 2020
@Mizux
Copy link
Collaborator

Mizux commented Aug 6, 2020

you can look here:

if(UNIX AND NOT APPLE)
list(APPEND CMAKE_SWIG_FLAGS "-DSWIGWORDSIZE64")
endif()

https://github.com/google/or-tools/blob/stable/ortools/base/base.i should be correct...

@Mizux Mizux added OS: FreeBSD FreeBSD OS Bug labels Sep 23, 2020
@Mizux Mizux self-assigned this Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Feature Request Missing Feature/Wrapper OS: FreeBSD FreeBSD OS
Projects
None yet
Development

No branches or pull requests

2 participants