[MacPorts] #55415: cmake @3.10.1 does not build on PPC Tiger, Mac OS X 10.4.11, due to various issues building libuv
MacPorts
noreply at macports.org
Thu Mar 22 22:12:02 UTC 2018
#55415: cmake @3.10.1 does not build on PPC Tiger, Mac OS X 10.4.11, due to various
issues building libuv
------------------------+-----------------------
Reporter: ballapete | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords: tiger
Port: cmake |
------------------------+-----------------------
Comment (by ballapete):
With two little paches and `configure.cppflags-append -D_NETINET_TCP_H_=1`
the `configure` step came quite far and reached to:
{{{
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /opt/local/bin/g++-mp-6
-- Check for working CXX compiler: /opt/local/bin/g++-mp-6 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking if compiler supports C11 _Thread_local
-- Checking if compiler supports C11 _Thread_local - yes
-- Checking if compiler supports C++14 cstdio
-- Checking if compiler supports C++14 cstdio - yes
-- Checking if compiler supports C++ fallthrough
-- Checking if compiler supports C++ fallthrough - no
-- Checking if compiler supports C++ gnu_fallthrough
-- Checking if compiler supports C++ gnu_fallthrough - no
-- Checking if compiler supports C++ attribute_fallthrough
-- Checking if compiler supports C++ attribute_fallthrough - no
-- Checking if compiler supports C++ make_unique
-- Checking if compiler supports C++ make_unique - no
-- Checking if compiler supports C++ unique_ptr
-- Checking if compiler supports C++ unique_ptr - no
CMake Error at CMakeLists.txt:79 (message):
The C++ compiler does not support C++11 (e.g. std::unique_ptr).
-- Configuring incomplete, errors occurred!
See also
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3/CMakeFiles/CMakeOutput.log".
See also
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3"
&& ./configure --prefix=/opt/local --docdir=share/doc/cmake --parallel=1
--init=/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3/macports.cmake
--no-system-jsoncpp --no-system-librhash --no-system-libs --no-qt-gui
}}}
The two `CMake*.log` files do not seem to contain anything useful, in
`CMakeError.log` I only find:
{{{
71 Determining if compiler supports C++ unique_ptr failed with the
following output:
72 Change Dir:
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3/CMakeFiles/CMakeTmp
73
74 Run Build Command:"/opt/local/bin/gmake" "cmTC_ccf87/fast"
75 gmake -f CMakeFiles/cmTC_ccf87.dir/build.make
CMakeFiles/cmTC_ccf87.dir/build
76 gmake[1]: Entering directory
'/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3/CMakeFiles/CMakeTmp'
77 Building CXX object
CMakeFiles/cmTC_ccf87.dir/cm_cxx_unique_ptr.cxx.o
78 /opt/local/bin/g++-mp-6 -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0
-m32 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
-std=gnu++14 -o CMakeFiles/cmTC_ccf87.dir/cm_cxx_unique_ptr.cxx.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3/Source/Checks/cm_cxx_unique_ptr.cxx
79 Linking CXX executable cmTC_ccf87
80
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3/Bootstrap.cmk/cmake
-E cmake_link_script CMakeFiles/cmTC_ccf87.dir/link.txt --verbose=1
81 /opt/local/bin/g++-mp-6 -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -m32
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
-Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names
CMakeFiles/cmTC_ccf87.dir/cm_cxx_unique_ptr.cxx.o -o cmTC_ccf87
82 ld: warning: object file compiled with -mlong-branch which is no
longer needed. To remove this warning, recompile without -mlong-branch:
/opt/local/lib/gcc6/gcc/ppc-apple-darwin8/6.4.0/crt3.o
83 gmake[1]: Leaving directory
'/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.10.3/CMakeFiles/CMakeTmp'
}}}
The mentioned `CMakeLists.txt` has:
{{{
71 if(NOT CMake_TEST_EXTERNAL_CMAKE)
72 # include special compile flags for some compilers
73 include(CompileFlags.cmake)
74
75 # check for available C++ features
76 include(${CMake_SOURCE_DIR}/Source/Checks/cm_cxx_features.cmake)
77
78 if(NOT CMake_HAVE_CXX_UNIQUE_PTR)
79 message(FATAL_ERROR "The C++ compiler does not support C++11
(e.g. std::unique_ptr).")
80 endif()
81 endif()
}}}
I am lost now…
--
Ticket URL: <https://trac.macports.org/ticket/55415#comment:29>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list