[MacPorts] #48331: x265 fails to install due to CMAKE_CXX_COMPILER_ID being unset
MacPorts
noreply at macports.org
Sun Jul 12 10:45:43 PDT 2015
#48331: x265 fails to install due to CMAKE_CXX_COMPILER_ID being unset
------------------------+-------------------------
Reporter: jeremyhu@… | Owner: michaelld@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Keywords: | Port: cmake
------------------------+-------------------------
{{{
$ sudo port -v -s upgrade ffmpeg
---> Computing dependencies for x265.
---> Configuring x265
-- cmake version 3.2.3
-- Detected x86 target processor
-- Could NOT find NUMA (missing: NUMA_ROOT_DIR NUMA_INCLUDE_DIR
NUMA_LIBRARY)
CMake Error at CMakeLists.txt:101 (if):
if given arguments:
"STREQUAL" "Clang"
Unknown arguments specified
-- Configuring incomplete, errors occurred!
See also
"/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_multimedia_x265/x265/work/build/CMakeFiles/CMakeOutput.log".
See also
"/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_multimedia_x265/x265/work/build/CMakeFiles/CMakeError.log".
Command failed: cd
"/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_multimedia_x265/x265/work/build"
&& /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local
-DCMAKE_OSX_ARCHITECTURES="x86_64;i386" -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH=/opt/local/lib
-DCMAKE_INSTALL_NAME_DIR=/opt/local/lib
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr"
-DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules
-DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG"
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.5"
-DCMAKE_OSX_SYSROOT="/"
/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_multimedia_x265/x265/work/x265_1.7/source
Exit code: 1
Error: Failed to configure x265: configure failure: command execution
failed
Error: See
/opt/local/var/macports/logs/_Users_jeremy_src_macports_trunk_dports_multimedia_x265/x265/main.log
for details.
Error: Problem while installing x265
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
}}}
CMakeLists.txt is doing:
{{{
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
set(CLANG 1)
endif()
}}}
So it seems that cmake isn't setting CMAKE_CXX_COMPILER_ID for some
reason.
This was seen on Leopard using:
{{{
default_compilers macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-
gcc-4.2 gcc-4.0
cxx_stdlib libstdc++
delete_la_files yes
}}}
And it was also seen on Yosemite with Xcode 7. I suspect cmake is perhaps
failing to parse --version output for some reason. Eg for the Leopard
case:
{{{
$ /opt/local/bin/clang++-mp-3.4 --version
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: x86_64-apple-darwin9.8.0
Thread model: posix
}}}
--
Ticket URL: <https://trac.macports.org/ticket/48331>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list