Opened 15 months ago
Last modified 15 months ago
#68075 new defect
transmission-qt fails to build on 10.6 Intel
Reported by: | barracuda156 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | snowleopard | Cc: | |
Port: | transmission-qt |
Description
Everything else is fine, including 10.6 PowerPC, but 10.6 Intel broken:
[ 9%] Performing build step for 'dht-cc379e406d' cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build && /usr/bin/make make[3]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build' /opt/local/bin/cmake -S/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66 -B/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build --check-build-system CMakeFiles/Makefile.cmake 0 make[3]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build' /opt/local/bin/cmake -S/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d -B/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build --check-build-system CMakeFiles/Makefile.cmake 0 /opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build/CMakeFiles /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build//CMakeFiles/progress.marks /opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build/CMakeFiles /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build//CMakeFiles/progress.marks /usr/bin/make -f CMakeFiles/Makefile2 all make[4]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build' /usr/bin/make -f CMakeFiles/dht.dir/build.make CMakeFiles/dht.dir/depend /usr/bin/make -f CMakeFiles/Makefile2 all make[5]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build' cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build/CMakeFiles/dht.dir/DependInfo.cmake --color= make[4]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build' /usr/bin/make -f CMakeFiles/natpmp.dir/build.make CMakeFiles/natpmp.dir/depend make[5]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build' cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build/CMakeFiles/natpmp.dir/DependInfo.cmake --color= make[5]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build' make[5]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build' /usr/bin/make -f CMakeFiles/dht.dir/build.make CMakeFiles/dht.dir/build /usr/bin/make -f CMakeFiles/natpmp.dir/build.make CMakeFiles/natpmp.dir/build make[5]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build' make[5]: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build' [ 33%] Building C object CMakeFiles/natpmp.dir/getgateway.c.o [ 50%] Building C object CMakeFiles/dht.dir/dht.c.o [ 66%] Building C object CMakeFiles/natpmp.dir/natpmp.c.o /Developer/usr/bin/cc -DENABLE_STRNATPMPERR -DNATPMP_STATICLIB -pipe -I/opt/local/libexec/openssl11/include -Os -DNDEBUG -I/opt/local/libexec/openssl11/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.6 -MD -MT CMakeFiles/natpmp.dir/getgateway.c.o -MF CMakeFiles/natpmp.dir/getgateway.c.o.d -o CMakeFiles/natpmp.dir/getgateway.c.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66/getgateway.c /Developer/usr/bin/cc -pipe -I/opt/local/libexec/openssl11/include -Os -DNDEBUG -I/opt/local/libexec/openssl11/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.6 -MD -MT CMakeFiles/dht.dir/dht.c.o -MF CMakeFiles/dht.dir/dht.c.o.d -o CMakeFiles/dht.dir/dht.c.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d/dht.c /Developer/usr/bin/cc -DENABLE_STRNATPMPERR -DNATPMP_STATICLIB -pipe -I/opt/local/libexec/openssl11/include -Os -DNDEBUG -I/opt/local/libexec/openssl11/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.6 -MD -MT CMakeFiles/natpmp.dir/natpmp.c.o -MF CMakeFiles/natpmp.dir/natpmp.c.o.d -o CMakeFiles/natpmp.dir/natpmp.c.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66/natpmp.c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d/dht.c:38:20: error: stdarg.h: No such file or directory -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /Developer/usr/bin/c++ make[5]: *** [CMakeFiles/dht.dir/dht.c.o] Error 1 make[5]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build' make[4]: *** [CMakeFiles/dht.dir/all] Error 2 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build' make[3]: *** [all] Error 2 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/dht-cc379e406d/src/dht-cc379e406d-build' make[2]: *** [third-party/dht-cc379e406d/src/dht-cc379e406d-stamp/dht-cc379e406d-build] Error 2 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build' make[1]: *** [CMakeFiles/dht-cc379e406d.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Linking C static library libnatpmp.a /opt/local/bin/cmake -P CMakeFiles/natpmp.dir/cmake_clean_target.cmake /opt/local/bin/cmake -E cmake_link_script CMakeFiles/natpmp.dir/link.txt --verbose=ON /Developer/usr/bin/ar qc libnatpmp.a CMakeFiles/natpmp.dir/getgateway.c.o CMakeFiles/natpmp.dir/natpmp.c.o /Developer/usr/bin/ranlib libnatpmp.a make[5]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build' [100%] Built target natpmp make[4]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build' /opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build/CMakeFiles 0 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build' cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-build && /opt/local/bin/cmake -E touch /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/natpmp-cf7f452d66/src/natpmp-cf7f452d66-stamp/natpmp-cf7f452d66-build -- Check for working CXX compiler: /Developer/usr/bin/c++ - broken CMake Error at /opt/local/share/cmake-3.24/Modules/CMakeTestCXXCompiler.cmake:62 (message): The C++ compiler "/Developer/usr/bin/c++" is not able to compile a simple test program. It fails with the following output: Change Dir: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/utp-7c4f19abdf/src/utp-7c4f19abdf-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_a3fcb/fast && /usr/bin/make -f CMakeFiles/cmTC_a3fcb.dir/build.make CMakeFiles/cmTC_a3fcb.dir/build Building CXX object CMakeFiles/cmTC_a3fcb.dir/testCXXCompiler.cxx.o /Developer/usr/bin/c++ -pipe -I/opt/local/libexec/openssl11/include -Os -fno-exceptions -DNDEBUG -I/opt/local/libexec/openssl11/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -stdlib=libc++ -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.6 -o CMakeFiles/cmTC_a3fcb.dir/testCXXCompiler.cxx.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/utp-7c4f19abdf/src/utp-7c4f19abdf-build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx cc1plus: error: unrecognized command line option "-stdlib=libc++" make[4]: *** [CMakeFiles/cmTC_a3fcb.dir/testCXXCompiler.cxx.o] Error 1 make[3]: *** [cmTC_a3fcb/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project) -- Configuring incomplete, errors occurred!
Change History (4)
comment:1 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 follow-up: 3 Changed 15 months ago by aeiouaeiouaeiouaeiouaeiouaeiou
Lion buildbot is related to this issue too:
---> Configuring transmission-qt DEBUG: Preferred compilers: macports-clang-15 macports-clang-14 macports-clang-13 macports-clang-12 macports-clang-11 macports-clang-10 macports-clang-9.0 macports-clang-8.0 macports-clang-7.0 macports-clang-6.0 macports-clang-5.0 macports-clang-3.7 macports-clang-3.4 DEBUG: Using compiler 'MacPorts Clang 15'
But later CMake keeps choosing the system compiler:
[ 7%] Performing configure step for 'utp-7c4f19abdf' cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/utp-7c4f19abdf/src/utp-7c4f19abdf-build && /opt/local/bin/cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE:PATH= "-DCMAKE_C_FLAGS:STRING=-pipe -I/opt/local/libexec/openssl11/include -Os -DNDEBUG -I/opt/local/libexec/openssl11/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include" "-DCMAKE_CXX_FLAGS:STRING=-pipe -I/opt/local/libexec/openssl11/include -Os -fno-exceptions -DNDEBUG -I/opt/local/libexec/openssl11/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -stdlib=libc++" -DCMAKE_BUILD_TYPE:STRING=MacPorts -DCMAKE_INSTALL_PREFIX:PATH=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/utp-7c4f19abdf "-GCodeBlocks - Unix Makefiles" /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/utp-7c4f19abdf/src/utp-7c4f19abdf Re-run cmake no build system arguments -- The C compiler identification is AppleClang 4.2.0.4250028 -- The C compiler identification is AppleClang 4.2.0.4250028 -- The CXX compiler identification is AppleClang 4.2.0.4250028
comment:3 Changed 15 months ago by barracuda156
Replying to aeiouaeiouaeiouaeiouaeiouaeiou:
Lion buildbot is related to this issue too:
---> Configuring transmission-qt DEBUG: Preferred compilers: macports-clang-15 macports-clang-14 macports-clang-13 macports-clang-12 macports-clang-11 macports-clang-10 macports-clang-9.0 macports-clang-8.0 macports-clang-7.0 macports-clang-6.0 macports-clang-5.0 macports-clang-3.7 macports-clang-3.4 DEBUG: Using compiler 'MacPorts Clang 15'But later CMake keeps choosing the system compiler:
[ 7%] Performing configure step for 'utp-7c4f19abdf' cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/utp-7c4f19abdf/src/utp-7c4f19abdf-build && /opt/local/bin/cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE:PATH= "-DCMAKE_C_FLAGS:STRING=-pipe -I/opt/local/libexec/openssl11/include -Os -DNDEBUG -I/opt/local/libexec/openssl11/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include" "-DCMAKE_CXX_FLAGS:STRING=-pipe -I/opt/local/libexec/openssl11/include -Os -fno-exceptions -DNDEBUG -I/opt/local/libexec/openssl11/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -stdlib=libc++" -DCMAKE_BUILD_TYPE:STRING=MacPorts -DCMAKE_INSTALL_PREFIX:PATH=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/utp-7c4f19abdf "-GCodeBlocks - Unix Makefiles" /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-qt/transmission-qt/work/build/third-party/utp-7c4f19abdf/src/utp-7c4f19abdf Re-run cmake no build system arguments -- The C compiler identification is AppleClang 4.2.0.4250028 -- The C compiler identification is AppleClang 4.2.0.4250028 -- The CXX compiler identification is AppleClang 4.2.0.4250028
It’s perhaps it builds a bunch of stuff downloading it from GitHub, and there CMakeLists are written without any idea to respect environment settings or borrow those from master project.
Do we have a mechanism to deal with such issues? Besides of manual patching.
comment:4 Changed 15 months ago by kencu (Ken)
one simpler thing to try would be to set the build environment envvars to match the configure environment envvars.
the subprojects are configuring during the build phase, but the environment is not fully set up then, so they are configuring with a number of defaults, like the compiler
It's not UsingTheRightCompiler.