Unable to compile the U-boot-0.4.8 version for OMAP1610/1510/smdk2410
Hi All,
I am not able to compile the new u-boot tar ball i.e. u-boot-0.4.8, u-boot-0.4.7 compiles fine .
I got the following error message after
make omap1610inn_config
make command
"In file included from /home/rahul/omap1610/0-4-8/u-boot-0.4.8/include/common.h:4 0,
from uboot_drv.c:26:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:43: parse error before
`__gnuc_va_list' /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:43: warning: data defin
ition has no type or storage class /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:110: parse error before
`va_list' "
can anybody tell me what is the problem.
Thanks
Rahul
Dear Rahul,
Quoted 6 lines · in message <002701c37923$8fc51520$d253579d@a0875497> you wrote:
I am not able to compile the new u-boot tar ball i.e. u-boot-0.4.8, u-boot-0.4.7 compiles fine .
I got the following error message after
makeomap1610inn_config
make command
...
Quoted 11 lines
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:43: parse error before
`__gnuc_va_list'/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:43: warning: data defin
ition has no type or storage class/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:110: parse error before
`va_list' "can anybody tell me what is the problem.
This means that your cross compiler is broken. The cross compiler must NEVER reference include files from the native development system.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de "He was so narrow minded he could see through a keyhole with both eyes ..."
Quoted 22 lines · Wolfgang Denk
Dear Rahul,
Quoted 5 lines · in message <002701c37923$8fc51520$d253579d@a0875497> you wrote:
I am not able to compile the new u-boot tar ball i.e. u-boot-0.4.8, u-boot-0.4.7 compiles fine .
I got the following error message after
makeomap1610inn_config
make command...
Quoted 10 lines
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:43: parse error before
`__gnuc_va_list'/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:43: warning: data defin
ition has no type or storage class/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:110: parse error before
`va_list' "
Quoted 6 lines
Quoted 1 line
can anybody tell me what is the problem.
This means that your cross compiler is broken. The cross compiler must NEVER reference include files from the native development system.
Um, it's not the cross compiler that's doing it in this case. gccincdir is not defined for drivers/sk98lin. Try the attached patch. It WFM/YMMV.
--
Regards,
George
Quoted 5 lines
Best regards,
Wolfgang Denk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20030912/f44bba7f/attachment.txt
Dear George,
Quoted 3 lines · in message <[email protected]> you wrote:
Um, it's not the cross compiler that's doing it in this case. gccincdir is not defined for
drivers/sk98lin. Try the attached patch. It WFM/YMMV.
Well, gccincdir is not needed for drivers/sk98lin/* - at least not with the compilers used in the ELDK. Also, I seriously doubt if drivers/sk98lin is actually used by the omap1610inn board.
sk98lin/Makefile line 29
Quoted 8 lines
sk98lin/Makefile renamed from sk98lin/Makefile.orig +2
-0@@ -25,6 +25,8 @@ # Makefile for the SysKonnect SK-98xx device driver. # +include $(TOPDIR)/config.mk +
But this patch is OK anyway. Thanks for the hint.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de CONSUMER NOTICE: Because of the "Uncertainty Principle," It Is Impossible for the Consumer to Find Out at the Same Time Both Precisely Where This Product Is and How Fast It Is Moving.
Quoted 10 lines · Wolfgang Denk
Dear George,
Quoted 2 lines · in message <[email protected]> you wrote:
Um, it's not the cross compiler that's doing it in this case. gccincdir is not defined for
drivers/sk98lin. Try the attached patch. It WFM/YMMV.Well, gccincdir is not needed for
drivers/sk98lin/*- at least not with the compilers used in the ELDK.
Hm, that's odd. FWIW, I just tested:
ftp://ftp.leo.org/pub/eldk/2.1.0/eldk-arm-linux-x86
and it has the exact same build failure as:
ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-2.95.3.tar.bz2
Due to:
make[1]: Entering directory `/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/drivers/sk98lin' arm-linux-gcc ... -isystem /usr/lib/gcc-lib/i386-redhat-linux/2.96/include ... -c -o skge.o skge.c
W/o the patch. But I'm just being pedantic now. : )
Quoted 2 lines
Also, I seriously doubt if
drivers/sk98linis actually used by the omap1610inn board.
Correct, it's not used for omap1610inn board. But it gets built anyway and causes the build to fail due to "-isystem $(gccincdir)" where gccincdir is not explicitly defined and is probably just picking up a default from some builtin makerules or something?
--
Regards,
George
Quoted 18 lines
sk98lin/Makefile line 29
Quoted 10 lines
sk98lin/Makefile renamed from sk98lin/Makefile.orig +2
-0@@ -25,6 +25,8 @@ # Makefile for the SysKonnect SK-98xx device driver. # +include $(TOPDIR)/config.mk +But this patch is OK anyway. Thanks for the hint.
Best regards,
Wolfgang Denk