Bug#1010148: openmsx: FTBFS on riscv64

2022-05-03 Thread Jessica Clarke
On 4 May 2022, at 00:51, olivier-gondo...@laposte.net wrote:
> 
> ‌
> Hi,
> 
> Sorry if I don't answer the good way, I'm new in patch contribution of Debian.
> 
> ‌Here is a patch for OpenMSX 17.0 on RISCV64, not specific to Debian. in the 
> hope it can help you.
> 
> Regards.
> 
> commit 3846683656aef48a4faa26e8213163fb21cecd34
> Author: Olivier Gondouin 
> Date:   Tue May 3 23:36:47 2022 +
> 
> patch riscv64
> 
> diff --git a/build/detectsys.py b/build/detectsys.py
> index 060e4a8..27ee135 100644
> --- a/build/detectsys.py
> +++ b/build/detectsys.py
> @@ -35,6 +35,8 @@ def detectCPU():
>   return 'aarch64'
>   elif cpu == 'aarch64_be':
>   return 'aarch64_be'
> + elif cpu == 'riscv64':
> + return 'riscv64'
>   elif cpu.startswith('mips') or cpu == 'sgi':
>   return 'mipsel' if cpu.endswith('el') else 'mips'
>   elif cpu == 'm68k':
> diff --git a/build/flavour-riscv64.mk b/build/flavour-riscv64.mk
> new file mode 100644
> index 000..ec4c293
> --- /dev/null
> +++ b/build/flavour-riscv64.mk
> @@ -0,0 +1,7 @@
> +# Configuration for "riscv64" flavour:
> +
> +# Start with generic optimisation flags.
> +include build/flavour-opt.mk
> +
> +# Add riscv64 specific flags.
> +CXXFLAGS+=-march=rv64g

The Debian baseline is rv64gc and is the default, so I don’t understand
why this is here?

Jess

> diff --git a/build/main.mk b/build/main.mk
> index 2e93733..48cdfb7 100644
> --- a/build/main.mk
> +++ b/build/main.mk
> @@ -159,10 +159,14 @@ else
>  ifeq ($(OPENMSX_TARGET_CPU),m68k)
>  OPENMSX_FLAVOUR?=m68k
>  else
> +ifeq ($(OPENMSX_TARGET_CPU),riscv64)
> +OPENMSX_FLAVOUR?=riscv64
> +else
>  OPENMSX_FLAVOUR?=opt
>  endif
>  endif
>  endif
> +endif
>  
>  # Load OS specific settings.
>  $(call DEFCHECK,OPENMSX_TARGET_OS)



Bug#1010148: openmsx: FTBFS on riscv64

2022-04-25 Thread Bo YU
Source: openmsx
Version: 17.0-2
Followup-For: Bug #1010148
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org



Bug#1010148: openmsx: FTBFS on riscv64

2022-04-25 Thread Bo YU
Package: openmsx
Version: 17.0-2
Severity: normal

Dear Maintainer,

The openmsx_17.0-2 has a ftbfs issue on riscv64 arch:

```
dpkg-buildpackage
-

Command: dpkg-buildpackage --sanitize-env -us -uc -mriscv64 Build Daemon 
(rv-mullvad-03)  -B -rfakeroot
dpkg-buildpackage: info: source package openmsx
dpkg-buildpackage: info: source version 17.0-2
dpkg-buildpackage: info: source distribution unstable
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture riscv64
fakeroot debian/rules clean
dh clean
debian/rules override_dh_auto_clean
make[1]: Entering directory '/<>'
dh_testdir
dh_testroot
/usr/bin/make clean
make[2]: Entering directory '/<>'
Using Python: python3
Unsupported or unrecognised CPU "riscv64"
build/main.mk:126: *** No platform specified using OPENMSX_TARGET_CPU and 
OPENMSX_TARGET_OS and autodetection of local platform failed.  Stop.
make[2]: Leaving directory '/<>'
make[1]: *** [debian/rules:15: override_dh_auto_clean] Error 2
make[1]: Leaving directory '/<>'
make: *** [debian/rules:4: clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit 
status 2

Build finished at 2022-04-22T12:03:01Z
```

The full buildd log is:

https://buildd.debian.org/status/fetch.php?pkg=openmsx=riscv64=17.0-2=1650628993=0