OCI image does not build on RISC-V architecture #2126
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#2126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When trying to build the OCI/Docker image on a computer with a 64-bit RISC-V CPU, the build script fails because it tries to install the x86-64 version of LLVM.
Hardware used for testing
StarFive VisionFive 2 v1.2A, SiFive JH-7110 (RV64IMAFDC, quad-core, 1.5 GHz)
Steps for reproduction
podman build -f docker/Dockerfile --build-arg TARGET_CPU=riscv64 -t continuwuitye335cde0ddDetails
Investigating the issue, the root cause seems to be that the official APT PPA for LLVM does not provide RISC-V packages, and apt is somehow defaulting to trying to install a amd64 package.
An alternate repository might need to be used to install the packages in question.
Perhaps try cross compiling, using the correct command? The
target_cpuflag is for selecting specific microarchitectures, not the target platform.docker buildx build . -f docker/Dockerfile -t continuwuity --platform linux/riscv64@Jade Will attempt that and report back soon, thanks.
We're getting an issue in the cargo build while trying to build jemalloc-sys:
(...)
A few notes:
We're attaching the full build log below, if that helps. We tried to debug what's going on but didn't have much luck.
Hmm, can you get any more error details in that log? Maybe the contents of config.log? Looks like some kind of issue with the check that the compiler is working failing to execute the... executable. Also, does building for arm64 work?
An arm64 build works normally, no issues there. Seems like the issue only happens when I build for riscv64.
I'll try to extract the config.log file later - I'll need to modify the build to do that since the file is inside a cache mount that isn't accessible after the build process ends.