While building http://www.openusd.org/ I get the following error. This is specifically triggered when PXR_BUILD_MONOLITH option is set. I couldn't find anything about this in the mailing-list so is this something I can deal with? This is a problem for both base/ports clang.
[1/91] : && /usr/ports/pobj/usd-20.11/bin/c++ -fPIC -Wall -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-command-line-argument -O2 -pipe -DNDEBUG -shared -Wl,-soname,libusd_ms.so -o libusd_ms.so CMakeFiles/usd_ms.dir/usd_ms.cpp.o -L/usr/ports/pobj/usd-20.11/build-amd64/pxr -L/usr/lib -L/usr/local/lib -Wl,-z,origin,-rpath,::::::::::: -Wl,-force_load -lusd_m -lm -ltbb -ltbb -ltbb -ltbb -ltbb -ltbb -ltbb -ltbb -ltbb -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib && : FAILED: libusd_ms.so : && /usr/ports/pobj/usd-20.11/bin/c++ -fPIC -Wall -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-command-line-argument -O2 -pipe -DNDEBUG -shared -Wl,-soname,libusd_ms.so -o libusd_ms.so CMakeFiles/usd_ms.dir/usd_ms.cpp.o -L/usr/ports/pobj/usd-20.11/build-amd64/pxr -L/usr/lib -L/usr/local/lib -Wl,-z,origin,-rpath,::::::::::: -Wl,-force_load -lusd_m -lm -ltbb -ltbb -ltbb -ltbb -ltbb -ltbb -ltbb -ltbb -ltbb -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib && : ld: error: unknown argument '-force_load' clang-10: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. *** Error 1 in /usr/ports/mystuff/graphics/usd (/usr/ports/devel/cmake/cmake.port.mk:36 'do-build': @cd /usr/ports/pobj/usd-20.11/build-amd6...) *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2921 '/usr/ports/pobj/usd-20.11/build-amd64/.build_done': @cd /usr/ports/mystuff/...) *** Error 2 in /usr/ports/mystuff/graphics/usd (/usr/ports/infrastructure/mk/bsd.port.mk:2584 'build': @lock=usd-20.11; export _LOCKS_HELD=...) https://github.com/imageworks/OpenShadingLanguage/ another port I'm working on, links with clang-cpp from devel/llvm. After successfully building blender with it enabled and run-testing I get some linking errors. Know that blender doesn't link with llvm in anyway, it is only a builddep and base llvm works fine. How could this come about? As far as I can guess another dep which links with base llvm could cause this but none of the dependencies of blender do so. blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI blender-bin:/usr/lib/libLLVM.so.4.0: /usr/local/lib/libLLVM-10.so : WARNING: symbol(_ZTVNSt3__110__function6__funcI CommandLine Error: Option 'rng-seed' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options