The following message is displayed and fails to compile. >>> Working in BUILD_DIR: "/var/tmp/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src-abi_x86_32.x86_fbsd" cmake -C /var/tmp/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src-abi_x86_32.x86_fbsd/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_LIBDIR_SUFFIX= -DLIBCXX_LIBDIR_SUFFIX=32 -DLIBCXX_ENABLE_SHARED=ON -DLIBCXX_ENABLE_STATIC=yes -DLIBCXX_CXX_ABI=libcxxrt -DLIBCXX_CXX_ABI_INCLUDE_PATHS=/usr/include/libcxxrt -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF -DLIBCXX_HAS_MUSL_LIBC=no -DLIBCXX_HAS_GCC_S_LIB=yes -DLIBCXX_INCLUDE_TESTS=no -DCMAKE_SHARED_LINKER_FLAGS= -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src-abi_x86_32.x86_fbsd/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src-abi_x86_32.x86_fbsd/gentoo_toolchain.cmake /var/tmp/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src loading initial cache file /var/tmp/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src-abi_x86_32.x86_fbsd/gentoo_common_config.cmake -- Configuring for standalone build. -- Found LLVM_CONFIG as /usr/bin/llvm-config -- Found PythonInterp: /usr/bin/python (found version "3.4.5") -- Sphinx disabled. -- The CXX compiler identification is unknown -- The C compiler identification is unknown CMake Error at CMakeLists.txt:26 (project): The CMAKE_CXX_COMPILER: clang++;-m32;-DCOMPAT_32BIT;-B/usr/lib32;-L/usr/lib32 is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:26 (project): The CMAKE_C_COMPILER: clang;-m32;-DCOMPAT_32BIT;-B/usr/lib32;-L/usr/lib32 is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src-abi_x86_32.x86_fbsd/CMakeFiles/CMakeOutput.log". See also "/var/tmp/portage/sys-libs/libcxx-3.9.0/work/libcxx-3.9.0.src-abi_x86_32.x86_fbsd/CMakeFiles/CMakeError.log". * ERROR: sys-libs/libcxx-3.9.0::gentoo failed (configure phase): * cmake failed
Created attachment 448970 [details, diff] sample patch for profiles/arch/amd64-fbsd/make.defaults Compile is successful when you change to CFLAGS_x86_fbsd="-m32" from CFLAGS_x86_fbsd="-m32 -DCOMPAT_32BIT -B/usr/lib32 -L/usr/lib32".
Created attachment 448972 [details, diff] sample patch for eclass/freebsd.eclass Move a special 32bit CFLAGS for sys-freebsd/*.
I think it'd best to finally address this on the CMake end.
This should be solved on cmake-utils end now.