On Fri, Jun 1, 2012 at 12:48 AM, P. Wilhelm bearcat.pilot@gmail.com wrote:
I've tried to set up a new machine to compile Openbios for Sparc32. The machine is x86. OS is Arch Linux. I got all tools from the Arch packages except binutils (2.22) and gcc (4.7.0) source.
I used configuration parameters for sparc-elf-gcc as given by Blue last year on this group. But, I keep running into a compile error for the bootstrap that says that __u32 is not defined (also __u64).
This should not happen, please post the complete error message. Probably some recent code expects system headers to provide __u32 which is nonstandard.
I'm using these: $ sparc-elf-gcc -v Using built-in specs. COLLECT_GCC=sparc-elf-gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/sparc-elf/4.7.0/lto-wrapper Target: sparc-elf Configured with: ../configure --target=sparc-elf --enable-targets=sparc-elf --disable-nls --disable-threads --enable-languages=c --disable-shared --disable-libssp --disable-multilib Thread model: single gcc version 4.7.0 (GCC) $ sparc64-elf-gcc -v Using built-in specs. COLLECT_GCC=sparc64-elf-gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/sparc64-elf/4.6.0/lto-wrapper Target: sparc64-elf Configured with: ../configure --target=sparc64-elf --enable-targets=sparc64-elf --disable-nls --disable-threads --enable-languages=c --disable-shared --disable-libssp --enable-multilib Thread model: single gcc version 4.6.0 20100925 (experimental) (GCC) $ powerpc-elf-gcc-4.6.0 -v Using built-in specs. COLLECT_GCC=powerpc-elf-gcc-4.6.0 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/powerpc-elf/4.6.0/lto-wrapper Target: powerpc-elf Configured with: ../configure --target=powerpc-elf --enable-targets=powerpc-elf --disable-nls --disable-threads --enable-languages=c --disable-shared --disable-libssp --disable-multilib Thread model: single gcc version 4.6.0 20100925 (experimental) (GCC) $ powerpc64-linux-gcc-4.6.0 -v Using built-in specs. COLLECT_GCC=powerpc64-linux-gcc-4.6.0 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/powerpc64-linux/4.6.0/lto-wrapper Target: powerpc64-linux Configured with: ../configure --target=powerpc64-linux --enable-targets=powerpc64-linux --disable-nls --disable-threads --enable-languages=c --disable-shared --disable-libssp --disable-multilib --disable-decimal-float Thread model: single gcc version 4.6.0 20100925 (experimental) (GCC)
I think GCC 4.7.0 miscompiles OpenBIOS for PPC, or rather more probably our libgcc does not match theirs.
Web searches point to a similar issue about a year ago with ppc, but nothing recent or related to Sparc32. Any pointers to what I might be doing wrong are appreciated.
The x86 gcc is the generic Arch gcc that comes with the base system.
Respectfully, Paul W.
-- OpenBIOS http://openbios.org/ Mailinglist: http://lists.openbios.org/mailman/listinfo Free your System - May the Forth be with you