[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Same procedure as every year: GCC defaults change (GCC 9)



On 2019-08-05 09:58, Dennis Clarke wrote:
> On 8/5/19 5:56 AM, Aurelien Jarno wrote:
> > Hi,
> > 
> > On 2019-07-27 17:28, Matthias Klose wrote:
> >> GCC 9 was released earlier this year, it is now available in Debian
> >> testing/unstable. I am planning to do the defaults change in mid August, around
> >> the time of the expected first GCC 9 point release (9.2.0).
> > 
> > Do you also plan to bump the GCC version used to bootstrap itself from 8
> > to 9? If yes, could you please enable gnat on riscv64. Support has been
> > added upstream in GCC 9, and I have successfully bootstrapped it.
> > 
> 
> Hold on a second here.  Has anyone ever actually been able to cross
> compile gnat to a rv64imafdc target ?

Yes, I have been able to build it. It's only lightly tested, but it is
at least able to compile itself. You can find the binaries there:

https://temp.aurel32.net/riscv64/gnat/

(I'll remove that directory once we get it properly into the archive)


> If so I'd like to see how they managed that.

- On an amd64, build a gnat cross compiler being able to build riscv64
  binaries from ada source code, and brning most notably libgnat:
  - build  = x86_64-linux-gnu
  - host   = x86_64-linux-gnu
  - target = riscv64-linux-gnu

- Using that cross compiler and the corresponding libraries, build a
  cross-native gnat compiler:
  - build  = x86_64-linux-gnu
  - host   = riscv64-linux-gnu
  - target = riscv64-linux-gnu

- Copy all the generated binaries to a riscv64 machine and build a
  native gnat compiler:
  - build  = riscv64-linux-gnu
  - host   = riscv64-linux-gnu
  - target = riscv64-linux-gnu

- Rebuild natively a second time to make sure everything works.

Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net

Attachment: signature.asc
Description: PGP signature


Reply to: