Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893612 - dev-ml/ocaml_intrinsics-0.15.2: Target not supported on riscv
Summary: dev-ml/ocaml_intrinsics-0.15.2: Target not supported on riscv
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-08 14:25 UTC by jinqiang zhang
Modified: 2025-04-07 13:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
info.txt (info.txt,6.11 KB, text/plain)
2023-02-08 14:26 UTC, jinqiang zhang
Details
build.log (build.log,32.50 KB, text/plain)
2023-02-08 14:26 UTC, jinqiang zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jinqiang zhang 2023-02-08 14:25:22 UTC
For keywording work in bug #892131, dev-ml/ocaml_intrinsics-0.15.2 not supported on riscv, once this fixed we can rekeyword it.
Comment 1 jinqiang zhang 2023-02-08 14:26:20 UTC
Created attachment 850166 [details]
info.txt

emerge --info
Comment 2 jinqiang zhang 2023-02-08 14:26:58 UTC
Created attachment 850168 [details]
build.log

build.log
Comment 3 jinqiang zhang 2023-02-08 14:27:51 UTC
dev-ml/ocaml_intrinsics-0.15.2 encountered compilation errors on riscv, it seems that dev-ml/ocaml_intrinsics-0.15.2 only supports amd64 (SSE4_2) and arm (CRC32).



riscv64-unknown-linux-gnu-gcc src/crc_stubs.o (exit 1)
crc_stubs.c: In function ‘crc64’:
crc_stubs.c:16:2: error: #error "Target not supported"
   16 | #error "Target not supported"
      |  ^~~~~


Upstream code: https://github.com/janestreet/ocaml_intrinsics/blob/22cce0d47d23ebcb7d782a4d0f7ee6bf47333df3/src/crc_stubs.c#L16

This build.log looks a bit malformed in plain/text, you can use curl or cat.
Comment 4 Larry the Git Cow gentoo-dev 2025-04-06 09:10:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3caeb353ca95d8caf408b1f19c9cfbff98bc9203

commit 3caeb353ca95d8caf408b1f19c9cfbff98bc9203
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2025-04-06 09:09:15 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2025-04-06 09:10:12 +0000

    dev-ml/ocaml_intrinsics: not building crc_stubs on ppc/riscv
    
    Bug: https://bugs.gentoo.org/893612
    Bug: https://bugs.gentoo.org/945079
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.2.ebuild | 9 ++++++++-
 dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.16.0.ebuild | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)