I previously had brlcad 7.26.4 working well on FreeBSD but recent changes
to LLVM introduced a bug that causes the compilation to fail.
Now the compilation chokes on this linker flang [-debugger-tune=gdb]
It's fixed upstream and there's a patch but that's a bit extreme to ask
users to apply this patch.
I tried finding where that flag is set so that I can just remove it for
FreeBSD since LLVM is shipped with FreeBSD and not GCC.
Could anyone here help me find where this change was introduced?
**********************************************************
*** Configuring BRL-CAD Release 7.26.4, Build 20180825 ***
**********************************************************
-- Could NOT find Threads (missing: Threads_FOUND)
-- Could NOT find Threads (missing: Threads_FOUND)
-- Could NOT find Threads (missing: Threads_FOUND)
-- Found ZLIB: zlib
-- Could NOT find Threads (missing: Threads_FOUND)
-- Could NOT find Threads (missing: Threads_FOUND)
-- Found ZLIB:
/usr/ports/cad/brlcad/work/brlcad-7.26.4/src/other/libz;/usr/ports/cad/brlcad/work/.build/src/other/libz
CMake Error at misc/CMake/BRLCAD_Util.cmake:90 (_message):
Could not build hostname reporting utility: Change Dir:
/usr/ports/cad/brlcad/work/.build/CMakeTmp/CMakeFiles/CMakeTmp
Run Build Command:"/usr/local/bin/gmake" "cmTC_58aaf/fast"
gmake[1]: Entering directory
'/usr/ports/cad/brlcad/work/.build/CMakeTmp/CMakeFiles/CMakeTmp'
/usr/local/bin/gmake -f CMakeFiles/cmTC_58aaf.dir/build.make
CMakeFiles/cmTC_58aaf.dir/build
gmake[2]: Entering directory
'/usr/ports/cad/brlcad/work/.build/CMakeTmp/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_58aaf.dir/report_hostname.c.o
/usr/bin/cc -DHAVE_UNISTD_H -pipe -fno-strict-aliasing -fno-common
-fexceptions -std=gnu99 -m64 -g -ggdb3 -Qunused-arguments -O3
-march=native
-finline-functions -flto -fno-omit-frame-pointer -fPIE -o
CMakeFiles/cmTC_58aaf.dir/report_hostname.c.o -c
/usr/ports/cad/brlcad/work/.build/CMakeTmp/report_hostname.c
Linking C executable cmTC_58aaf
/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_58aaf.dir/link.txt --verbose=1
/usr/bin/cc -pipe -fno-strict-aliasing -fno-common -fexceptions -std=gnu99
-m64 -g -ggdb3 -Qunused-arguments -O3 -march=native -finline-functions
-flto -fno-omit-frame-pointer
CMakeFiles/cmTC_58aaf.dir/report_hostname.c.o
-o cmTC_58aaf
/usr/bin/ld: error: --plugin-opt: unknown option: -debugger-tune=gdb
cc: error: linker command failed with exit code 1 (use -v to see
invocation)
gmake[2]: *** [CMakeFiles/cmTC_58aaf.dir/build.make:98: cmTC_58aaf] Error
1
gmake[2]: Leaving directory
'/usr/ports/cad/brlcad/work/.build/CMakeTmp/CMakeFiles/CMakeTmp'
gmake[1]: *** [Makefile:126: cmTC_58aaf/fast] Error 2
gmake[1]: Leaving directory
'/usr/ports/cad/brlcad/work/.build/CMakeTmp/CMakeFiles/CMakeTmp'
Call Stack (most recent call first):
CMakeLists.txt:3047 (message)
-- Configuring incomplete, errors occurred!
See also "/usr/ports/cad/brlcad/work/.build/CMakeFiles/CMakeOutput.log".
See also "/usr/ports/cad/brlcad/work/.build/CMakeFiles/CMakeError.log".
*** Error code 1
Stop.
--------------------------------
Best,
Owen
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel