Opened 2 months ago

Closed 2 months ago

#70735 closed defect (wontfix)

highway broken on riscv64

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: riscv64, linux Cc: jmroot (Joshua Root)
Port: highway

Description (last modified by barracuda156)

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.

Change History (2)

comment:1 Changed 2 months ago by barracuda156

Description: modified (diff)

comment:2 Changed 2 months ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed

Upstream is the only place you need to report this. Building ports on Linux is totally unsupported.

Note: See TracTickets for help on using tickets.