Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596044 - amd64-fbsd profile: build fails sys-libs/libcxx-3.9.0
Summary: amd64-fbsd profile: build fails sys-libs/libcxx-3.9.0
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-03 13:59 UTC by Yuta SATOH
Modified: 2016-12-22 15:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sample patch for profiles/arch/amd64-fbsd/make.defaults (bug596044-profile.patch,372 bytes, patch)
2016-10-03 14:05 UTC, Yuta SATOH
Details | Diff
sample patch for eclass/freebsd.eclass (bug596044-eclass.patch,424 bytes, patch)
2016-10-03 14:07 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2016-10-03 13:59:53 UTC
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
Comment 1 Yuta SATOH 2016-10-03 14:05:50 UTC
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".
Comment 2 Yuta SATOH 2016-10-03 14:07:28 UTC
Created attachment 448972 [details, diff]
sample patch for eclass/freebsd.eclass

Move a special 32bit CFLAGS for sys-freebsd/*.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-10-03 14:31:25 UTC
I think it'd best to finally address this on the CMake end.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-12-22 15:21:25 UTC
This should be solved on cmake-utils end now.