Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702162 - sys-devel/distcc: 'cpp' in hosts breaks stuff via warnings when distcc-pump is not used (was: dev-util/cmake)
Summary: sys-devel/distcc: 'cpp' in hosts breaks stuff via warnings when distcc-pump i...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-06 13:22 UTC by Thomas Deutschmann (RETIRED)
Modified: 2019-12-06 13:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
CMakeOutput.log (CMakeOutput.log,58.76 KB, text/plain)
2019-12-06 13:32 UTC, Thomas Deutschmann (RETIRED)
Details
CMakeError.log (CMakeError.log,2.77 KB, text/plain)
2019-12-06 13:33 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2019-12-06 13:22:40 UTC
* Package:    dev-util/cmake-3.16.0
 * Repository: gentoo
 * Maintainer: kde@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux ncurses userland_GNU
 * FEATURES:   distcc network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking cmake-3.16.0.tar.gz to /var/tmp/portage/dev-util/cmake-3.16.0/work
>>> Source unpacked in /var/tmp/portage/dev-util/cmake-3.16.0/work
>>> Preparing source in /var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0 ...
 * Applying cmake-3.16.0_rc4-darwin-bundle.patch ...
 [ ok ]
 * Applying cmake-3.14.0_rc3-prefix-dirs.patch ...
 *     /var/tmp/portage/dev-util/cmake-3.16.0/files/cmake-3.14.0_rc3-prefix-dirs.patch: patch failed to apply without a fuzz factor, please rebase
patching file Modules/Platform/Darwin.cmake
Hunk #1 succeeded at 109 with fuzz 2 (offset -7 lines).
Hunk #2 succeeded at 133 (offset -7 lines).
Hunk #3 succeeded at 181 (offset -7 lines).
patching file Modules/Platform/UnixPaths.cmake
 [ ok ]
 * Applying cmake-3.15.0_rc2-FindBLAS.patch ...
 [ ok ]
 * Applying cmake-3.14.0_rc1-FindLAPACK.patch ...
 *     /var/tmp/portage/dev-util/cmake-3.16.0/files/cmake-3.14.0_rc1-FindLAPACK.patch: patch failed to apply without a fuzz factor, please rebase
patching file Modules/FindLAPACK.cmake
Hunk #1 succeeded at 7 with fuzz 2.
Hunk #2 succeeded at 189 (offset 4 lines).
Hunk #3 succeeded at 459 (offset 12 lines).
 [ ok ]
 * Applying cmake-3.5.2-FindQt4.patch ...
 [ ok ]
 * Applying cmake-2.8.10.2-FindPythonLibs.patch ...
 *     /var/tmp/portage/dev-util/cmake-3.16.0/files/cmake-2.8.10.2-FindPythonLibs.patch: patch failed to apply without a fuzz factor, please rebase
patching file Modules/FindPythonLibs.cmake
Hunk #1 succeeded at 117 with fuzz 2 (offset 43 lines).
 [ ok ]
 * Applying cmake-3.9.0_rc2-FindPythonInterp.patch ...
 [ ok ]
 * Hardcoded definition(s) removed in Tests/QtAutogen/UicInterface/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE ON)
 * Hardcoded definition(s) removed in Tests/RunCMake/CPack/CMakeLists.txt:
 *  set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "")
 * Hardcoded definition(s) removed in Tests/Java/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/OutDir/CMakeLists.txt:
 *    set(CMAKE_BUILD_TYPE)
 *    set(CMAKE_BUILD_TYPE Debug)
 * Hardcoded definition(s) removed in Tests/SubDirSpaces/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/SetLang/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/CMakeCommands/target_compile_features/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE ON)
 * Hardcoded definition(s) removed in Tests/JavaNativeHeaders/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/Assembler/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/FindPackageTest/CMakeLists.txt:
 *  set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/NotDefaultPrefix")
 * Hardcoded definition(s) removed in Tests/Fortran/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/CPackComponents/CMakeLists.txt:
 *    set(CMAKE_INSTALL_PREFIX "/opt/mylib")
 * Hardcoded definition(s) removed in Tests/JavaJavah/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/Qt4Deploy/CMakeLists.txt:
 *  set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/install)
 * Hardcoded definition(s) removed in Tests/JavaExportImport/BuildExport/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/JavaExportImport/InstallExport/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/JavaExportImport/Import/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in Tests/CMakeOnly/SelectLibraryConfigurations/CMakeLists.txt:
 *    set(CMAKE_BUILD_TYPE Debug)
 * Hardcoded definition(s) removed in Tests/CMakeOnly/CheckCXXCompilerFlag/CMakeLists.txt:
 *  set(CMAKE_VERBOSE_MAKEFILE 1)
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *          set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/")
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0_build"
cmake -C /var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=no -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_DOC_DIR=/share/doc/cmake-3.16.0 -DCMAKE_MAN_DIR=/share/man -DCMAKE_DATA_DIR=/share/cmake -DSPHINX_MAN=no -DSPHINX_HTML=no -DBUILD_CursesDialog=yes -DBUILD_TESTING=no -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0_build/gentoo_toolchain.cmake  /var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0
loading initial cache file /var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-g++ -- 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 needed C++17 constructs
-- Checking if compiler supports needed C++17 constructs - yes
-- 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:107 (message):
  The C++ compiler does not support C++11 (e.g.  std::unique_ptr).


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0_build/CMakeFiles/CMakeError.log".
 * ERROR: dev-util/cmake-3.16.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2355:  Called cmake-utils_src_configure
 *   environment, line  966:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-util/cmake-3.16.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/cmake-3.16.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/cmake-3.16.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-3.16.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0_build'
 * S: '/var/tmp/portage/dev-util/cmake-3.16.0/work/cmake-3.16.0'
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-12-06 13:23:38 UTC
Building fine with FEATURES=distcc-pump.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-06 13:27:23 UTC
Could you please attach build.log, and CMake files listed in output?
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-12-06 13:32:31 UTC
Created attachment 598632 [details]
CMakeOutput.log
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2019-12-06 13:33:00 UTC
Created attachment 598634 [details]
CMakeError.log
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-06 13:34:35 UTC
Here's your PEBKAC:

distcc[142] (dcc_talk_to_include_server) Warning: INCLUDE_SERVER_PORT not set - did you forget to run under 'pump'?
distcc[142] (dcc_build_somewhere) Warning: failed to get includes from include server, preprocessing locally


You've got some half-pump setup there.
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2019-12-06 13:35:24 UTC
Note: It's possible that this is a false positive. I.e. failing with

$ cat /etc/distcc/hosts
distcc1.example.net/10,cpp,lzo

but will pass with

$ cat /etc/distcc/hosts
distcc1.example.net/10

However, it's the only package I found which has problems when "cpp" is set but FEATURES=distcc-pump is not used.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-06 13:37:19 UTC
'cpp' IS pump.  You aren't supposed to set it if you don't use pump.