-
Notifications
You must be signed in to change notification settings - Fork 392
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
Unexpected -O2 flag when building on Debug with Conda #2449
Comments
These are the default compilation flags of conda. Have you checked that? |
I agree that the problem comes from conda, not Pinocchio. But it seems to me that Pinocchio's CI is impacted. |
Yes, you’re correct. I will let @jorisv answer the question. |
@abussy-aldebaran One quick solution could be to clear from the env variable -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /opt/homebrew/Caskroom/miniconda/base/envs/general-latest-eigen/include after calling: echo $CXXFLAGS |
I found: Apparently, the meta-package
If I understand correctly, a solution would be to install |
Hello @abussy-aldebaran, We are aware of this issue and I find it really annoying. I'm working to add a pixi support to all our project. |
Hello @abussy-aldebaran, The Pixi PR is merged #2459 If you use Pixi to manage your dependencies you will not have this issue anymore. |
Hi,
Bug description
When building pinocchio in Debug, on Ubuntu, using the conda environment installed through
the
-O2
flag is set (among other flags).Expected behavior
The
-O2
flag is not set.Reproduction steps
It can be seen on pinocchio CI with a failed Debug build job. For example:
https://github.com/stack-of-tasks/pinocchio/actions/runs/11182992289/job/31090536335#step:7:1979
The probable origin of this bug can be seen by executing
env
with the conda environment activated:Additional context
While debugging my application using pinocchio, I saw some variables optimized out. After investigating, I found out that my debug build was using the
-O2
flag.I'm pretty sure it comes from the environment variables set by conda. Searching on the web, I found:
conda/conda#10195
conda/conda-build#3481
https://docs.conda.io/projects/conda-build/en/latest/user-guide/environment-variables.html
But my understanding of conda is too basic to know what to do of it.
So I tried to find if pinocchio's CI was handling this and how, and I found out it isn't.
Screenshots
From pinocchio CI, https://github.com/stack-of-tasks/pinocchio/actions/runs/11182992289/job/31090536335#step:7:1979
System
The text was updated successfully, but these errors were encountered: