[MacPorts] #70735: highway broken on riscv64
MacPorts
noreply at macports.org
Sun Sep 15 14:58:53 UTC 2024
#70735: highway broken on riscv64
----------------------------+---------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Keywords: riscv64, linux | Port: highway
----------------------------+---------------------
Issue with upstream: https://github.com/google/highway/issues/2328
```
sh-5.1# port -v install highway
Warning: configured user/group macports does not exist, will build as root
---> Computing dependencies for highway.
---> Fetching distfiles for highway
---> highway-1.2.0.tar.gz does not exist in
/opt/local/var/macports/distfiles/highway
---> Attempting to fetch highway-1.2.0.tar.gz from
https://github.com/google/highway/releases/download/1.2.0
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:--
0
100 2181k 100 2181k 0 0 670k 0 0:00:03 0:00:03 --:--:--
2081k
---> Verifying checksums for highway
---> Checksumming highway-1.2.0.tar.gz
---> Extracting highway
---> Extracting highway-1.2.0.tar.gz
---> Configuring highway
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - 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/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS
-- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS - Failed
-- Performing Test ATOMICS_IN_LIBRARY
-- Performing Test ATOMICS_IN_LIBRARY - Success
-- Found Atomics: atomic
-- Performing Test HWY_EMSCRIPTEN
-- Performing Test HWY_EMSCRIPTEN - Failed
-- Performing Test HWY_RISCV
-- Performing Test HWY_RISCV - Success
-- Looking for sys/auxv.h
-- Looking for sys/auxv.h - found
-- Looking for asm/hwcap.h
-- Looking for asm/hwcap.h - found
-- Configuring done (7.5s)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_POLICY_DEFAULT_CMP0025
-- Build files have been written to: /opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build
---> Building highway
make: Entering directory '/opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build'
/opt/local/bin/cmake -S/opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/highway-1.2.0
-B/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/build --check-build-system
CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build
/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/build/CMakeFiles
/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/build//CMakeFiles/progress.marks
/usr/bin/make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build'
/usr/bin/make -f CMakeFiles/hwy.dir/build.make CMakeFiles/hwy.dir/depend
make[2]: Entering directory '/opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build'
cd /opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/build && /opt/local/bin/cmake -E
cmake_depends "Unix Makefiles" /opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/highway-1.2.0
/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0
/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/build /opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build
/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/build/CMakeFiles/hwy.dir/DependInfo.cmake
"--color="
make[2]: Leaving directory '/opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build'
/usr/bin/make -f CMakeFiles/hwy.dir/build.make CMakeFiles/hwy.dir/build
make[2]: Entering directory '/opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build'
[ 2%] Building CXX object CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o
/usr/bin/g++ -DHWY_SHARED_DEFINE -Dhwy_EXPORTS
-I/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0 -pipe -Os -DNDEBUG
-std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-
builtin-macro-redefined -D__DATE__=\"redacted\"
-D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants
-Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor
-Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -march=rv64gcv1p0 -MD
-MT CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o -MF
CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o.d -o
CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o -c
/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/aligned_allocator.cc
[ 4%] Building CXX object CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o
/usr/bin/g++ -DHWY_SHARED_DEFINE -Dhwy_EXPORTS
-I/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0 -pipe -Os -DNDEBUG
-std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-
builtin-macro-redefined -D__DATE__=\"redacted\"
-D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants
-Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor
-Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -march=rv64gcv1p0 -MD
-MT CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o -MF
CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o.d -o
CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o -c /opt/local/var/macports/build
/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/nanobenchmark.cc
[ 6%] Building CXX object CMakeFiles/hwy.dir/hwy/abort.cc.o
/usr/bin/g++ -DHWY_SHARED_DEFINE -Dhwy_EXPORTS
-I/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0 -pipe -Os -DNDEBUG
-std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-
builtin-macro-redefined -D__DATE__=\"redacted\"
-D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants
-Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor
-Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -march=rv64gcv1p0 -MD
-MT CMakeFiles/hwy.dir/hwy/abort.cc.o -MF
CMakeFiles/hwy.dir/hwy/abort.cc.o.d -o CMakeFiles/hwy.dir/hwy/abort.cc.o
-c /opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/abort.cc
[ 9%] Building CXX object CMakeFiles/hwy.dir/hwy/per_target.cc.o
/usr/bin/g++ -DHWY_SHARED_DEFINE -Dhwy_EXPORTS
-I/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0 -pipe -Os -DNDEBUG
-std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-
builtin-macro-redefined -D__DATE__=\"redacted\"
-D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants
-Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor
-Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -march=rv64gcv1p0 -MD
-MT CMakeFiles/hwy.dir/hwy/per_target.cc.o -MF
CMakeFiles/hwy.dir/hwy/per_target.cc.o.d -o
CMakeFiles/hwy.dir/hwy/per_target.cc.o -c /opt/local/var/macports/build
/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/per_target.cc
In file included from /opt/local/var/macports/build
/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/highway.h:596,
from /opt/local/var/macports/build
/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/per_target.cc:28,
from /opt/local/var/macports/build
/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/foreach_target.h:314,
from /opt/local/var/macports/build
/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/per_target.cc:27:
/opt/local/var/macports/build/_home_svacchanda_powerpc-
ports_devel_highway/highway/work/highway-1.2.0/hwy/ops/rvv-inl.h:19:10:
fatal error: riscv_vector.h: No such file or directory
19 | #include <riscv_vector.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/hwy.dir/build.make:121:
CMakeFiles/hwy.dir/hwy/per_target.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build'
make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/hwy.dir/all] Error 2
make[1]: Leaving directory '/opt/local/var/macports/build
/_home_svacchanda_powerpc-ports_devel_highway/highway/work/build'
make: *** [Makefile:139: all] Error 2
```
It probably assumes that all riscv64 supports optional vector extension,
which needs not be the case and de facto is not in most cases on the
actual hardware, AFAIK.
--
Ticket URL: <https://trac.macports.org/ticket/70735>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list