Package Details: highway-git 1.1.0.r5.gaa4ba087-1

Git Clone URL: https://aur.archlinux.org/highway-git.git (read-only, click to copy)
Package Base: highway-git
Description: A C++ library that provides portable SIMD/vector intrinsics (git version)
Upstream URL: https://github.com/google/highway/
Licenses: Apache-2.0, BSD-3-Clause
Conflicts: highway
Provides: highway
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 4
Popularity: 0.000000
First Submitted: 2021-02-19 23:30 (UTC)
Last Updated: 2024-02-21 13:18 (UTC)

Dependencies (4)

Required by (15)

Sources (1)

Latest Comments

1 2 Next › Last »

Anquihald commented on 2025-02-26 03:28 (UTC)

@dbermond Thank you very much. At now, the issue is fixed, and the build process is successfully finished.

dbermond commented on 2025-02-25 16:44 (UTC)

@Anquihald This is an upstream issue. I have opened an issue upstream and you can track it there.

Anquihald commented on 2025-02-25 12:28 (UTC)

Hello2All!

I need libhwy for my custom mpv build, but build fails with link error. Any fix?

[ 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/ccVn87Cw.ltrans0.ltrans.o: in function `hwy::(anonymous namespace)::ReadAndPrint(unsigned long, double*)':
/usr/src/debug/highway-git/highway/hwy/perf_counters_test.cc:40:(.text+0x7a): undefined reference to `hwy::platform::PerfCounters::PerfCounters()'
/usr/bin/ld: /tmp/ccVn87Cw.ltrans0.ltrans.o: in function `hwy::(anonymous namespace)::ReadAndPrint(unsigned long, double*)':
/usr/src/debug/highway-git/highway/hwy/perf_counters.h:133:(.text+0x140): undefined reference to `hwy::platform::PerfCounters::IndexForCounter(hwy::platform::PerfCounters::Counter)'
/usr/bin/ld: /tmp/ccVn87Cw.ltrans0.ltrans.o: in function `hwy::(anonymous namespace)::ReadAndPrint(unsigned long, double*)':
/usr/src/debug/highway-git/highway/hwy/perf_counters_test.cc:57:(.text+0x1c2): undefined reference to `hwy::platform::PerfCounters::StopAllAndReset()'
/usr/bin/ld: /tmp/ccVn87Cw.ltrans0.ltrans.o: in function `hwy::(anonymous namespace)::PerfCountersTest_TestMem_Test::TestBody()':
/usr/src/debug/highway-git/highway/hwy/perf_counters_test.cc:63:(.text+0x391): undefined reference to `hwy::platform::PerfCounters::Init()'
/usr/bin/ld: /usr/src/debug/highway-git/highway/hwy/perf_counters_test.cc:63:(.text+0x39b): undefined reference to `hwy::platform::PerfCounters::StartAll()'
/usr/bin/ld: /tmp/ccVn87Cw.ltrans0.ltrans.o: in function `hwy::(anonymous namespace)::PerfCountersTest_RunBranches_Test::TestBody()':
/usr/src/debug/highway-git/highway/hwy/perf_counters_test.cc:106:(.text+0x8c1): undefined reference to `hwy::platform::PerfCounters::Init()'
/usr/bin/ld: /usr/src/debug/highway-git/highway/hwy/perf_counters_test.cc:106:(.text+0x8cb): 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: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Screenshot.

dbermond commented on 2024-04-10 16:46 (UTC)

@sohex It compiles fine for me for the stock x86_64 (x86-64-v1) instruction set, which is the default for Arch Linux. It also compiles fine for me when using '-march=alderlake'. You can try to build the package in a clean chroot, to isolate the build from your environment. This is how the packages in the official repositories are built.

sohex commented on 2024-04-08 20:07 (UTC)

@dbermond Interesting, which instruction sets is it building for on your system? I see the test failures on AVX2 and SSE4 tests specifically. I just tried dropping in the default makepkg.conf on my system, but with that the build fails completely, so entirely possible it's something with my environment. I also realize now that I completely misread that line from the readme as "should be compiled with optimizations enabled - without inlining" instead of "should be compiled with optimizations enabled" & "without inlining SIMD code may slow down...".

dbermond commented on 2024-04-07 11:26 (UTC)

@cfutro I have just checked, and the package is building fine with the default Arch Linux compiler flags, which already have '-O2'. All tests are passing. Check your compiler flags in use.

cfutro commented on 2024-04-07 10:24 (UTC)

I'm not able to build this package without setting -fno-inline, without it two tests fail. Looking at the readme on the github page it seems like that might be preferable to add in general anyway:

Applications should be compiled with optimizations enabled - without inlining, SIMD code may slow down by factors of 10 to 100. For clang and GCC, -O2 is generally sufficient.

dbermond commented on 2024-01-04 18:33 (UTC)

@jholmer This is an upstream issue that is now fixed in latest git master.

jholmer commented on 2023-12-26 04:37 (UTC) (edited on 2023-12-26 04:38 (UTC) by jholmer)

There are many failures occurring in the tests phase with "undefined reference to hwy::ThreadPool::WorkersReadyBarrier()". A workaround could be to disable building the tests with -DHWY_ENABLE_TESTS:BOOL='OFF'.

dbermond commented on 2022-06-05 11:54 (UTC)

@Fifis This was an upstream issue and is now fixed by them.