[MacPorts] #67446: pika is stubbornly broken with Clang on 1
MacPorts
noreply at macports.org
Thu May 18 02:38:40 UTC 2023
#67446: pika is stubbornly broken with Clang on 1
--------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: x86_64 | Port: pika
--------------------------+--------------------
It was failing before due to missing `filesystem`. After adding a setting
to use `legacysupport` for Macports `libcxx`, it began failing on
configure with atomics checks:
{{{
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/local/bin/mpicxx-mpich-mp -
skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using C++17
-- CMake version: 3.24.4
-- pika version: 0.15.0
-- Nice threadlevel is disabled.
-- Stack traces are enabled.
-- Compiling with the native toolset
-- Performing Test PIKA_WITH_CXX11_ATOMIC - Failed
-- Performing Test PIKA_WITH_CXX11_ATOMIC (with -latomic) - Failed
-- Test failed, detailed output:
Change Dir:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_pika/pika/work/build/CMakeFiles/config_tests/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_5c78e/fast &&
/Library/Developer/CommandLineTools/usr/bin/make -f
CMakeFiles/cmTC_5c78e.dir/build.make CMakeFiles/cmTC_5c78e.dir/build
Building CXX object CMakeFiles/cmTC_5c78e.dir/cxx11_std_atomic.cpp.o
/opt/local/bin/mpicxx-mpich-mp -pipe
-I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG
-isystem/opt/local/include/libcxx/v1 -nostdinc++
-isystem/opt/local/include/LegacySupport
-I/opt/local/libexec/boost/1.81/include -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -Werror
-arch x86_64 -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-
min=10.14 -std=c++17 -MD -MT
CMakeFiles/cmTC_5c78e.dir/cxx11_std_atomic.cpp.o -MF
CMakeFiles/cmTC_5c78e.dir/cxx11_std_atomic.cpp.o.d -o
CMakeFiles/cmTC_5c78e.dir/cxx11_std_atomic.cpp.o -c
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_pika/pika/work/pika-0.15.0/cmake/tests/cxx11_std_atomic.cpp
Linking CXX executable cmTC_5c78e
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_5c78e.dir/link.txt --verbose=1
/opt/local/bin/mpicxx-mpich-mp -pipe
-I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG
-isystem/opt/local/include/libcxx/v1 -nostdinc++
-isystem/opt/local/include/LegacySupport
-I/opt/local/libexec/boost/1.81/include -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -Werror
-arch x86_64 -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-
min=10.14 -Wl,-search_paths_first -Wl,-headerpad_max_install_names
-L/opt/local/libexec/boost/1.81/lib -Wl,-headerpad_max_install_names
-L/opt/local/lib -lMacportsLegacySupport -L/opt/local/lib/libcxx
-Wl,-rpath,/opt/local/lib/libgcc
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
CMakeFiles/cmTC_5c78e.dir/cxx11_std_atomic.cpp.o -o cmTC_5c78e -latomic
clang: error: argument unused during compilation: '-nostdinc++' [-Werror
,-Wunused-command-line-argument]
make[1]: *** [cmTC_5c78e] Error 1
make: *** [cmTC_5c78e/fast] Error 2
CMake Error at cmake/pika_message.cmake:51 (message):
pika needs support for C++11 std::atomic
Call Stack (most recent call first):
cmake/pika_add_config_test.cmake:234 (pika_error)
cmake/pika_add_config_test.cmake:298 (pika_add_config_test)
cmake/pika_perform_cxx_feature_tests.cmake:15
(pika_check_for_cxx11_std_atomic)
CMakeLists.txt:1076 (pika_perform_cxx_feature_tests)
-- Configuring incomplete, errors occurred!
}}}
It builds fine on 10.6.8 for `ppc` :)
--
Ticket URL: <https://trac.macports.org/ticket/67446>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list