Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890363 - sys-devel/bison and sys-devel/patch: riscv64-pc not recognized
Summary: sys-devel/bison and sys-devel/patch: riscv64-pc not recognized
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: riscv Linux
: Normal minor (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-10 20:13 UTC by Bob Dröge
Modified: 2024-03-02 21:29 UTC (History)
2 users (show)

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


Attachments
Bootstrap stage 1 log (stage1.log,338.67 KB, text/x-log)
2023-02-28 17:04 UTC, Bob Dröge
Details
Bison 2.4 config.log (config.log,26.58 KB, text/x-log)
2023-02-28 17:05 UTC, Bob Dröge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Dröge 2023-01-10 20:13:56 UTC
I tried to do a bootstrap of Gentoo Prefix on a Starfive VisionFive 2 (which has a RISC-V CPU) today, and it failed in stage 1 due to failures of sys-devel/bison and sys-devel/patch:

checking build system type... Invalid configuration `riscv64-pc-linux-gnu': machine `riscv64-pc' not recognized

Both could be easily solved by installing these tools on the host operating system, but just wanted to report it anyway, since it's probably easy to fix.
Comment 1 ArchFeh(Yu Gu) 2023-02-20 01:53:07 UTC
(In reply to Bob Dröge from comment #0)
> I tried to do a bootstrap of Gentoo Prefix on a Starfive VisionFive 2 (which
> has a RISC-V CPU) today, and it failed in stage 1 due to failures of
> sys-devel/bison and sys-devel/patch:
> 
> checking build system type... Invalid configuration `riscv64-pc-linux-gnu':
> machine `riscv64-pc' not recognized
> 
> Both could be easily solved by installing these tools on the host operating
> system, but just wanted to report it anyway, since it's probably easy to fix.

Could you please attach the build log? I have successfully compiled with
"checking build system type... riscv64-unknown-linux-gnu
checking host system type... riscv64-unknown-linux-gnu"

Try change the CHOST="riscv64-unknown-linux-gnu" in /etc/portage/make.conf
Comment 2 Bob Dröge 2023-02-28 17:04:47 UTC
Created attachment 855266 [details]
Bootstrap stage 1 log
Comment 3 Bob Dröge 2023-02-28 17:05:15 UTC
Created attachment 855268 [details]
Bison 2.4 config.log
Comment 4 Bob Dröge 2023-02-28 17:08:34 UTC
I tried creating a folder $EPREFIX/etc/portage and a file make.conf (doesn't exist yet at this point) containing that line, but that didn't seem to help. It's still complaining about the same thing:


checking build system type... Invalid configuration `riscv64-pc-linux-gnu': machine `riscv64-pc' not recognized
configure: error: /bin/bash build-aux/config.sub riscv64-pc-linux-gnu failed
Comment 5 Fabian Groffen gentoo-dev 2023-05-03 19:15:04 UTC
I've bumped bison in the hope that fixes it, but the fact it falls back to 2.4 isn't hopeful.
Comment 6 Bob Dröge 2024-03-02 21:29:56 UTC
I've just started another bootstrap on the same hardware (with the latest version of the bootstrap script), and this seems to work fine now: it's picking up Bison 3.8.2 and this version installed without any issues. So I'm closing this issue.