-
Notifications
You must be signed in to change notification settings - Fork 626
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
-isystem /usr/include doesn't work with gcc6 #144
Comments
Since |
I can reproduce this with gcc 9.1. cmake ../src -DCMAKE_NO_SYSTEM_FROM_IMPORTED:BOOL=TRUE This is the first time I faced this in CMake, probably has to do with the way (non standard?) OpenVDB is importing targets. |
Thanks for the trick @phcerdan, same happens here for llvm builds on openSUSE Tumbleweed (a rolling release). Here's the public build: https://build.opensuse.org/package/live_build_log/home:frispete:blender/openvdb/openSUSE_Tumbleweed/x86_64 A further note on packaging: it happens, that the library base is not /usr/lib for some 64bit distributions. |
Shouldn't the usage of concerned cmake flag be mentioned in README building section? |
More proper fix may be removing https://github.com/AcademySoftwareFoundation/openvdb/blob/master/cmake/FindIlmBase.cmake#L325 (and do same thing for FindOpenEXR.cmake) This path is expanded to I have confirmed OpenVDB compiles fine at least on Ubuntu 18.04 by deleting these include paths. |
Same issue on master commit f077a14 |
I'm compiling on Arch Linux, and am getting dependencies from Arch's package manager. Headers are stored in /usr/include. I've configured all my header directories using the helpful instructions at the top of the Makefile.
However, I run into errors that stdlib.h cannot be found. I traced it to this issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129#c1
So I've gone and commented out most of the *_INCL_DIR variables, since they end up in -isystem arguments. That works, for the most part, except when those variables are needed for other reasons, in which case I go and delete the -isystem line.
I've been able to get openvdb to compile, but am not sure how I'd fix the Makefile to handle more general cases, like people using gcc < 6
Any advice?
The text was updated successfully, but these errors were encountered: