Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#68209 closed defect (invalid)

qgis3 @3.32.3: Build failure when Homebrew is installed

Reported by: hamishcampbell (Hamish Campbell) Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: nilason (Nicklas Larsson)
Port: qgis3

Description

MacOS Ventura 13.4.1 (c)

Previously successfully installed QGIS via the qgis3 port.

Attempted to upgrade and failed. Uninstalled and ran sudo port clean qgis3 then attempted a fresh install via sudo port install qgis3.

Fails as follows:

» sudo port install qgis3                                                                                                                                         
Password:
--->  Computing dependencies for qgis3
--->  Fetching archive for qgis3
--->  Attempting to fetch qgis3-3.32.3_1+plugin_support311+postgresql15+proj9+python311.darwin_22.arm64.tbz2 from https://packages.macports.org/qgis3
--->  Attempting to fetch qgis3-3.32.3_1+plugin_support311+postgresql15+proj9+python311.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/qgis3
--->  Attempting to fetch qgis3-3.32.3_1+plugin_support311+postgresql15+proj9+python311.darwin_22.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/qgis3
--->  Building qgis3
Error: Failed to build qgis3: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port qgis3 failed

tail of /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/main.log says:

» tail -n 20 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/main.log         ~/code/dandelion 130 ↵
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build/src/plugins/geometry_checker && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/plugin_geometrychecker.dir/link.txt --verbose=ON
:info:build /usr/bin/clang++ -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wnon-virtual-dtor -Wno-redundant-move -Wno-misleading-indentation -Wreturn-type-c-linkage -Woverloaded-virtual -Wimplicit-fallthrough -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -mmacosx-version-min=13.0 -bundle -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/libexec/qt5/lib -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Qunused-arguments -F/Library/Frameworks -o ../../../PlugIns/qgis/libplugin_geometrychecker.so CMakeFiles/plugin_geometrychecker.dir/plugin_geometrychecker_autogen/mocs_compilation.cpp.o CMakeFiles/plugin_geometrychecker.dir/qgsgeometrycheckerplugin.cpp.o CMakeFiles/plugin_geometrychecker.dir/qgsgeometrycheckfactory.cpp.o CMakeFiles/plugin_geometrychecker.dir/qgsgeometrycheckerdialog.cpp.o CMakeFiles/plugin_geometrychecker.dir/qgsgeometrycheckersetuptab.cpp.o CMakeFiles/plugin_geometrychecker.dir/qgsgeometrycheckerresulttab.cpp.o CMakeFiles/plugin_geometrychecker.dir/qgsgeometrycheckfixdialog.cpp.o CMakeFiles/plugin_geometrychecker.dir/qgsgeometrycheckerfixsummarydialog.cpp.o CMakeFiles/plugin_geometrychecker.dir/plugin_geometrychecker_autogen/EWIEGA46WW/qrc_pluginres.cpp.o -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build/output/lib -F/opt/local/libexec/qt5/lib   -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build/src/core  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build/src/gui  -Wl,-rpath,/opt/local/lib -Wl,-rpath,/Applications/MacPorts/lib ../../../output/lib/qgis_gui.framework/Versions/3.32/qgis_gui ../../../output/lib/qgis_analysis.framework/Versions/3.32/qgis_analysis ../../../output/lib/qgis_native.framework/Versions/3.32/qgis_native -weak_framework ApplicationServices -weak_framework CoreFoundation -weak_framework IOKit -weak_framework AppKit /opt/local/libexec/qt5/lib/libQt5UiTools.a -Xlinker -framework -Xlinker QtWidgets -Xlinker -framework -Xlinker QtGui -Xlinker -framework -Xlinker AppKit -Xlinker -framework -Xlinker Metal -Xlinker -framework -Xlinker QtCore -Xlinker -framework -Xlinker DiskArbitration -Xlinker -framework -Xlinker IOKit -Xlinker -framework -Xlinker QtWidgets -Xlinker -framework -Xlinker QtGui -Xlinker -framework -Xlinker AppKit -Xlinker -framework -Xlinker Metal -Xlinker -framework -Xlinker QtCore -Xlinker -framework -Xlinker DiskArbitration -Xlinker -framework -Xlinker IOKit -Xlinker -framework -Xlinker OpenGL -Xlinker -framework -Xlinker AGL /opt/local/libexec/qt5/lib/qwt.framework/Versions/Current/qwt /opt/local/libexec/qt5/lib/libqscintilla2_qt5.dylib /opt/local/libexec/qt5/lib/QtQuickWidgets.framework/QtQuickWidgets /opt/local/libexec/qt5/lib/QtQuick.framework/QtQuick /opt/local/libexec/qt5/lib/QtQmlModels.framework/QtQmlModels /opt/local/libexec/qt5/lib/QtQml.framework/QtQml /opt/local/libexec/qt5/lib/QtMultimediaWidgets.framework/QtMultimediaWidgets /opt/local/libexec/qt5/lib/QtMultimedia.framework/QtMultimedia ../../../output/lib/qgis_core.framework/Versions/3.32/qgis_core /opt/local/lib/libtasn1.dylib /opt/local/libexec/qt5/lib/QtXml.framework/QtXml /opt/local/libexec/qt5/lib/QtSvg.framework/QtSvg /opt/local/libexec/qt5/lib/QtSql.framework/QtSql /opt/local/libexec/qt5/lib/QtConcurrent.framework/QtConcurrent /opt/local/libexec/qt5/lib/QtWebKitWidgets.framework/QtWebKitWidgets /opt/local/libexec/qt5/lib/QtWebKit.framework/QtWebKit /opt/local/libexec/qt5/lib/QtNetwork.framework/QtNetwork /opt/local/libexec/qt5/lib/libqca-qt5.dylib /opt/local/lib/libqt5keychain.dylib /opt/local/lib/proj9/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib /opt/local/lib/libspatialindex.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libsqlite3.dylib /opt/local/lib/libzip.dylib /opt/local/lib/libprotobuf-lite.dylib /opt/local/lib/libz.dylib /opt/local/lib/libexiv2.dylib /opt/local/libexec/qt5/lib/QtPrintSupport.framework/QtPrintSupport /opt/local/libexec/qt5/lib/QtWidgets.framework/QtWidgets /opt/local/libexec/qt5/lib/QtGui.framework/QtGui /opt/local/lib/libspatialite.dylib /opt/local/lib/libzstd.dylib /opt/local/lib/libpdalcpp.dylib /opt/local/lib/libpdal_util.dylib /opt/local/libexec/qt5/lib/QtSerialPort.framework/QtSerialPort /opt/local/libexec/qt5/lib/QtPositioning.framework/QtPositioning /opt/local/libexec/qt5/lib/QtCore.framework/QtCore -L/opt/local/lib -lgsl -lgslcblas
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build'
:info:build [ 90%] Built target plugin_geometrychecker
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build" && /usr/bin/make -j10 -w all VERBOSE=ON
:info:build Exit code: 2
:error:build Failed to build qgis3: command execution failed
:debug:build Error code: CHILDSTATUS 31362 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/main.log for details.

Attachments (1)

main.log (3.3 MB) - added by hamishcampbell (Hamish Campbell) 8 months ago.
qgis install log

Change History (7)

comment:1 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: nilason added
Owner: set to Veence
Status: newassigned

Could you attach the main.log please? The tail end of the log you pasted doesn't seem to contain the real error message; it's probably earlier in the log.

comment:2 Changed 8 months ago by hamishcampbell (Hamish Campbell)

It was a 115MB. I'll truncate and re-run :D

Changed 8 months ago by hamishcampbell (Hamish Campbell)

Attachment: main.log added

qgis install log

comment:3 Changed 8 months ago by hamishcampbell (Hamish Campbell)

Log attached

comment:4 Changed 8 months ago by nilason (Nicklas Larsson)

According to the log file you also have Homebrew installed, which interferes with the MacPorts build. I don't know of any other solution than to uninstall Homebrew to make this work with MacPorts.

(Tip: usually with compilation errors, to find the initial error I search the log file for the string 'Error 1' and from there on browse the file upwards. On parallel builds, the actual error may be quite a few steps upwards.)

comment:5 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed
Summary: Unable to install qgs3 version 3.32.3qgis3 @3.32.3: Build failure when Homebrew is installed

comment:6 Changed 8 months ago by hamishcampbell (Hamish Campbell)

Ok, thanks. I had previously installed it with homebrew present, but I'll look for another approach.

Note: See TracTickets for help on using tickets.