[OpenBIOS] Compiling Openbios with Sparc cross compiler

Nathan Kunkee nkunkee42 at hotmail.com
Mon Jun 4 05:05:17 CEST 2012


On 06/ 2/12 09:09 PM, Paul Wilhelm wrote:
> I tried installing openSUSE 12.1 from scratch (since that is working for
> Andreas). I grabbed all tools except binutils and gcc from SUSE
> packages. I used the configure scripts you kindly provided, Andreas, for
> binutils and for gcc. I get the same error with openSUSE as I did with
> Arch. Have I overlooked an environment variable that needs to be set? I
> am just using fresh install stuff with no special environment set by me.
>
> Here is the error output and the gcc -v output.
>
> paul at linux-jkcx:~/src/openbios-devel> make
> Building OpenBIOS for sparc32
> Building...error:
> /usr/include/linux/types.h:35:1: error: unknown type name ‘__u32’
> In file included from /usr/include/bits/sigcontext.h:28:0,
>                   from /usr/include/signal.h:339,
>                   from ../kernel/bootstrap.c:13:
> /usr/include/asm/sigcontext.h:24:2: error: unknown type name ‘__u32’
> /usr/include/asm/sigcontext.h:25:2: error: unknown type name ‘__u32’
> /usr/include/asm/sigcontext.h:28:2: error: unknown type name ‘__u64’
> /usr/include/asm/sigcontext.h:33:2: error: unknown type name ‘__u32’
> /usr/include/asm/sigcontext.h:38:2: error: unknown type name ‘__u32’
> /usr/include/asm/sigcontext.h:191:2: error: unknown type name ‘__u64’
> /usr/include/asm/sigcontext.h:192:2: error: unknown type name ‘__u64’
> /usr/include/asm/sigcontext.h:193:2: error: unknown type name ‘__u64’
> /usr/include/asm/sigcontext.h:198:2: error: unknown type name ‘__u32’
> make[1]: *** [host/kernel/bootstrap.o] Error 1
> make[1]: Leaving directory `/home/paul/src/openbios-devel/obj-sparc32'
> make: *** [build] Error 1

The Makefiles wrap the commands in macros for readability. They look for 
V=1 to show the actual commands being used. To see what else is being 
included on the command line, what do you get when running

env V=1 make

?

HTH,
-Nathan



More information about the OpenBIOS mailing list