On Tue, Sep 24, 2024 at 09:59:43PM +0800, Qian Yun wrote: > The patch is big, so I post it at: > https://github.com/fricas/fricas/pull/181 > > I tried to build fricas on riscv (via qemu, the performance > is surprisingly good, I built fricas-1.3.11 with sbcl with > 4 cores taking less than 20 minutes.), it failed because the > platform is not recognized.
I now tried on a Risc-V machine using ecl (ATM do not have sbcl there). Build works if one explicitly says 'riscv-linux-gnu'. AFAICS it should work when one only updates 'config.guess'. And when one adds on top of your patch the attached patch. I would prefer to add this extra patch, as otherwise we get the silly 'unknown' on most machines. BTW: Debian installs programs without this part, building from unmodified Gnu sources adds it, so Debian must have something equivalent. -- Waldek Hebisch -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/fricas-devel/Z0fMW3FlMPetMc2D%40fricas.org.
diff -u config.bb/config.sub config/config.sub --- a/config/config.sub 2024-11-27 23:32:09.101864579 +0000 +++ b/config/config.sub 2024-11-28 01:33:42.882107945 +0000 @@ -2343,7 +2343,17 @@ ;; esac -echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" +case "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" in + *-unknown-*-*|*-pc-*-*|*-unknown-*-*-*|*-pc-*-*-*) + echo "$cpu${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" + ;; + *-unknown-*) + echo "$cpu-x{kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" + ;; + *) + echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" + ;; +esac exit # Local variables: