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: 6
Popularity: 0.001399
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

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.

Fifis commented on 2022-06-03 20:38 (UTC)

Anyway, found the solution (this is my first patch ever, please excuse me if something is wrong):

diff --unified --recursive --text highway.orig/CMakeLists.txt highway.new/CMakeLists.txt
--- highway.orig/CMakeLists.txt 2022-06-03 23:33:34.246453246 +0300
+++ highway.new/CMakeLists.txt  2022-06-03 23:34:47.706452626 +0300
@@ -121,8 +121,8 @@
     hwy/ops/x86_128-inl.h
     hwy/ops/x86_256-inl.h
     hwy/ops/x86_512-inl.h
-    hwy/per_targets.cc
-    hwy/per_targets.h
+    hwy/per_target.cc
+    hwy/per_target.h
     hwy/print-inl.h
     hwy/print.cc
     hwy/print.h

Fifis commented on 2022-06-03 20:20 (UTC) (edited on 2022-06-03 20:20 (UTC) by Fifis)

I am trying to install highway-git because it is a dependency of ffmpeg-full, and this is where it halts:

==> Making package: highway-git 0.16.0.r7.ga8a6dd9-2 (Fri 03 Jun 2022 23:09:01 MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating highway git repo...
Fetching origin
==> Validating source files with sha256sums...
    highway ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of highway git repo...
Cloning into 'highway'...
done.
==> Starting pkgver()...
==> Updated version: highway-git 0.17.0.r3.g5e5cf8d-1
==> Sources are ready.
==> Making package: highway-git 0.17.0.r3.g5e5cf8d-1 (Fri 03 Jun 2022 23:09:07 MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HWY_EMSCRIPTEN
-- Performing Test HWY_EMSCRIPTEN - Failed
-- Found GTest: /usr/lib64/cmake/GTest/GTestConfig.cmake (found version "1.11.0")  
-- Configuring done
CMake Error at CMakeLists.txt:259 (add_library):
  Cannot find source file:

    hwy/per_targets.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at CMakeLists.txt:259 (add_library):
  No SOURCES given to target: hwy


CMake Generate step failed.  Build files cannot be regenerated correctly.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: highway-git

Installing just highway won’t help.