I am trying to cross compile 0.9.25.1 0.9.24 worked perfectly within my environment (I use buildroot with some mods)

 

So I did a sanity check, can i build 0.9.25.1 on my pc for i686.  This works as expected.

 

I did a cross compile of 0.9.25.1 and i get the following error

 

mipsel-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include -I../../lib -I../../lib -I../../src -D_XOPEN_SOURCE=500 -D_REENTRANT -O3 -ffast-math -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -c agp.c  -fPIC -DPIC -o .libs/agp.o
In file included from /mipsel-linux-gnu/sys-include/linux/pci.h:20,
                 from agp.c:45:
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:18: error: parse error before "__u32"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:20: error: parse error before "class"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:21: error: parse error before "driver_data"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:31: error: parse error before "__u32"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:33: error: parse error before "model_id"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:34: error: parse error before "specifier_id"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:35: error: parse error before "version"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:36: error: parse error before "driver_data"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:99: error: parse error before "__u16"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:103: error: parse error before "idProduct"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:104: error: parse error before "bcdDevice_lo"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:105: error: parse error before "bcdDevice_hi"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:108: error: parse error before "bDeviceClass"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:109: error: parse error before "bDeviceSubClass"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:110: error: parse error before "bDeviceProtocol"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:113: error: parse error before "bInterfaceClass"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:114: error: parse error before "bInterfaceSubClass"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:115: error: parse error before "bInterfaceProtocol"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:118: error: parse error before "driver_info"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:135: error: parse error before "__u16"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:138: error: parse error before "dev_type"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:139: error: parse error before "cu_model"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:140: error: parse error before "dev_model"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:142: error: parse error before "driver_info"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:155: error: parse error before "__u8"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:160: error: parse error before "__u8"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:163: error: parse error before "__u8"
/mipsel-linux-gnu/sys-include/linux/mod_devicetable.h:165: error: parse error before '}' token
make[5]: *** [agp.lo] Error 1

 

This is because linux/types.h does not seem to be included from agp.c (should it be?)

 

If I include this file I get errors for the remaining undefined type kernel_ulong_t.

 

I am using gcc 3.3.4 with a linux kernel version of 2.6.11.6 (old i know)

 

Has anyone else been having these problems with cross compiling?

Obviously I am thinking why do i want AGP support anyway as I am running on an embedded processor.  However i do need fb support as that is supported!

 

Anyone with any helpful ideas it would be appreciated.  I have tried to locate the definition of kernel_ulong_t using http://lxr.linux.no  and it seems to suggest it is defined in the file mod_devicetable.h if the flag __KERNEL__ is used but this is not defined when building DirectFB.

 

I know this is a problem with my environment/include path but I have tried all the obvious things and am hoping someone can point out a really simple thing i have forgotten to do

 

Hope you can help

Daniel Laird

 

 

 



Express yourself instantly with MSN Messenger! MSN Messenger
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to