[MacPorts] #71987: tigervnc fails to configure correctly with Xcode gcc
MacPorts
noreply at macports.org
Sat Feb 1 14:26:37 UTC 2025
#71987: tigervnc fails to configure correctly with Xcode gcc
--------------------------+------------------------
Reporter: barracuda156 | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: tigervnc
--------------------------+------------------------
Not sure what is wrong with the targets, but configure fails to find
active dependencies:
{{{
---> Configuring tigervnc
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/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="ppc" -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_x11_tigervnc/tigervnc/work/tigervnc-1.14.1
2025-02-01 22:13:34.365 sw_vers[43331:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- The C compiler identification is GNU 4.2.1
-- 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
2025-02-01 22:13:37.094 sw_vers[43385:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- 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
2025-02-01 22:13:37.823 sw_vers[43432:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-4.2 - skipped
-- Detecting CXX compile features
2025-02-01 22:13:38.389 sw_vers[43464:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE = MacPorts
-- VERSION = 1.14.1
-- BUILD_TIMESTAMP = 2025-01-31 09:53
-- Found ZLIB: /opt/local/lib/libz.dylib (found version "1.3.1")
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found PIXMAN: /opt/local/lib/libpixman-1.dylib
-- Found Gettext: /opt/local/bin/msgmerge (found version "0.22.5")
-- Performing Test ICONV_HAVE_WERROR
2025-02-01 22:13:39.198 sw_vers[43497:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- Performing Test ICONV_HAVE_WERROR - Failed
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
2025-02-01 22:13:39.420 sw_vers[43508:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed
-- Found Iconv: /opt/local/lib/libiconv.dylib
-- Looking for dgettext
2025-02-01 22:13:39.648 sw_vers[43519:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- Looking for dgettext - not found
-- Looking for dgettext in /opt/local/lib/libintl.dylib
2025-02-01 22:13:39.893 sw_vers[43531:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- Looking for dgettext in /opt/local/lib/libintl.dylib - not found
CMake Warning at CMakeLists.txt:174 (message):
Gettext NOT found. Native Language Support disabled.
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find AVCODEC (missing: AVCODEC_LIBRARIES
AVCODEC_INCLUDE_DIRS)
-- Could NOT find AVUTIL (missing: AVUTIL_LIBRARIES AVUTIL_INCLUDE_DIRS)
-- Could NOT find SWSCALE (missing: SWSCALE_LIBRARIES
SWSCALE_INCLUDE_DIRS)
CMake Warning at CMakeLists.txt:196 (message):
FFMPEG support can't be found
-- Found JPEG: /opt/local/lib/libjpeg.dylib (found version "80")
-- Performing Test FOUND_LIBJPEG_TURBO
2025-02-01 22:13:46.284 sw_vers[43548:903] CFPreferences: user home
directory at file://localhost/opt/local/var/macports/home/ is unavailable.
User domains will be volatile.
-- Performing Test FOUND_LIBJPEG_TURBO - Failed
-- WARNING: You are not using libjpeg-turbo. Performance will suffer.
-- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
-- Found FLTK:
/opt/local/lib/libfltk_images.dylib;/opt/local/lib/libfltk.dylib
-- Found GnuTLS: /opt/local/lib/libgnutls.dylib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found GMP: /opt/local/lib/libgmp.dylib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found NETTLE: /opt/local/lib/libnettle.dylib
-- Found HOGWEED: /opt/local/lib/libhogweed.dylib
-- Creating static libtool control file for target os
-- Creating static libtool control file for target rdr
-- Creating static libtool control file for target network
-- Creating static libtool control file for target rfb
-- Configuring done (13.0s)
-- Generating done (0.7s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_OBJCXX_COMPILER
CMAKE_OBJC_COMPILER
CMAKE_POLICY_DEFAULT_CMP0025
CMAKE_POLICY_DEFAULT_CMP0060
-- Build files have been written to:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build
---> Building tigervnc
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build"
&& /usr/bin/make -j6 -w translations dmg VERBOSE=ON
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build'
make: *** No rule to make target `translations'. Stop.
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build"
&& /usr/bin/make -j6 -w translations dmg VERBOSE=ON
Exit code: 2
}}}
This apparently happens because Xcode gcc does not accept `-Wvla` flag:
{{{
kind: "try_compile-v1"
backtrace:
- "/opt/local/share/cmake-3.31/Modules/CheckFunctionExists.cmake:93
(try_compile)"
- "CMakeLists.txt:155 (check_function_exists)"
checks:
- "Looking for dgettext"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-i3Zi6D"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-i3Zi6D"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -I/opt/local/include -std=gnu99
-Wall -Wextra -Wformat=2 -Wvla"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names"
CMAKE_MODULE_PATH:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/tigervnc-1.14.1/cmake/Modules"
CMAKE_OSX_ARCHITECTURES: "ppc"
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "LIBC_HAS_DGETTEXT"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-i3Zi6D'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_82781/fast
/usr/bin/make -f CMakeFiles/cmTC_82781.dir/build.make
CMakeFiles/cmTC_82781.dir/build
make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-i3Zi6D'
Building C object
CMakeFiles/cmTC_82781.dir/CheckFunctionExists.c.o
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -I/opt/local/include
-std=gnu99 -Wall -Wextra -Wformat=2 -Wvla -DCHECK_FUNCTION_EXISTS=dgettext
-fno-builtin-dgettext -arch ppc -mmacosx-version-min=10.6 -o
CMakeFiles/cmTC_82781.dir/CheckFunctionExists.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-i3Zi6D/CheckFunctionExists.c
cc1: error: unrecognized command line option "-Wvla"
make[1]: *** [CMakeFiles/cmTC_82781.dir/CheckFunctionExists.c.o]
Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-i3Zi6D'
make: *** [cmTC_82781/fast] Error 2
exitCode: 2
-
kind: "try_compile-v1"
backtrace:
- "/opt/local/share/cmake-3.31/Modules/CheckLibraryExists.cmake:78
(try_compile)"
- "CMakeLists.txt:161 (check_library_exists)"
checks:
- "Looking for dgettext in /opt/local/lib/libintl.dylib"
directories:
source:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-MIHPKw"
binary:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-MIHPKw"
cmakeVariables:
CMAKE_C_FLAGS: "-pipe -Os -DNDEBUG -I/opt/local/include -std=gnu99
-Wall -Wextra -Wformat=2 -Wvla"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-L/opt/local/lib
-Wl,-headerpad_max_install_names"
CMAKE_MODULE_PATH:
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/tigervnc-1.14.1/cmake/Modules"
CMAKE_OSX_ARCHITECTURES: "ppc"
CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
CMAKE_OSX_SYSROOT: "/"
CMAKE_WARN_DEPRECATED: "FALSE"
buildResult:
variable: "LIBINTL_HAS_DGETTEXT"
cached: true
stdout: |
Change Dir:
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-MIHPKw'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
/usr/bin/make -f Makefile cmTC_23d63/fast
/usr/bin/make -f CMakeFiles/cmTC_23d63.dir/build.make
CMakeFiles/cmTC_23d63.dir/build
make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-MIHPKw'
Building C object
CMakeFiles/cmTC_23d63.dir/CheckFunctionExists.c.o
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -I/opt/local/include
-std=gnu99 -Wall -Wextra -Wformat=2 -Wvla -DCHECK_FUNCTION_EXISTS=dgettext
-fno-builtin-dgettext -arch ppc -mmacosx-version-min=10.6 -o
CMakeFiles/cmTC_23d63.dir/CheckFunctionExists.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-MIHPKw/CheckFunctionExists.c
cc1: error: unrecognized command line option "-Wvla"
make[1]: *** [CMakeFiles/cmTC_23d63.dir/CheckFunctionExists.c.o]
Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_tigervnc/tigervnc/work/build/CMakeFiles/CMakeScratch
/TryCompile-MIHPKw'
make: *** [cmTC_23d63/fast] Error 2
exitCode: 2
-
kind: "try_run-v1"
backtrace:
-
"/opt/local/share/cmake-3.31/Modules/Internal/CheckSourceRuns.cmake:99
(try_run)"
- "/opt/local/share/cmake-3.31/Modules/CheckCSourceRuns.cmake:52
(cmake_check_source_runs)"
- "CMakeLists.txt:227 (check_c_source_runs)"
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71987>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list