Hi, I realized the following: >>> Emerging (5 of 5) sci-geosciences/qgis-3.4.7::gentoo * qgis-3.4.7.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking qgis-3.4.7.tar.bz2 to /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work >>> Source unpacked in /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work >>> Preparing source in /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7 ... * Applying qgis-2.18.12-cmake-lib-suffix.patch ... [ ok ] * Applying qgis-3.4.7-featuresummary.patch ... [ ok ] * Applying qgis-3.4.7-default-qmldir.patch ... [ ok ] * Hardcoded definition(s) removed in CMakeLists.txt: * SET(CMAKE_COLOR_MAKEFILE ON) * SET (CMAKE_INSTALL_PREFIX ${QGIS_MACAPP_PREFIX}/MacOS) >>> Source prepared. >>> Configuring source in /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7 ... >>> Working in BUILD_DIR: "/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build" cmake -C /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DQGIS_MANUAL_SUBDIR=share/man/ -DQGIS_LIB_SUBDIR=lib64 -DQGIS_PLUGIN_SUBDIR=lib64/qgis -DQWT_INCLUDE_DIR=/usr/include/qwt6 -DQWT_LIBRARY=/usr/lib64/libqwt6-qt5.so -DPEDANTIC=OFF -DUSE_CCACHE=OFF -DWITH_APIDOC=OFF -DWITH_INTERNAL_MDAL=ON -DWITH_QSPATIALITE=ON -DENABLE_TESTS=OFF -DWITH_3D=no -DWITH_GEOREFERENCER=no -DWITH_GRASS7=no -DCMAKE_DISABLE_FIND_PACKAGE_HDF5=ON -DWITH_SERVER=no -DCMAKE_DISABLE_FIND_PACKAGE_NetCDF=ON -DUSE_OPENCL=no -DWITH_ORACLE=no -DWITH_QWTPOLAR=no -DWITH_POSTGRESQL=no -DWITH_BINDINGS=yes -DWITH_CUSTOM_WIDGETS=yes -DWITH_QUICK=no -DWITH_QTWEBKIT=no -DBINDINGS_GLOBAL_INSTALL=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/gentoo_toolchain.cmake /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7 loading initial cache file /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/gentoo_common_config.cmake CMake Warning (dev) at gentoo_common_config.cmake:8 (SET): implicitly converting 'BOOLEAN' to 'STRING' type. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is GNU 9.1.0 -- The CXX compiler identification is GNU 9.1.0 -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- Check for working C compiler: /usr/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/bin/x86_64-pc-linux-gnu-g++ -- Check for working CXX compiler: /usr/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 -- QGIS version: 3.4.7 Madeira (30407) -- Looking for openpty -- Looking for openpty - not found -- Looking for openpty -- Looking for openpty - found -- Looking for proj_info in /usr/lib/libproj.so -- Looking for proj_info in /usr/lib/libproj.so - found -- Found Proj: /usr/lib/libproj.so (6.0.0) -- Found GEOS: /usr/lib/libgeos_c.so (3.7.2) -- Found GDAL: /usr/lib/libgdal.so (2.4.1) -- Found Expat: /usr/lib/libexpat.so -- Found Spatialindex: /usr/lib/libspatialindex.so -- Found Qwt: /usr/lib64/libqwt6-qt5.so (6.1.3) -- Found libzip: /usr/lib/libzip.so -- Found Sqlite3: /usr/lib/libsqlite3.so -- Found SpatiaLite: /usr/lib/libspatialite.so -- Looking for gaiaStatisticsInvalidate in /usr/lib/libspatialite.so -- Looking for gaiaStatisticsInvalidate in /usr/lib/libspatialite.so - found -- Qt WebKit support DISABLED. -- Found Qt version: 5.12.4 -- Found QScintilla2: /usr/lib/libqscintilla2_qt5.so (2.10.8) -- Found QtKeychain: /usr/lib/libqt5keychain.so -- Found QCA: /usr/lib/libqca-qt5.so (2.2.1) -- Found QCA OpenSSL plugin -- Found PythonInterp: /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/temp/python3.6/bin/python (found suitable version "3.6.8", minimum required is "3") -- Found Python executable: /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/temp/python3.6/bin/python -- Found Python version: 3.6.8 -- Found Python library: /usr/lib/libpython3.6m.so -- Found Python site-packages: /usr/lib64/python3.6/site-packages -- Found PyQt5 version: 5.12.2 -- Found SIP version: 4.19.18 Traceback (most recent call last): File "/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7/cmake/FindQsci.py", line 45, in <module> from PyQt5.Qsci import QSCINTILLA_VERSION_STR RuntimeError: the PyQt5.QtCore module failed to register with the sip module -- txt2tags not found - disabled -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Qsci sip file not found - disabling bindings for derived classes -- The following OPTIONAL packages have been found: * Proj * GEOS * GDAL * Sqlite3 * Qt5Positioning -- The following REQUIRED packages have been found: * Expat * Spatialindex * Qwt * LibZip * SpatiaLite * Qt5Gui * Qt5Widgets * Qt5Network * Qt5Xml * Qt5Svg * Qt5Concurrent * Qt5PrintSupport * Qt5SerialPort * Qt5Test * Qt5UiTools * Qt5Sql * QScintilla * QtKeychain * QCA * PythonInterp (required version >= 3) * PythonLibrary * PyQt5 * SIP * Qt5DBus * Qt5Qml * Qt5Quick (required version >= 5.12.4) * Qt5QuickWidgets * Qt5XmlPatterns * Qt5UiPlugin * Qt5Designer -- The following REQUIRED packages have not been found: * Qsci CMake Error at /usr/share/cmake/Modules/FeatureSummary.cmake:457 (message): feature_summary() Error: REQUIRED package(s) are missing, aborting CMake run. Call Stack (most recent call first): CMakeLists.txt:943 (FEATURE_SUMMARY) -- Configuring incomplete, errors occurred! See also "/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/CMakeFiles/CMakeOutput.log". See also "/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/CMakeFiles/CMakeError.log". * ERROR: sci-geosciences/qgis-3.4.7::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 3945: Called cmake-utils_src_configure * environment, line 1340: 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 '=sci-geosciences/qgis-3.4.7::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-geosciences/qgis-3.4.7::gentoo'`. * The complete build log is located at '/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/temp/build.log'. * The ebuild environment file is located at '/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/temp/environment'. * Working directory: '/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build' * S: '/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7' I realized I have older versions of x11-libs/qscintilla-2.10.8 and dev-python/qscintilla-python-2.10.8 installed and after upgrade to x11-libs/qscintilla-2.11.1 and dev-python/qscintilla-python-2.11.1-r1, qgis CmakeFile.txt checks passed. I conclude the versions of dependency(/ies) need to be raised.
I believe the problem is that described here: https://bugs.gentoo.org/689514
I have the same problem with QGIS 3.4.12
Created attachment 593666 [details] Full build log for QGIS 3.4.12
Absolutely the same for version 3.4.12. Build log identical with Jean-Claude Repetto's one.
Upgrading to x11-libs/qscintilla-2.11.1 and dev-python/qscintilla-python-2.11.1-r1 (both unstable) seems to solve the problem. At least compiled without errors, and starts. I have no fresh projects now, but can open my project from 03/2019 without any problems. QGIS installed: 3.4.12^t(10:14:21 24.10.2019)(3d examples georeferencer grass postgres python qml -hdf5 -mapserver -netcdf -opencl -oracle -polar -webkit PYTHON_SINGLE_TARGET="python3_6 -python3_5" PYTHON_TARGETS="python3_6 -python3_5")
Created attachment 593754 [details, diff] Patch for QGIS 3.4.12 and QGIS 9999 I confirm that I can compile QGIS 3.4.12 with scintilla 2.11.1.
(In reply to Jean-Claude Repetto from comment #6) > I confirm that I can compile QGIS 3.4.12 with scintilla 2.11.1. The same here, qgis-3.4.12 compiles fine, and $ python3 -c 'from PyQt5.Qsci import QSCINTILLA_VERSION_STR' doesn't throw an error anymore :) (maybe the error comes from the dev-python/PyQt5 package!?)
I faced the same problem with qscintilla importing error with another software, also for me the upgrade to qscintilla-python >= 2.11.1 solves the issue
QGIS 3.10.0 fine with: dev-python/qscintilla-python-2.10.8 x11-libs/qscintilla-2.10.8 for me. ... -- Found QScintilla2 PyQt module: 2.10.8 ... -- The following REQUIRED packages have been found: ... * QScintilla
You are right, I downgraded qscintilla and qscintilla-python to 2.10.8, and now it works. Probably something has been changed, that solved this problem.