Checking for host cc ... riscv64-unknown-linux-gnu-gcc The architecture of your CPU (UNKNOWN) is not supported by this configure script It seems nobody has ported MPlayer to your OS or CPU type yet. Error: unsupported architecture UNKNOWN Check "config.log" if you do not understand why it failed. * ERROR: media-video/mplayer-1.4-r1::gentoo failed (configure phase): * (no error message) Reproducible: Always
Created attachment 739073 [details] full build log
there is bug in upstream which opened 3year ago.. https://trac.mplayerhq.hu/ticket/2344
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68fe335796dbcd3ba4b47d6ab8d725ca8757183f commit 68fe335796dbcd3ba4b47d6ab8d725ca8757183f Author: Han Gao <rabenda.cn@gmail.com> AuthorDate: 2022-03-12 13:29:08 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2022-03-14 10:47:36 +0000 media-video/mplayer: ~riscv keywording Bug: https://bugs.gentoo.org/812855 Closes: https://github.com/gentoo/gentoo/pull/24506 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Han Gao <rabenda.cn@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org> media-video/mplayer/mplayer-1.4-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af8937c981e9c56681a1bb961cdcee20a47866ac commit af8937c981e9c56681a1bb961cdcee20a47866ac Author: Han Gao <rabenda.cn@gmail.com> AuthorDate: 2022-03-12 13:26:50 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2022-03-14 10:43:50 +0000 media-video/mplayer: add riscv support Bug: https://bugs.gentoo.org/812855 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Han Gao <rabenda.cn@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org> media-video/mplayer/files/mplayer-1.4-riscv-support.patch | 14 ++++++++++++++ media-video/mplayer/mplayer-1.4-r1.ebuild | 2 ++ 2 files changed, 16 insertions(+)
This is interesting: https://trac.mplayerhq.hu/ticket/2344#comment:1. 1. Does it work okay at runtime? 2. Have we sent the non-generic patch upstream?
(In reply to Sam James from comment #4) > This is interesting: https://trac.mplayerhq.hu/ticket/2344#comment:1. > > 1. Does it work okay at runtime? > 2. Have we sent the non-generic patch upstream? Patch from https://code.pa4wdh.nl.eu.org/gentoo/unmatched-patchwork/tree/media-video/mplayer/files/configure-riscv.patch It work okay but very slow.
https://salsa.debian.org/multimedia-team/mplayer/-/blob/debian/2%251.4+ds1-3/debian/patches/0203_generic-arch-fallback.patch Debian's patch hack fallback to generic. It seems same solution.
(In reply to Sam James from comment #4) > This is interesting: https://trac.mplayerhq.hu/ticket/2344#comment:1. > > 1. Does it work okay at runtime? as said, it just works, but far from usable (we'd expect fast CPU or HW acceleration) - I still think it's an improvement than none (support) > 2. Have we sent the non-generic patch upstream? No, we didn't even try to implement non-generic support, and I think it's probably beyond our scope of work for now(from the Gentoo downstream perspective). and we are here more or less trying to catch up with other distros..