Comments (6)
This is a duplicate of #144
In short:
Set CMake option to not use isystem for imported targets:
cmake ../src -DCMAKE_NO_SYSTEM_FROM_IMPORTED:BOOL=TRUE
from openvdb.
The issue is given in details at: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
from openvdb.
Proper fix would be to avoid using '-isystem /usr/include' in the Makefiles
from openvdb.
hi @malaterre, have you succeed build it using gcc 6.1.1? any workaround? I don't know how to fix it by avoid using -isystem /usr/include
from openvdb.
Okay, avoiding use /usr/include
did the trick for me but still fail when building vdb_print
, etc. Here's the log
make lib install
make: Nothing to be done for 'lib'.
Building vdb_print because of libopenvdb.so.3.2.0 main.cc
g++ -std=c++0x -pthread -O3 -DNDEBUG -I . -I .. -isystem /usr/include/boost -isystem /opt/lib/openexr/include -isystem /usr/include/tbb -isystem /opt/lib/blosc/include -isystem /usr/include/log4cplus -DOPENVDB_USE_BLOSC -DOPENVDB_USE_LOG4CPLUS -DOPENVDB_USE_GLFW_3 -o vdb_print cmd/openvdb_print/main.cc -I . \
-Wl,-rpath,/opt/lib/openvdb/lib -L/home/aditia/src/blender-deps/openvdb-master/openvdb libopenvdb.so.3.2.0 \
-ldl -lm -lz -Wl,-rpath,/opt/lib/openexr/lib -L/opt/lib/openexr/lib -lHalf -Wl,-rpath,/usr/lib64 -L/usr/lib64 -ltbb -Wl,-rpath,/usr/lib64 -L/usr/lib64 -lboost_iostreams -lboost_system -Wl,-rpath,/opt/lib/blosc/lib -L/opt/lib/blosc/lib -lblosc -lz -Wl,-rpath,/usr/lib64 -L/usr/lib64 -llog4cplus -Wl,-rpath,/usr/lib64 -L/usr/lib64 -lrt -ljemalloc
/usr/bin/ld: vdb_print: hidden symbol `__cpu_model' in /usr/lib/gcc/x86_64-redhat-linux/6.1.1/libgcc.a(cpuinfo.o) is referenced by DSO
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:735: recipe for target 'vdb_print' failed
make: *** [vdb_print] Error 1
from openvdb.
Just for reference, the original post was using the Makefile based build system. I'll switch to cmake for Debian package. Thanks for help !
from openvdb.
Related Issues (20)
- [BUILD] pyopenvdb install locatiion HOT 1
- [BUILD] Python bindings fail to build for version 3.11 HOT 3
- [BUILD] OpenVDB fails to build with LLVM 18 HOT 1
- [BUILD] OpenVDB fails to build HOT 1
- [REQUEST] Make it possible to have a subset of externally built libraries for Blosc in FindBlosc.cmake
- [BUG] Square/Planar Artifacts While Volume Rendering NVDB Files Using Optix HOT 1
- [BUG] include/openvdb/TypeList.h uses std::tuple_size_v that isn't defined in C++ standards HOT 6
- meshToVolume slowdown? HOT 1
- [REQUEST] Link against specific Boost libraries rather than Boost::headers and Boost::boost
- [BUG] NanoVDB NanoGrid returns incorrect voxel size when initialized from VDB with transform
- [BUG] NanoVDB math::ZeroCrossing with ray producing incorrect results HOT 1
- [BUG] Unable to load plugin: USD.plugin
- [BUG] Unable to run nanovdb on cuda
- [BUILD] Can't build on Windows 11 CMake 3.30
- [BUG] NanoVDB `GridHandler` error HOT 1
- Link broken HOT 1
- [BUG] NanoVDB Example : openvdb_to_nanovdb_cuda Unexpected Behaviour.
- How to maintain hollowness when constructing from a hollow mesh๏ผ[REQUEST]
- How does FVDB average pooling work? HOT 2
- [Question] How to use customized grid type with PNanoVDB?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvdb.