[MacPorts] #70130: zstdConfig.cmake uses Linux flags on some macOS which breaks configure
MacPorts
noreply at macports.org
Sat Jun 1 10:42:40 UTC 2024
#70130: zstdConfig.cmake uses Linux flags on some macOS which breaks configure
--------------------------+---------------------------------
Reporter: barracuda156 | Owner: MarcusCalhoun-Lopez
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: | Port: zstdConfig.cmake
--------------------------+---------------------------------
This fails with a silly error:
{{{
---> Configuring zstdConfig.cmake
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build"
&& /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles"
-DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local"
-DCMAKE_INSTALL_NAME_DIR="/opt/local/lib"
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC"
-DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC"
-DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW
-DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make
-DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
-DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev
-DCMAKE_OSX_ARCHITECTURES="" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6"
-DCMAKE_OSX_SYSROOT="/"
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake
-- The C compiler identification is GNU 4.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /Developer/usr/bin/gcc-4.2
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-4.2 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-4.2 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ZSTD VERSION: 1.5.6
-- Performing Test C_FLAG_WALL
-- Performing Test C_FLAG_WALL - Success
-- Performing Test CXX_FLAG_WALL
-- Performing Test CXX_FLAG_WALL - Success
-- Performing Test C_FLAG_WEXTRA
-- Performing Test C_FLAG_WEXTRA - Success
-- Performing Test CXX_FLAG_WEXTRA
-- Performing Test CXX_FLAG_WEXTRA - Success
-- Performing Test C_FLAG_WUNDEF
-- Performing Test C_FLAG_WUNDEF - Success
-- Performing Test CXX_FLAG_WUNDEF
-- Performing Test CXX_FLAG_WUNDEF - Success
-- Performing Test C_FLAG_WSHADOW
-- Performing Test C_FLAG_WSHADOW - Success
-- Performing Test CXX_FLAG_WSHADOW
-- Performing Test CXX_FLAG_WSHADOW - Success
-- Performing Test C_FLAG_WCAST_ALIGN
-- Performing Test C_FLAG_WCAST_ALIGN - Success
-- Performing Test CXX_FLAG_WCAST_ALIGN
-- Performing Test CXX_FLAG_WCAST_ALIGN - Success
-- Performing Test C_FLAG_WCAST_QUAL
-- Performing Test C_FLAG_WCAST_QUAL - Success
-- Performing Test CXX_FLAG_WCAST_QUAL
-- Performing Test CXX_FLAG_WCAST_QUAL - Success
-- Performing Test C_FLAG_WSTRICT_PROTOTYPES
-- Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success
-- Performing Test LD_FLAG_Z_NOEXECSTACK
-- Performing Test LD_FLAG_Z_NOEXECSTACK - Success
-- Performing Test C_FLAG_QUNUSED_ARGUMENTS
-- Performing Test C_FLAG_QUNUSED_ARGUMENTS - Failed
-- Performing Test CXX_FLAG_QUNUSED_ARGUMENTS
-- Performing Test CXX_FLAG_QUNUSED_ARGUMENTS - Failed
-- Performing Test C_FLAG_WA_NOEXECSTACK
-- Performing Test C_FLAG_WA_NOEXECSTACK - Failed
-- Performing Test CXX_FLAG_WA_NOEXECSTACK
-- Performing Test CXX_FLAG_WA_NOEXECSTACK - Failed
-- CMAKE_INSTALL_PREFIX: /opt/local
-- CMAKE_INSTALL_LIBDIR: lib
-- ZSTD_LEGACY_SUPPORT defined!
-- ZSTD_MULTITHREAD_SUPPORT is enabled
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
CMake Error at
/opt/local/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/opt/local/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:600
(_FPHSA_FAILURE_MESSAGE)
/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:226
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:134 (find_package)
-- Configuring incomplete, errors occurred!
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build"
&& /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles"
-DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local"
-DCMAKE_INSTALL_NAME_DIR="/opt/local/lib"
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC"
-DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC"
-DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW
-DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make
-DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
-DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev
-DCMAKE_OSX_ARCHITECTURES="" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6"
-DCMAKE_OSX_SYSROOT="/"
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake
Exit code: 1
Error: Failed to configure zstdConfig.cmake: configure failure: command
execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/main.log
for details.
Error: Problem while installing zstdConfig.cmake
}}}
Problem is that CMake uses Linux-specific linker flags, apparently because
the check does not work correctly:
{{{
-
kind: "try_compile-v1"
backtrace:
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckSourceCompiles.cmake:101
(try_compile)"
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckLinkerFlag.cmake:37
(cmake_check_source_compiles)"
- "/opt/local/share/cmake-3.29/Modules/CheckLinkerFlag.cmake:44
(cmake_check_linker_flag)"
- "CMakeModules/AddZstdCompilationFlags.cmake:42
(CHECK_LINKER_FLAG)"
- "CMakeModules/AddZstdCompilationFlags.cmake:79
(EnableCompilerFlag)"
- "CMakeLists.txt:58 (ADD_ZSTD_COMPILATION_FLAGS)"
checks:
- "Performing Test LD_FLAG_Z_NOEXECSTACK"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-TQuT2D"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-TQuT2D"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include -Wall
-Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "LD_FLAG_Z_NOEXECSTACK"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-TQuT2D'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_071bd/fast
/usr/bin/make -f CMakeFiles/cmTC_071bd.dir/build.make
CMakeFiles/cmTC_071bd.dir/build
Building C object CMakeFiles/cmTC_071bd.dir/src.c.o
/usr/bin/gcc-4.2 -DLD_FLAG_Z_NOEXECSTACK -pipe -Os -DNDEBUG
-isystem/opt/local/include -Wall -Wextra -Wundef -Wshadow -Wcast-align
-Wcast-qual -Wstrict-prototypes -mmacosx-version-min=10.6 -o
CMakeFiles/cmTC_071bd.dir/src.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-TQuT2D/src.c
Linking C executable cmTC_071bd
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_071bd.dir/link.txt --verbose=1
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -mmacosx-version-min=10.6 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names "-z noexecstack"
CMakeFiles/cmTC_071bd.dir/src.c.o -o cmTC_071bd
exitCode: 0
-
kind: "try_compile-v1"
backtrace:
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckSourceCompiles.cmake:101
(try_compile)"
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckCompilerFlag.cmake:18
(cmake_check_source_compiles)"
- "/opt/local/share/cmake-3.29/Modules/CheckCCompilerFlag.cmake:51
(cmake_check_compiler_flag)"
- "CMakeModules/AddZstdCompilationFlags.cmake:20
(CHECK_C_COMPILER_FLAG)"
- "CMakeModules/AddZstdCompilationFlags.cmake:81
(EnableCompilerFlag)"
- "CMakeLists.txt:58 (ADD_ZSTD_COMPILATION_FLAGS)"
checks:
- "Performing Test C_FLAG_QUNUSED_ARGUMENTS"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-nbBRvv"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-nbBRvv"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include -Wall
-Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "C_FLAG_QUNUSED_ARGUMENTS"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-nbBRvv'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_33f9a/fast
/usr/bin/make -f CMakeFiles/cmTC_33f9a.dir/build.make
CMakeFiles/cmTC_33f9a.dir/build
Building C object CMakeFiles/cmTC_33f9a.dir/src.c.o
/usr/bin/gcc-4.2 -DC_FLAG_QUNUSED_ARGUMENTS -pipe -Os -DNDEBUG
-isystem/opt/local/include -Wall -Wextra -Wundef -Wshadow -Wcast-align
-Wcast-qual -Wstrict-prototypes -mmacosx-version-min=10.6 -Qunused-
arguments -o CMakeFiles/cmTC_33f9a.dir/src.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-nbBRvv/src.c
Linking C executable cmTC_33f9a
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_33f9a.dir/link.txt --verbose=1
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -mmacosx-version-min=10.6 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack
CMakeFiles/cmTC_33f9a.dir/src.c.o -o cmTC_33f9a
powerpc-apple-darwin10-gcc-4.2.1: noexecstack: No such file or
directory
make[1]: *** [cmTC_33f9a] Error 1
make: *** [cmTC_33f9a/fast] Error 2
exitCode: 2
-
kind: "try_compile-v1"
backtrace:
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckSourceCompiles.cmake:101
(try_compile)"
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckCompilerFlag.cmake:18
(cmake_check_source_compiles)"
- "/opt/local/share/cmake-3.29/Modules/CheckCXXCompilerFlag.cmake:34
(cmake_check_compiler_flag)"
- "CMakeModules/AddZstdCompilationFlags.cmake:26
(CHECK_CXX_COMPILER_FLAG)"
- "CMakeModules/AddZstdCompilationFlags.cmake:81
(EnableCompilerFlag)"
- "CMakeLists.txt:58 (ADD_ZSTD_COMPILATION_FLAGS)"
checks:
- "Performing Test CXX_FLAG_QUNUSED_ARGUMENTS"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-MQpkAp"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-MQpkAp"
cmakeVariables:
CMAKE_CXX_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual"
CMAKE_CXX_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "CXX_FLAG_QUNUSED_ARGUMENTS"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-MQpkAp'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_d21bc/fast
/usr/bin/make -f CMakeFiles/cmTC_d21bc.dir/build.make
CMakeFiles/cmTC_d21bc.dir/build
Building CXX object CMakeFiles/cmTC_d21bc.dir/src.cxx.o
/usr/bin/g++-4.2 -DCXX_FLAG_QUNUSED_ARGUMENTS -pipe -Os -DNDEBUG
-isystem/opt/local/include -Wall -Wextra -Wundef -Wshadow -Wcast-align
-Wcast-qual -mmacosx-version-min=10.6 -Qunused-arguments -o
CMakeFiles/cmTC_d21bc.dir/src.cxx.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-MQpkAp/src.cxx
Linking CXX executable cmTC_d21bc
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_d21bc.dir/link.txt --verbose=1
/usr/bin/g++-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -mmacosx-version-
min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names
-L/opt/local/lib -Wl,-headerpad_max_install_names -z noexecstack
CMakeFiles/cmTC_d21bc.dir/src.cxx.o -o cmTC_d21bc
powerpc-apple-darwin10-g++-4.2.1: noexecstack: No such file or
directory
make[1]: *** [cmTC_d21bc] Error 1
make: *** [cmTC_d21bc/fast] Error 2
exitCode: 2
-
kind: "try_compile-v1"
backtrace:
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckSourceCompiles.cmake:101
(try_compile)"
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckCompilerFlag.cmake:18
(cmake_check_source_compiles)"
- "/opt/local/share/cmake-3.29/Modules/CheckCCompilerFlag.cmake:51
(cmake_check_compiler_flag)"
- "CMakeModules/AddZstdCompilationFlags.cmake:20
(CHECK_C_COMPILER_FLAG)"
- "CMakeModules/AddZstdCompilationFlags.cmake:82
(EnableCompilerFlag)"
- "CMakeLists.txt:58 (ADD_ZSTD_COMPILATION_FLAGS)"
checks:
- "Performing Test C_FLAG_WA_NOEXECSTACK"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-LbvkVv"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-LbvkVv"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include -Wall
-Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "C_FLAG_WA_NOEXECSTACK"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-LbvkVv'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_75973/fast
/usr/bin/make -f CMakeFiles/cmTC_75973.dir/build.make
CMakeFiles/cmTC_75973.dir/build
Building C object CMakeFiles/cmTC_75973.dir/src.c.o
/usr/bin/gcc-4.2 -DC_FLAG_WA_NOEXECSTACK -pipe -Os -DNDEBUG
-isystem/opt/local/include -Wall -Wextra -Wundef -Wshadow -Wcast-align
-Wcast-qual -Wstrict-prototypes -mmacosx-version-min=10.6 -Wa,--
noexecstack -o CMakeFiles/cmTC_75973.dir/src.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-LbvkVv/src.c
FATAL:/usr/bin/../libexec/gcc/darwin/ppc/as: I don't understand
'-' flag!
make[1]: *** [CMakeFiles/cmTC_75973.dir/src.c.o] Error 2
make: *** [cmTC_75973/fast] Error 2
exitCode: 2
-
kind: "try_compile-v1"
backtrace:
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckSourceCompiles.cmake:101
(try_compile)"
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckCompilerFlag.cmake:18
(cmake_check_source_compiles)"
- "/opt/local/share/cmake-3.29/Modules/CheckCXXCompilerFlag.cmake:34
(cmake_check_compiler_flag)"
- "CMakeModules/AddZstdCompilationFlags.cmake:26
(CHECK_CXX_COMPILER_FLAG)"
- "CMakeModules/AddZstdCompilationFlags.cmake:82
(EnableCompilerFlag)"
- "CMakeLists.txt:58 (ADD_ZSTD_COMPILATION_FLAGS)"
checks:
- "Performing Test CXX_FLAG_WA_NOEXECSTACK"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-6nQCSo"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-6nQCSo"
cmakeVariables:
CMAKE_CXX_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual"
CMAKE_CXX_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "CXX_FLAG_WA_NOEXECSTACK"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-6nQCSo'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_44f1e/fast
/usr/bin/make -f CMakeFiles/cmTC_44f1e.dir/build.make
CMakeFiles/cmTC_44f1e.dir/build
Building CXX object CMakeFiles/cmTC_44f1e.dir/src.cxx.o
/usr/bin/g++-4.2 -DCXX_FLAG_WA_NOEXECSTACK -pipe -Os -DNDEBUG
-isystem/opt/local/include -Wall -Wextra -Wundef -Wshadow -Wcast-align
-Wcast-qual -mmacosx-version-min=10.6 -Wa,--noexecstack -o
CMakeFiles/cmTC_44f1e.dir/src.cxx.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-6nQCSo/src.cxx
FATAL:/usr/bin/../libexec/gcc/darwin/ppc/as: I don't understand
'-' flag!
make[1]: *** [CMakeFiles/cmTC_44f1e.dir/src.cxx.o] Error 2
make: *** [cmTC_44f1e/fast] Error 2
exitCode: 2
-
kind: "try_compile-v1"
backtrace:
-
"/opt/local/share/cmake-3.29/Modules/Internal/CheckSourceCompiles.cmake:101
(try_compile)"
- "/opt/local/share/cmake-3.29/Modules/CheckCSourceCompiles.cmake:52
(cmake_check_source_compiles)"
- "/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:97
(CHECK_C_SOURCE_COMPILES)"
- "/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:163
(_threads_check_libc)"
- "CMakeLists.txt:134 (find_package)"
checks:
- "Performing Test CMAKE_HAVE_LIBC_PTHREAD"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-5WUKPr"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-5WUKPr"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include -Wall
-Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "CMAKE_HAVE_LIBC_PTHREAD"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-5WUKPr'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_a450d/fast
/usr/bin/make -f CMakeFiles/cmTC_a450d.dir/build.make
CMakeFiles/cmTC_a450d.dir/build
Building C object CMakeFiles/cmTC_a450d.dir/src.c.o
/usr/bin/gcc-4.2 -DCMAKE_HAVE_LIBC_PTHREAD -pipe -Os -DNDEBUG
-isystem/opt/local/include -Wall -Wextra -Wundef -Wshadow -Wcast-align
-Wcast-qual -Wstrict-prototypes -mmacosx-version-min=10.6 -o
CMakeFiles/cmTC_a450d.dir/src.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-5WUKPr/src.c
Linking C executable cmTC_a450d
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_a450d.dir/link.txt --verbose=1
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -mmacosx-version-min=10.6 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack
CMakeFiles/cmTC_a450d.dir/src.c.o -o cmTC_a450d
powerpc-apple-darwin10-gcc-4.2.1: noexecstack: No such file or
directory
make[1]: *** [cmTC_a450d] Error 1
make: *** [cmTC_a450d/fast] Error 2
exitCode: 2
-
kind: "try_compile-v1"
backtrace:
- "/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:136
(try_compile)"
- "/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:169
(_threads_check_flag_pthread)"
- "CMakeLists.txt:134 (find_package)"
checks:
- "Check if compiler accepts -pthread"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-3L6KHM"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-3L6KHM"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include -Wall
-Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "THREADS_HAVE_PTHREAD_ARG"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-3L6KHM'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_57d84/fast
/usr/bin/make -f CMakeFiles/cmTC_57d84.dir/build.make
CMakeFiles/cmTC_57d84.dir/build
Building C object CMakeFiles/cmTC_57d84.dir/CheckForPthreads.c.o
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -mmacosx-version-min=10.6 -o
CMakeFiles/cmTC_57d84.dir/CheckForPthreads.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-3L6KHM/CheckForPthreads.c
Linking C executable cmTC_57d84
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_57d84.dir/link.txt --verbose=1
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -mmacosx-version-min=10.6 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack
CMakeFiles/cmTC_57d84.dir/CheckForPthreads.c.o -o cmTC_57d84 -pthread
powerpc-apple-darwin10-gcc-4.2.1: noexecstack: No such file or
directory
make[1]: *** [cmTC_57d84] Error 1
make: *** [cmTC_57d84/fast] Error 2
exitCode: 2
-
kind: "try_compile-v1"
backtrace:
- "/opt/local/share/cmake-3.29/Modules/CheckLibraryExists.cmake:69
(try_compile)"
- "/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:112
(CHECK_LIBRARY_EXISTS)"
- "/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:175
(_threads_check_lib)"
- "CMakeLists.txt:134 (find_package)"
checks:
- "Looking for pthread_create in pthreads"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-ggaqYt"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-ggaqYt"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include -Wall
-Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "CMAKE_HAVE_PTHREADS_CREATE"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-ggaqYt'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_1777d/fast
/usr/bin/make -f CMakeFiles/cmTC_1777d.dir/build.make
CMakeFiles/cmTC_1777d.dir/build
Building C object
CMakeFiles/cmTC_1777d.dir/CheckFunctionExists.c.o
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -DCHECK_FUNCTION_EXISTS=pthread_create -mmacosx-version-
min=10.6 -o CMakeFiles/cmTC_1777d.dir/CheckFunctionExists.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-ggaqYt/CheckFunctionExists.c
Linking C executable cmTC_1777d
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_1777d.dir/link.txt --verbose=1
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -DCHECK_FUNCTION_EXISTS=pthread_create -mmacosx-version-
min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names
-L/opt/local/lib -Wl,-headerpad_max_install_names -z noexecstack
CMakeFiles/cmTC_1777d.dir/CheckFunctionExists.c.o -o cmTC_1777d
-lpthreads
powerpc-apple-darwin10-gcc-4.2.1: noexecstack: No such file or
directory
make[1]: *** [cmTC_1777d] Error 1
make: *** [cmTC_1777d/fast] Error 2
exitCode: 2
-
kind: "try_compile-v1"
backtrace:
- "/opt/local/share/cmake-3.29/Modules/CheckLibraryExists.cmake:69
(try_compile)"
- "/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:112
(CHECK_LIBRARY_EXISTS)"
- "/opt/local/share/cmake-3.29/Modules/FindThreads.cmake:176
(_threads_check_lib)"
- "CMakeLists.txt:134 (find_package)"
checks:
- "Looking for pthread_create in pthread"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-SNsF6X"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-SNsF6X"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -isystem/opt/local/include -Wall
-Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names -z noexecstack"
CMAKE_MODULE_PATH:
"/opt/local/share/cmake/Modules;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/zstd-1.5.6/build/cmake/CMakeModules"
CMAKE_OSX_ARCHITECTURES: ""
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "CMAKE_HAVE_PTHREAD_CREATE"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-SNsF6X'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_f2f4d/fast
/usr/bin/make -f CMakeFiles/cmTC_f2f4d.dir/build.make
CMakeFiles/cmTC_f2f4d.dir/build
Building C object
CMakeFiles/cmTC_f2f4d.dir/CheckFunctionExists.c.o
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -DCHECK_FUNCTION_EXISTS=pthread_create -mmacosx-version-
min=10.6 -o CMakeFiles/cmTC_f2f4d.dir/CheckFunctionExists.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_zstd/zstdConfig.cmake/work/build/CMakeFiles/CMakeScratch
/TryCompile-SNsF6X/CheckFunctionExists.c
Linking C executable cmTC_f2f4d
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_f2f4d.dir/link.txt --verbose=1
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -isystem/opt/local/include
-Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-
prototypes -DCHECK_FUNCTION_EXISTS=pthread_create -mmacosx-version-
min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names
-L/opt/local/lib -Wl,-headerpad_max_install_names -z noexecstack
CMakeFiles/cmTC_f2f4d.dir/CheckFunctionExists.c.o -o cmTC_f2f4d -lpthread
powerpc-apple-darwin10-gcc-4.2.1: noexecstack: No such file or
directory
make[1]: *** [cmTC_f2f4d] Error 1
make: *** [cmTC_f2f4d/fast] Error 2
exitCode: 2
...
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70130>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list