-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[QUESTION] pybind11+eigen warning in O2 optimization with gcc #3014
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
Comments
I am having the same issue New install of Ubuntu 22.04,
|
@petrochemical I hit this during compiling Open3D, and I found that adding -flto fixes the issue somehow... |
A fix for this issue war merged with #5516 but not yet part of a release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for maintaining this project. I love it.
When I compile the ode below, mainly involved with the use of Eigen+Pybind11 I have unexpected compilation warnings appearing:
I compile it with:
g++ -Wall -c -O2 -I $EIGEN_INCLUDE_PATH -I $PYBIND11_INCLUDE_PATH -I $PYTHON_INCLUDE_PATH test.cc
to obtain:
This suggest a temporary object is partially initiallized during the cast (or confuses the compiler)
I am trying to remove such worrying warnings for sanity. Any help is really appreciated.
Information of the system setup:
eigen: 391094c50743f28f9174f455661f650bf07e0177
pybind11: f61855b
python-3.8
compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110
The text was updated successfully, but these errors were encountered: