Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942317 - cross_llvm-riscv32-unknown-elf/newlib-4.4.0.20231231:0 fails during setup phase
Summary: cross_llvm-riscv32-unknown-elf/newlib-4.4.0.20231231:0 fails during setup phase
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-27 07:35 UTC by Hendrik Klug
Modified: 2024-11-30 06:40 UTC (History)
1 user (show)

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


Attachments
tar archive containing cross_llvm-riscv32-unknown-elf-info.log, cross_llvm-riscv32-unknown-elf-newlib-headers.log.xz, newlib-config.logs.tar.xz (cross_llvm-riscv32.tar,30.00 KB, application/x-tar)
2024-10-27 07:35 UTC, Hendrik Klug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Klug 2024-10-27 07:35:27 UTC
Created attachment 906952 [details]
tar archive containing cross_llvm-riscv32-unknown-elf-info.log, cross_llvm-riscv32-unknown-elf-newlib-headers.log.xz, newlib-config.logs.tar.xz

When trying to build a crosscompilation toolchain for riscv32-unknown-elf with llvm by runnin:
crossdev --lenv 'USE="nano -nls -threads -unicode"' -s1 -t riscv32-unknown-elf -L
newlib fails to build.

Looking at the newlib-4.4.0.20231231.ebuild ebuild, it seems weird that it is matching CTARGET with CHOST to check that crossdev is being used. 
The embedded handbook seems to say that they're supposed to be the same:
https://wiki.gentoo.org/wiki/Embedded_Handbook/General/Full#Environment_variables
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-30 06:40:52 UTC
Note that the LLVM support for crossdev is very experimental.