Opened 18 months ago

Last modified 18 months ago

#67543 assigned defect

qgis3 @3.28.6: ccache: command not found

Reported by: swaxolez Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: qgis3

Description (last modified by swaxolez)

Mac OS Ventura 13.4 Xcode 14.3 QGIS v 3.28.6 sudo port install qgis3

--->  Computing dependencies for qgis3
--->  Fetching archive for qgis3
--->  Attempting to fetch qgis3-3.28.6_1+postgresql15+proj9+python310.darwin_22.arm64.tbz2 from https://packages.macports.org/qgis3
--->  Attempting to fetch qgis3-3.28.6_1+postgresql15+proj9+python310.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/qgis3
--->  Attempting to fetch qgis3-3.28.6_1+postgresql15+proj9+python310.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.

When I check the log cited above:

:info:build [ 90%] Built target qgis_core_autogen
: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 63749 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)

macport_qgis3_mail_log.txt.zip (431.6 KB) - added by swaxolez 18 months ago.
Main.log

Download all attachments as: .zip

Change History (5)

comment:1 Changed 18 months ago by swaxolez

Description: modified (diff)

comment:2 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to Veence
Status: newassigned

Please attach the main.log file. The relevant error message will be earlier in the log.

Changed 18 months ago by swaxolez

Main.log

comment:3 Changed 18 months ago by swaxolez

The main log has been attached, Thank you for the clarification.

comment:4 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: Processing of port qgis3 failedqgis3 @3.28.6: ccache: command not found

Thanks. The log documents eight attempts to install qgis3.

The first through fifth attempts failed due to:

:info:build /bin/sh: ccache: command not found

This is curious; ports should only use ccache if MacPorts instructs them to, which it should only do if you have set configureccache yes in macports.conf and the ccache port is installed. Have you set that, and do you have that port installed? I recommend either installing ccache and setting that config value to yes, or else uninstalling ccache and setting that config value to no. If you install ccache but leave the config value set to no, some ports will detect the presence of ccache and try to use it on their own which can fail (and is a bug which we should fix, if that's what's going on here).

The sixth through eighth attempts failed due to:

:info:build CMake Error at stageinstall.cmake:2 (file):
:info:build   file COPY cannot set permissions on
:info:build   "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build/output/python/plugins/MetaSearch/./__init__.py":
:info:build   Operation not permitted.

I'm not quite sure why this operation would now suddenly not be permitted, but the usual advice, before trying to troubleshoot further, is to clean the port (sudo port clean qgis3) before trying again, since sometimes a reattempt without cleaning after a previous failure can lead to new and different failures.

Note: See TracTickets for help on using tickets.