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

ERROR: Inconsistency between flag object and registration for flag 'v', likely due to duplicate flags or an ODR #4543

Open
yurivict opened this issue Feb 17, 2025 · 3 comments
Assignees
Labels
Lang: C++ Native implementation issue
Milestone

Comments

@yurivict
Copy link

What version of OR-Tools and what language are you using?
Version: 9.8
Language: C++

What did you do?
Run the openroad program that links to or-tools.

What did you expect to see
n/a

What did you see instead?

$ openroad 
ERROR: Inconsistency between flag object and registration for flag 'v', likely due to duplicate flags or an ODR violation. Relevant files: wrkdirs/usr/ports/math/or-tools/work/or-tools-9.8/ortools/base/vlog_is_on.cc and /wrkdirs/usr/ports/devel/abseil/work/abseil-cpp-20240722.0/absl/log/flags.cc

Anything else we should know about your project / environment

abseil-20240722.0
FreeBSD 14.2
We can't upgrade or-tools because it has abseil incompatibilities.

@lperron
Copy link
Collaborator

lperron commented Feb 17, 2025

You need at least 9.12.
We have split all dependencies from the main dll.

@lperron
Copy link
Collaborator

lperron commented Feb 17, 2025

Note: we just spent 4 months fixing that recurring ODR that happens when protobuf and/or abseil are imported as a dll and as a lib.

@Mizux Mizux self-assigned this Feb 17, 2025
@Mizux Mizux added the Lang: C++ Native implementation issue label Feb 17, 2025
@Mizux Mizux added this to the v9.13 milestone Feb 17, 2025
@Mizux
Copy link
Collaborator

Mizux commented Feb 17, 2025

FYI v9.12 is using abseil 20240722.0 ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lang: C++ Native implementation issue
Projects
None yet
Development

No branches or pull requests

3 participants