Created attachment 713709 [details] emerge --info [ebuild R *] media-gfx/freecad-9999::gentoo [9999::waebbl] USE="addonmgr -cloud -debug fem -headless idf image inspection material openscad part-design path -pcl -plot points raytracing robot -ship show surface techdraw -test tux" PYTHON_SINGLE_TARGET="(-python3_7%) python3_8" 0 KiB … >>> Emerging (1 of 1) media-gfx/freecad-9999::gentoo * Checking for at least 2 GiB disk space at "/var/tmp/portage/media-gfx/freecad-9999/temp" ... [ ok ] * Using python3.8 to build >>> Unpacking source... * Repository id: FreeCAD_FreeCAD.git * To override fetched repository properties, use: * EGIT_OVERRIDE_REPO_FREECAD_FREECAD * EGIT_OVERRIDE_BRANCH_FREECAD_FREECAD * EGIT_OVERRIDE_COMMIT_FREECAD_FREECAD * EGIT_OVERRIDE_COMMIT_DATE_FREECAD_FREECAD * * Fetching https://github.com/FreeCAD/FreeCAD.git ... git fetch https://github.com/FreeCAD/FreeCAD.git +HEAD:refs/git-r3/HEAD git symbolic-ref refs/git-r3/media-gfx/freecad/0/__main__ refs/git-r3/HEAD * Checking out https://github.com/FreeCAD/FreeCAD.git to /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 ... git checkout --quiet refs/git-r3/HEAD GIT update --> repository: https://github.com/FreeCAD/FreeCAD.git at the commit: fb8b21ec43dca706a4aa2d63d59a4fb79f050369 >>> Source unpacked in /var/tmp/portage/media-gfx/freecad-9999/work >>> Preparing source in /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 ... * Applying freecad-0.19_pre20201231-0003-Gentoo-specific-don-t-check-vcs.patch ... [ ok ] * Applying freecad-0.19.1-0001-Gentoo-specific-Remove-ccache-usage.patch ... [ ok ] * Working in BUILD_DIR: "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build" >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 ... * Working in BUILD_DIR: "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build" cmake -C /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_ADDONMGR=yes -DBUILD_ARCH=ON -DBUILD_ASSEMBLY=OFF -DBUILD_CLOUD=no -DBUILD_COMPLETE=OFF -DBUILD_DRAFT=ON -DBUILD_DRAWING=ON -DBUILD_ENABLE_CXX_STD:STRING=C++14 -DBUILD_FEM=yes -DBUILD_FEM_NETGEN=OFF -DBUILD_FLAT_MESH=ON -DBUILD_FORCE_DIRECTORY=ON -DBUILD_FREETYPE=ON -DBUILD_GUI=yes -DBUILD_IDF=yes -DBUILD_IMAGE=yes -DBUILD_IMPORT=ON -DBUILD_INSPECTION=yes -DBUILD_JTREADER=OFF -DBUILD_MATERIAL=yes -DBUILD_MESH=ON -DBUILD_MESH_PART=ON -DBUILD_OPENSCAD=yes -DBUILD_PART=ON -DBUILD_PART_DESIGN=yes -DBUILD_PATH=yes -DBUILD_PLOT=no -DBUILD_POINTS=yes -DBUILD_QT5=ON -DBUILD_RAYTRACING=yes -DBUILD_REVERSEENGINEERING=OFF -DBUILD_ROBOT=yes -DBUILD_SHIP=no -DBUILD_SHOW=yes -DBUILD_SKETCHER=ON -DBUILD_SMESH=ON -DBUILD_SPREADSHEET=ON -DBUILD_START=ON -DBUILD_SURFACE=yes -DBUILD_TECHDRAW=yes -DBUILD_TEST=ON -DBUILD_TUX=yes -DBUILD_VR=OFF -DBUILD_WEB=ON -DBUILD_WITH_CONDA=OFF -DCMAKE_INSTALL_DATADIR=/usr/share/freecad/data -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/freecad-9999 -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/freecad -DCMAKE_INSTALL_PREFIX=/usr/lib64/freecad -DFREECAD_BUILD_DEBIAN=OFF -DFREECAD_USE_EXTERNAL_KDL=ON -DFREECAD_USE_EXTERNAL_SMESH=OFF -DFREECAD_USE_EXTERNAL_ZIPIOS=OFF -DFREECAD_USE_FREETYPE=ON -DFREECAD_USE_OCC_VARIANT:STRING=Official Version -DFREECAD_USE_PCL=no -DFREECAD_USE_PYBIND11=ON -DFREECAD_USE_QT_FILEDIALOG=ON -DFREECAD_USE_QTWEBMODULE:STRING=Qt WebEngine -DINSTALL_TO_SITEPACKAGES=ON -DPython3_EXECUTABLE=/usr/bin/python3.8 -DOCCT_CMAKE_FALLBACK=ON -DOCC_INCLUDE_DIR=/usr/include/opencascade-7.5.1-r1 -DOCC_LIBRARY_DIR=/usr/lib64/opencascade-7.5.1-r1 -DBUILD_SANDBOX=OFF -DBUILD_TEMPLATE=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/gentoo_toolchain.cmake /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999 loading initial cache file /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/gentoo_common_config.cmake -- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Compiler: GNU, version: 10.3.0 -- Looking for GL/gl.h -- Looking for GL/gl.h - found -- Looking for C++ include istream -- Looking for C++ include istream - found -- Looking for C++ include ostream -- Looking for C++ include ostream - found -- Looking for C++ include fstream -- Looking for C++ include fstream - found -- Looking for C++ include sstream -- Looking for C++ include sstream - found -- Looking for C++ include ios -- Looking for C++ include ios - found -- Looking for C++ include iostream -- Looking for C++ include iostream - found -- Looking for C++ include iomanip -- Looking for C++ include iomanip - found -- Looking for C++ include iostream -- Looking for C++ include iostream - found -- Check for STD namespace -- Check for STD namespace - found -- prefix: /usr/lib64/freecad -- bindir: bin -- datadir: /usr/share/freecad/data -- docdir: /usr/share/doc/freecad-9999 -- includedir: /usr/include/freecad -- libdir: lib64 -- cmake: 3.18.5 -- Found Doxygen: /usr/bin/doxygen (found version "1.9.1") found components: doxygen missing components: dot -- Found Python3: /usr/bin/python3.8 (found version "3.8.9") found components: Interpreter Development Development.Module Development.Embed -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Found pybind11: /usr/include (found version "2.6.2" ) -- Found XercesC: /usr/lib64/libxerces-c.so (found version "3.2.3") -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") -- PyCXX found: -- Headers: /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src -- Sources: /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src/CXX -- Version: 6.2.8 CMake Error at cMake/FindOpenCasCade.cmake:101 (file): file STRINGS file "/usr/include/opencascade-7.5.1-r1/Standard_Version.hxx" cannot be read. Call Stack (most recent call first): cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package) CMakeLists.txt:46 (SetupOpenCasCade) CMake Error at cMake/FindOpenCasCade.cmake:104 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package) CMakeLists.txt:46 (SetupOpenCasCade) CMake Error at cMake/FindOpenCasCade.cmake:105 (file): file STRINGS file "/usr/include/opencascade-7.5.1-r1/Standard_Version.hxx" cannot be read. Call Stack (most recent call first): cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package) CMakeLists.txt:46 (SetupOpenCasCade) CMake Error at cMake/FindOpenCasCade.cmake:108 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package) CMakeLists.txt:46 (SetupOpenCasCade) CMake Error at cMake/FindOpenCasCade.cmake:109 (file): file STRINGS file "/usr/include/opencascade-7.5.1-r1/Standard_Version.hxx" cannot be read. Call Stack (most recent call first): cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package) CMakeLists.txt:46 (SetupOpenCasCade) CMake Error at cMake/FindOpenCasCade.cmake:112 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package) CMakeLists.txt:46 (SetupOpenCasCade) CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed to `find_package_handle_standard_args` (OCC) does not match the name of the calling package (OpenCasCade). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cMake/FindOpenCasCade.cmake:120 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package) CMakeLists.txt:46 (SetupOpenCasCade) This warning is for project developers. Use -Wno-dev to suppress it. -- Found OCC: /usr/include/opencascade-7.5.1-r1 (found version "..") -- -- Found OCE/OpenCASCADE version: .. -- -- OCE/OpenCASCADE include directory: /usr/include/opencascade-7.5.1-r1 -- -- OCE/OpenCASCADE shared libraries directory: /usr/lib64/opencascade-7.5.1-r1 […] -- ============== Summary report ============== -- Build type: Gentoo -- Compiler: /usr/bin/x86_64-pc-linux-gnu-g++ (10.3.0) -- Flags: -Wall -Wextra -Wno-write-strings -O2 -pipe -march=native -- Standard: Requires C++14 -- Python: 3.8.9 [/usr/bin/python3.8] [-python3.8] -- PCL: not enabled -- pybind11: 2.6.2 -- Boost: 1.76.0 (1.76.0) -- XercesC: 3.2.3 [/usr/lib64/libxerces-c.so] [/usr/include] -- ZLIB: 1.2.11 -- PyCXX: 6.2.8 [/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999/src] -- OCC: .. [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [/usr/lib64/opencascade-7.5.1-r1] [/usr/include/opencascade-7.5.1-r1] -- SMESH: build internal -- MEDFile: 4.1.0 [/usr/lib64/libmedC.so;/usr/lib64/libmed.so] [/usr/include] -- HDF5: 1.10.5 -- VTK: 8.2.0 -- NETGEN: not enabled -- SWIG: 4.0.2 -- Eigen3 3.3.9 -- Qt5Core: 5.15.2 -- Qt5Network: 5.15.2 -- Qt5Xml: 5.15.2 -- Qt5XmlPatterns: 5.15.2 -- Qt5Widgets: 5.15.2 -- Qt5PrintSupport: 5.15.2 -- Qt5OpenGL: 5.15.2 -- Qt5Svg: 5.15.2 -- Qt5UiTools: 5.15.2 -- Qt5Concurrent: 5.15.2 -- Qt5WebEngineWidgets: 5.15.2 -- Shiboken2: 5.15.2 [/usr/lib64/cmake/Shiboken2-5.15.2] [/usr/include/shiboken2;/usr/include/python3.8] -- PySide2: 5.15.2 [/usr/include/PySide2] -- PySide2Tools: [/usr/bin/uic] [/usr/bin/rcc] -- Freetype: 2.10.4 -- OpenGL: /usr/lib64/libGL.so -- OpenGLU: [/usr/lib64/libGLU.so][/usr/include] -- Coin3D: [/usr/lib64/libCoin.so] [/usr/include] -- Pivy: -- SPNAV: [/usr/lib64/libspnav.so] [/usr/include] -- Matplotlib: 3.4.1 -- Rift: not enabled (BUILD_VR) -- Doxygen: 1.9.1 -- Language: English -- Coin3D_DOC: not found ================================================= Now run 'cmake --build /var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build' to build FreeCAD ================================================= -- <<< Gentoo configuration >>> Build type Gentoo Install path /usr/lib64/freecad Compiler flags: C -O2 -pipe -march=native C++ -Wall -Wextra -Wno-write-strings -O2 -pipe -march=native Linker flags: Executable -Wl,-O1 -Wl,--as-needed Module -Wl,-O1 -Wl,--as-needed Shared -Wl,-O1 -Wl,--as-needed -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/CMakeFiles/CMakeOutput.log". See also "/var/tmp/portage/media-gfx/freecad-9999/work/freecad-9999_build/CMakeFiles/CMakeError.log". $ ls -l /usr/include/opencascade-7.5.1/Standard_Version.hxx -rw-r--r-- 1 root root 3.0K Feb 2 16:51 /usr/include/opencascade-7.5.1/Standard_Version.hxx
I also ran into this earlier while working on Bug 793962, fixed in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04dd713b4dbf8c7eb62a6598b1c826ed5e8e34f8