On Sat, Jul 7, 2018 at 10:06 AM, Andreas Schwab <sch...@linux-m68k.org> wrote: > On Jul 07 2018, Jim Wilson <j...@sifive.com> wrote: > >> If you build and install binutils, and then build and install gcc, the >> build will work. > > Not if the compiler was built in a canadian cross. That's the only way > to bootstrap an Ada compiler.
It worked for me. I have RISC-V Fedora Linux Ada compiler binaries that I built cross from an x86_64 Ubuntu 18.04 system. You should only see the gas error if your gas sources are in the same source tree as your gcc sources. if you have separate binutils and gcc source trees, the build should work. In the gcc/configure.ac file, see the in_tree_gas and in_tree_gas_elf variables, which are set if gas/ELF gas are in the same source tree. And then look at configure, and note that configure makes assumptions about gas features when these variables are set, instead of doing run-time assembler checks. I've done number of canadian cross compiler builds, and I've never run into this gas problem in any of them, but I always use separate binutils and gcc source trees for my builds. Jim