Error when building highway-git

So this package I can’t update, because I get a build error. Alternatively, I would be ok with removing it, but it seems lots of important packages depends on it.
This is (I think) the relevant part of the error message I get while building:

[ 28%] Building CXX object CMakeFiles/perf_counters_test.dir/hwy/perf_counters_test.cc.o
[ 29%] Linking CXX executable tests/perf_counters_test
/usr/bin/ld: /tmp/ccShUTCF.ltrans0.ltrans.o: in function hwy::(anonymous namespace)::ReadAndPrint(unsigned long, double*)': <artificial>:(.text+0x82): undefined reference to hwy::platform::PerfCounters::PerfCounters()’
/usr/bin/ld: :(.text+0x154): undefined reference to hwy::platform::PerfCounters::IndexForCounter(hwy::platform::PerfCounters::Counter)' /usr/bin/ld: <artificial>:(.text+0x1e2): undefined reference to hwy::platform::PerfCounters::StopAllAndReset()’
/usr/bin/ld: /tmp/ccShUTCF.ltrans0.ltrans.o: in function hwy::(anonymous namespace)::PerfCountersTest_TestMem_Test::TestBody()': <artificial>:(.text+0x3b1): undefined reference to hwy::platform::PerfCounters::Init()’
/usr/bin/ld: :(.text+0x3bb): undefined reference to hwy::platform::PerfCounters::StartAll()' /usr/bin/ld: /tmp/ccShUTCF.ltrans0.ltrans.o: in function hwy::(anonymous namespace)::PerfCountersTest_RunBranches_Test::TestBody()‘:
:(.text+0x911): undefined reference to hwy::platform::PerfCounters::Init()' /usr/bin/ld: <artificial>:(.text+0x91b): undefined reference to hwy::platform::PerfCounters::StartAll()’
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/perf_counters_test.dir/build.make:106: tests/perf_counters_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:1664: CMakeFiles/perf_counters_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 29%] Linking CXX executable tests/highway_test
[ 29%] Built target highway_test
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Aborting…

This is the exact version of the package “highway-git 1.1.0.r5.gaa4ba087-1” from 2023, it’s an old manjaro installation i’m using, have been through a lot, been using it on and off, maybe since 2020 or so, maybe even earlier. But lately have been trying to tidy this installation and use as my driver. I have solved most problems I had, but this package is the last issue and I couldn’t find a solution online.
Is there a way to remove it without breaking my whole system, replace it by a non AUR package or something? Build it correctly so it can upgrade normally with the rest of the system.
I have no memory of when it got installed.
I tried upgrading trough console, the manjaro GUI package manager. Rebuilding etc. none of that worked. And since never had to solve a problem like this… well I’m out of leads on where to look for solutions.

Hello and welcome,

Its a foreign package.
Nothing important should be relying on it.

As above … I suppose we can look to see what you mean;

pacman -Qi highway-git
1 Like

that’s what I thought, since my first instinct was to just remove it, but then when i tried to remove it (through manjaro pamac gui) i got that libjxl depended on it, and then ffmpeg depended on libjxl and then…

i get:

pacman -Qi highway-git [1]
Name : highway-git
Version : 1.0.4.r270.g6254292-1
Description : A C++ library for SIMD (Single Instruction, Multiple Data) (git version)
Architecture : x86_64
URL : GitHub - google/highway: Performance-portable, length-agnostic SIMD with runtime dispatch
Licenses : Apache
Groups : None
Provides : highway
Depends On : gcc-libs
Optional Deps : None
Required By : libjxl
Optional For : None
Conflicts With : highway
Replaces : None
Installed Size : 5,49 MiB
Packager : Unknown Packager
Build Date : vie 02 jun 2023 10:13:31
Install Date : vie 02 jun 2023 10:27:09
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : None

IDK if this helps, but i get this from pactree

~ >>> pactree highway-git
highway-git
└─gcc-libs
└─glibc>=2.27
├─linux-api-headers>=4.10
├─tzdata
└─filesystem
└─iana-etc

I was going to ask for pactree but wasnt sure it would be installed.
But this version shows what highway-git relies on.
pactree -r highway-git would have shown what relies on highway-git.

This would appear to me as standing in for the repo package highway as libjxl relies on that.

So … to replace highway-git with highway simply do

sudo pacman -Syu highway

(highway-git conflicts with highway so you will be prompted to confirm the replacement)

2 Likes

Perfect! :tada: Thank you!
Such a straightforward solution.
I knew there has to be something like that, but couldn’t get to it.
Must have installed that when trying some package or something, maybe that highway-git version was slightly more updated or something IDK, TBH I don’t remember what I was trying to do back then. But now I want to get rid of most extra stuff that I won’t use and have a more streamlined system.

1 Like

Yay, no problem.

This is a possibility.
Especially if building some AUR package when on the Stable branch.
It could very well have been that a newer highway than what was available on that branch was required.

By the way, as this is an old install with such possibilities you might be interested in listing foreign and orphan packages;

pacman -Qmq
pacman -Qdtq

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.