Getting a build error when trying to install albert (gcc)

I’m getting the following error when trying to install the package ‘albert’ from AUR on my laptop running Manjaro…I do have base-devel installed:


=> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:70 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/trey/.cache/yay/albert/src/build/CMakeFiles/CMakeScratch/TryCompile-Fay0EC
    
    Run Build Command(s):/usr/bin/make -f Makefile cmTC_cc3fa/fast && /usr/bin/make: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)


-- Configuring incomplete, errors occurred!
See also "/home/trey/.cache/yay/albert/src/build/CMakeFiles/CMakeOutput.log".
See also "/home/trey/.cache/yay/albert/src/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...
checking dependencies...
:: pyside6 optionally requires qt6-scxml: QtScxml bindings

Packages (3) muparser-2.3.4-1  pybind11-2.10.2-1  qt6-scxml-6.4.1-1

Total Removed Size:  3.49 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/3) removing pybind11                                                                                                               [#################################################################################] 100%
(2/3) removing muparser                                                                                                               [#################################################################################] 100%
(3/3) removing qt6-scxml                                                                                                              [#################################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...
 -> error making: albert

Any and all guidance greatly appreciated!

It builds fine here, but I am running Unstable(xfce). If you are running Stable branch than most likely something has not synced yet with Arch (stable). Just in case, make sure that your system is fully updated then give it a try.

==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "albert"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: albert 0.18.11-1 (Wed 11 Jan 2023 06:24:37 PM EST)
==> Cleaning up...

hmm::

See also, but note that renaming the file is not the solution and not a good idea:

1 Like

OK, so sounds like it’s best to wait and see if the situation resolves itself (maybe upon a forthcoming sync with stable?)

pybind11 and qt6-scxml are behind Stable versus Unstable. You can change to Unstable branch if you need this software today or as you said, wait for the next Stable update(hopefully).

Interestingly I am able to install albert successfully on another thinkpad laptop running manjaro (Stable) so may not be related to that

This is your problem. The current libunistring version provides libunistring.so.5 . Looks like you are in an partial update state. You need to fix that. Or find out why your make binary still search for libunistring.so.2

Also do not rename it, find the real cause for it.

Thank you. Any clues to use when determining the cause of the partial upgrade state? Or how to get a complete upgrade accomplished?

your kind of problem is the sign of a partial update state
the cause is you, installing stuff without also keeping the system up to date
(most likely - no offense intended)

Sync/update your mirror list

Pacman-mirrors - Manjaro

run a full system update following that
sudo pacman -Syyu

only then tend to any AUR packages that you may have installed

You may use pamac
or it’s graphical UI
to do this.
But: in this order.

point is:
read a bit
refresh mirrors
update base system
update the rest