Don't fully understand update errors

I’ve just done an update after being away for a week and had errors flagged up at the end of the process:

CMake Warning at third_party/CMakeLists.txt:168 (find_package):
  By not providing "Findgflags.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gflags", but
  CMake did not find one.

  Could not find a package configuration file provided by "gflags" with any
  of the following names:

    gflagsConfig.cmake
    gflags-config.cmake

  Add the installation prefix of "gflags" to CMAKE_PREFIX_PATH or set
  "gflags_DIR" to a directory containing one of the above files.  If "gflags"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Error at third_party/CMakeLists.txt:170 (message):
  Gflags not found, install libgflags-dev or download gflags source
  tothird_party/gflags from https://github.com/gflags/gflags.  You can use
  /var/tmp/pamac-build-nick/libjxl-git/src/libjxl/deps.sh to download the
  dependency.


-- Configuring incomplete, errors occurred!
See also "/var/tmp/pamac-build-nick/libjxl-git/src/build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/pamac-build-nick/libjxl-git/src/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting... 

I don’t understand it well enough to be sure I can ignore it or if I really should do something. If the latter, could someone please unpack the key points for me and explain in less technical language the things I need to do. I hope one day to be able to do this for myself, but still very much a learner atm!

You didn’t say which sotware - likely some package built from AUR, but that is only speculation at this point.

You definitely cannot ignore it, because the software build failed - and thus there will be no software to install …

==> ERROR: A failure occurred in build().
    Aborting...

You could deinstall this software, do the update, and then install it again …

As Nachlese replied you haven’t said how or what you were updating.
pamac upgrade in the terminal should take care of the updates.

is the package.
There seems to be a problem with it.
As noted above … as this is an AUR package, and unnecessary image format stuff at that … you can remove it or skip it for now.

Thanks for the replies.
I don’t know which packages were updating; I simply clicked on “Update now” in the drop-down menu on the Manjaro Linux Updates Indicator. I think there were about 6 or 7 updates pending. It’s still showing 5 updates pending: libjxl-git, libmagick6, python-rst2ansi, python2-lxml and zoom. Presumably it’s one of those that is causing the error. In the past I’ve had errors building libmagick, so it may be that. Tbh, I’m not sure what libmagick does or why I have it.

I notice when I open the settings for the Indicator icon, there’s a further error message, saying the extension settings can’t be loaded. Technical details:

Gtk.BuilderError: /usr/share/gnome-shell/extensions/manjaro-update@Chrysostomus/prefs.xml:39:27 Invalid property: GtkNotebook.expand

Stack trace:
  buildPrefsWidget@/usr/share/gnome-shell/extensions/manjaro-update@Chrysostomus/prefs.js:41:12
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:219:40
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:128:33
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:206:19
  start@resource:///org/gnome/gjs/modules/script/package.js:190:8
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Could this be related, or an entirely separate issue? Sorry - I’m out of my depth here.

The package you are having trouble with is an AUR package, so ‘third party’.
(as I noted above it is also not an ‘important’ package)
And pamac is upgrading AUR packages at the same time as it updates everything else so that AUR package is blocking your update.

sudo pacman-mirrors -g && sudo pacman -Syyu

Run the above to sort your mirrors and do a full update.
(Note - pacman only interacts with repos and local packages)

Afterwards you can also update aur packages using an aur helper like pamac … though we can expect it to fail:

pamac upgrade -a

Copy any errors here.

Thanks for this. I hadn’t seen your first reply when I added my last - maybe cross posted.
Anyway, the pacman commands have now executed and “there is nothing to do”.

Running the pamac upgrade however produces same error I posted originally:

CMake Warning at third_party/CMakeLists.txt:168 (find_package):
  By not providing "Findgflags.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gflags", but
  CMake did not find one.

  Could not find a package configuration file provided by "gflags" with any
  of the following names:

    gflagsConfig.cmake
    gflags-config.cmake

  Add the installation prefix of "gflags" to CMAKE_PREFIX_PATH or set
  "gflags_DIR" to a directory containing one of the above files.  If "gflags"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Error at third_party/CMakeLists.txt:170 (message):
  Gflags not found, install libgflags-dev or download gflags source
  tothird_party/gflags from https://github.com/gflags/gflags.  You can use
  /var/tmp/pamac-build-nick/libjxl-git/src/libjxl/deps.sh to download the
  dependency.


-- Configuring incomplete, errors occurred!
See also "/var/tmp/pamac-build-nick/libjxl-git/src/build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/pamac-build-nick/libjxl-git/src/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...

Unless you have a specific reason for this git package, I would follow the top comment on the AUR package page: AUR (en) - libjxl-git

… replace this package with the Official Repositories libjxl

So in your case …

sudo pacman -Syu libjxl

The above command should install the repo version of that package and replace the AUR-git version.
Afterwards you can attempt to update your AUR packages again.
(and once more report any errors as well)

1 Like

Thank you so much for this help.

The pamac update produced this:

To build (4):
  libmagick6       6.9.12.34-1  (6.9.12.29-1)  AUR
  python-rst2ansi  0.1.5-2      (0.1.5-1)      AUR
  python2-lxml     4.6.3-3      (4.6.3-2)      AUR
  zoom             5.9.1-1      (5.8.6-1)      AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building imagemagick6...
==> ERROR: PKGBUILD does not exist.

This is a familiar error, which I have had before during updates. I did some searching but got limited results which I didn’t fully understand so didn’t attempt to fix in case it made matters worse. Everything I use frequently still works without a problem.

Hm. I guess you might want to clean the build files and such?

pamac clean -b

Oh … and … I should also mention there is no imagemagick6 in the AUR (or repos) … so again, I am not sure why you have these packages, especially these versions … but you may want to remove or replace them.

1 Like

Progress of sorts after cleaning the build files, and the pamac update started well, but then again ran into problems with imagemagick6:

[nick@nick-pc-3 ~]$ pamac upgrade -a
Preparing...
Checking zoom dependencies...
Checking python-rst2ansi dependencies...
Checking python2-lxml dependencies...
Checking libmagick6 dependencies...
Synchronizing package databases...
Warning: gnome-wallpapers: local (20201023-1) is newer than community (20201020-1)
Resolving dependencies...
Checking inter-conflicts...

To build (4):
  libmagick6       6.9.12.34-1  (6.9.12.29-1)  AUR
  python-rst2ansi  0.1.5-2      (0.1.5-1)      AUR
  python2-lxml     4.6.3-3      (4.6.3-2)      AUR
  zoom             5.9.1-1      (5.8.6-1)      AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y

Cloning imagemagick6 build files...
Generating imagemagick6 information...

Building imagemagick6...
==> Making package: imagemagick6 6.9.12.34-1 (Fri 31 Dec 2021 15:58:57 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading ImageMagick-6.9.12-34.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.8M  100 12.8M    0     0   468k      0  0:00:28  0:00:28 --:--:--  525k
  -> Downloading ImageMagick-6.9.12-34.tar.gz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   833  100   833    0     0   1966      0 --:--:-- --:--:-- --:--:--  1964
  -> Found arch-fonts.diff
==> Validating source files with sha256sums...
    ImageMagick-6.9.12-34.tar.gz ... Passed
    ImageMagick-6.9.12-34.tar.gz.asc ... Skipped
    arch-fonts.diff ... Passed
==> Verifying source file signatures with gpg...
    ImageMagick-6.9.12-34.tar.gz ... FAILED (unknown public key 89AB63D48277377A)
==> ERROR: One or more PGP signatures could not be verified!
Error: Failed to build imagemagick6

Signatures this time.

I’m inclined to follow your advice and remove it.
Is pamac remove --orphans imagemagic6 the right command to do that safely?

Yes that should work. As long as you add the missing k. :wink:
But you may want to get rid of the libmagick6 as well. And maybe save files too.

pamac remove -oun imagemagick6 libmagick6

(also note that we have imagemagick in the regular repos)

I think we’re finally there!
That (ie your) command produced: Error: target not found: imagemagick6
So I ran it again just for libmagick6 and it went through. Then I did a search for imagemagick6 and nothing was returned, so I did another pamac upgrade -a and then it went through smoothly, updating zoom and a couple of python packages, and with NO ERRORS!

Thank you so much, cscs, for seeing this through with me :pray:

Ah. I think maybe libmagick6 was trying to pull imagemagick6 as a dependency, even though it does not exist.
Glad everything worked out. Cheers.

Remove the Manjaro Update extension, it was long ago deprecated in favor of Pamac Updates Indicator.

Thanks for this advice.
Is it a matter of simply deleting that file/folder, or do I need to run a command?

Remove it using Add/Remove Software like any other application or via terminal:

pamac remove gnome-shell-extension-manjaro-update

Thanks. That’s removed it, but I can’t find Pamac Updates Indicator. Is it a Gnome shell extension, or does it go by another name? I see there’s an Arch Linux Updates Indicator in Gnome shell extensions - is it safe to install that on Manjaro Gnome?

It’s part of Add/Remove Software (pamac-gtk) and is already installed.

Manjaro is not Arch. Arch is not Manjaro.

Understood. But they are closely related, are they not? Both can use AUR for example? Nevertheless, clearly Manjaro is not going to use Arch updates, or vice versa, so yes, stupid question on my part. :blush:
Thanks for your help.