Hi!
On Wed, Mar 13, 2019 at 07:44:13PM +0000, Mark Cave-Ayland wrote:
Welcome to the project! When I build the release binaries for QEMU I cross-compile them on x86 using a custom-built gcc:
$ sparc64-elf-gcc -v Using built-in specs. COLLECT_GCC=sparc64-elf-gcc COLLECT_LTO_WRAPPER=/home/build/sparc-cross/libexec/gcc/sparc64-elf/7.3.0/lto-wrapper Target: sparc64-elf Configured with: ../gcc-7.3.0/configure --prefix=/home/build/sparc-cross --target=sparc64-elf --disable-libssp --disable-threads --enable-languages=c --enable-targets=all
Nice and simple, good good.
Thread model: single gcc version 7.3.0 (GCC)
and I build the sparc64 binary like this:
./config/scripts/switch-arch sparc64; make
I haven't upgraded my toolchain to gcc 8.0 yet, so there is the possibility that a
And you shouldn't, we're at 8.3 already (and 7.4) ;-P
bug has been introduced somewhere - are you able to test with gcc 7 at all?
The above warning is probably an issue with the include files, however it shouldn't produce an invalid executable. Does changing -Os to -O2 in Makefile.target help at all?
Segher