Bug#896063: gcc-default-ports: cross compiler for RISC-V 32bit
On Thu, Apr 19, 2018 at 07:58:13AM +0200, Heinrich Schuchardt wrote: > Source: gcc-defaults-ports > Version: 1.176 > Severity: wishlist > > Dear Maintainer, > > we have a package to cross compile RISC-V 64-bit (gcc-riscv64-linux-gnu). > > Could you, please, also provide a similar package to cross compile RISC-V > 32-bit. > > This package is needed when developing software for 32-bit embedded RISC-V > systems. Hello, providing a gcc-riscv32-linux-gnu cross-compiler in Debian unfortunately isn't possible yet as upstream glibc currently has only support for riscv64, but not for riscv32. Making predictions about the future is obviously difficult, but from looking at the current state of development I would guess that riscv32 support probably won't make it into the glibc 2.28 release which is planned for August 1, 2018, so we are probably talking about a timeframe of "sometime in 2019". I'm CCing the debian-riscv list in case somebody there should have further insights regarding riscv32 support in glibc. Regards, Karsten -- Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der Werbung sowie der Markt- oder Meinungsforschung.
Bug#892217: [PATCH] libffi: Please add support for the riscv64 architecture
Source: libffi Version: 3.3~20180131 Severity: wishlist X-Debbugs-CC: debian-ri...@lists.debian.org Tags: patch User: debian-ri...@lists.debian.org Usertags: riscv64 Hello, we are in the process of bootstrapping a Debian port for the riscv64 architecture (https://wiki.debian.org/RISC-V). The libffi package is part of the build-dependency chain for the essential package set, so we need to build it for riscv64 to be able to complete the bootstrap process. Current upstream libffi doesn't yet have support for the RISC-V architecture, but a pull request to add it has been submitted: https://github.com/libffi/libffi/pull/281/ respectively https://patch-diff.githubusercontent.com/raw/libffi/libffi/pull/281.patch The pull request has been authored by one of the Fedora riscv64 porters and the Fedora riscv64 port already uses this patchset. It would be great if you could add the patchset to the Debian libffi package as well. The RISC-V support provided by the patchset is not all-encompassing (please cf. the last comment from Stefan O'Rear in the pull request), but it provides the same amount of features that libffi has for a number of other Debian-supported architectures, so that shouldn't be a problem. The symbols file would need to be adjusted, though: dh_makeshlibs -plibffi7 --add-udeb=libffi7-udeb dpkg-gensymbols: warning: some symbols or patterns disappeared in the symbols file: see diff output below dpkg-gensymbols: warning: debian/libffi7/DEBIAN/symbols doesn't match completely debian/libffi7.symbols --- debian/libffi7.symbols (libffi7_3.3~20180131-2_riscv64) +++ dpkg-gensymbols50ytax 2018-03-06 21:11:57.533480937 + @@ -2,5 +2,5 @@ (symver)LIBFFI_BASE_7.0 3.3~20170512 (symver)LIBFFI_BASE_7.1 3.3~20170512 (symver)LIBFFI_CLOSURE_7.0 3.3~20170512 - (symver|arch=!hppa !ia64 !m68k !mips !mipsel !mips64el !powerpc !powerpcspe !ppc64 !ppc64el !sh4)LIBFFI_COMPLEX_7.0 3.3~20170512 - (symver|arch=!hppa !ia64 !m68k !sh4)LIBFFI_GO_CLOSURE_7.0 3.3~20170512 +#MISSING: 3.3~20180131-2# (symver|arch=!hppa !ia64 !m68k !mips !mipsel !mips64el !powerpc !powerpcspe !ppc64 !ppc64el !sh4)LIBFFI_COMPLEX_7.0 3.3~20170512 +#MISSING: 3.3~20180131-2# (symver|arch=!hppa !ia64 !m68k !sh4)LIBFFI_GO_CLOSURE_7.0 3.3~20170512 Regards, Karsten -- Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der Werbung sowie der Markt- oder Meinungsforschung.