| Summary: | RISCV RV32IA selected, RV64GC output | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | lelassal |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED INVALID | ||
| Severity: | major | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2019.11 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | All | ||
| Host: | Target: | ||
| Build: | |||
|
Description
lelassal
2020-02-03 00:18:27 UTC
Thanks for your report. Instead of looking at the kernel code, could you instead look at some user-space application or library ? Indeed, the kernel build system very often overrides the toolchain architecture/ABI flags, depending on the kernel configuration. Also, could you share a Buildroot .config file that allows to reproduce the issue ? I'm closing due to the lack of feedback, and missing information to properly debug this. So sorry I didn't get a notification about your previous message! > Thanks for your report. Instead of looking at the kernel code, could you instead look at some user-space application or library ? I don't know how I can get you this... > Also, could you share a Buildroot .config file that allows to reproduce the issue ? Here you go: https://pastebin.com/VAri9WdE Thank you and again apologies for the delay as I hadn't seen that you replied. Hello The configuration that you posted won't build due to a missing entry for the location of your kernel configuration file (BR2_LINUX_KERNEL_DEFCONFIG). The default RISC-V configuration for the 5.0.13 kernel is for a 64-bit build, so you would need to provide an appropriate kernel config fragment to change this to 32-bit. Note that there is now an 'rv32_defconfig' in the kernel tree (since the 5.1 release). However, the minimum ISA requirement for the 5.0.13 kernel is RV32im and later kernels require RV32ima (see arch/riscv/Makefile), so it seems that you wouldn't actually be able to build an RV32ia (or RV32i) kernel anyway. Regards Mark We still don't have any way of reproducing the issue, and both Mark and I believe there is in fact no issue: whether the kernel is 64 bit or 32 bit is not directly Buildroot's fault: it is up to having a correct Linux kernel configuration. |