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)
- [BUG] New and exciting linking errors with 11 and previously working code HOT 5
- [BUILD] nanovdb/util/cuda in NanoVDB 11 installs to invalid folder HOT 1
- [REQUEST] Provide C++20 range API for iteration HOT 4
- Obtain normal from NanoVDB's Level Set intersection (ZeroCrossing)
- Will NeuralVDB be supported as part of this project?
- [REQUEST] Primitives for bottom-up traversal of a Tree HOT 2
- Get indices from leaf in nanovdb? HOT 2
- [BUILD] Tests fail with strict-aliasing violations
- [BUILD] Clang-Cl fails to build due to RootNode.h ValueT aliasing
- Encountering Error C2039 in CreateNanoGrid.h When Integrating NanoVDB with Visual Studio 2022[BUILD]
- Clarification on Read-Only Nature of NanoVDB: Scope and Future Possibilities for Writable Features
- [REQUEST] make nanoVDB CUDA async allocation optional so it can be used on vGPU HOT 1
- [BUILD] Build will fail on some 32-bit platforms, since configure does not check for a need for `libatomic` linking
- [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
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.