Am 01.06.2012 02:48, schrieb P. Wilhelm:
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).
I recently built a new set of cross-compilers for sparc-elf myself and ran into no issues with binutils 2.22 and gcc 4.7.0 (on openSUSE 12.1).
Here's my configure command lines:
../binutils-2.22/configure --prefix=/usr/local --target=sparc-elf \ --disable-nls
../gcc-4.7.0/configure --prefix=/usr/local --target=sparc-elf \ --disable-nls --enable-languages=c --disable-libssp
Regards, Andreas