[U-Boot-Users] Compile Error : kb9202 board!

S M Yaseen Lanka yaseenlanka at yahoo.com
Thu Mar 8 20:16:26 CET 2007


hello all..
 i am using buildroot to compile u-boot (u-boot 1.2.0)
for the kb9202 board. the buildroot is compiled with
the following:
 Target Architecture (arm)
 Target Architecture Variant (arm720t)
 Target ABI (OABI)
 Kernel Headers (Linux 2.6.12 kernel headers)
 Binutils Version (binutils 2.16.91.0.7)
 GCC compiler Version (gcc 3.4.5)
 [*] Build/install c++ compiler and libstdc++?
 [*] Build/install a shared libgcc?
 [*] Run mklibs on the built root filesystem
 [*] Enable multilib support?
 [*] Use software floating point by default
 [*] Include target utils in cross toolchain
buildroot is compiled fine..i get the cross complier
arm-linux-

i do a make kb9202_config. an error occurs when i do a
make


[yaseenlanka at localhost u-boot]$ make
                       .
                       .
                       .
a - cr.o
a - b.o
a - multi.o
a - string.o
a - complex.o
make[1]: Leaving directory
`/home/rayyan/Desktop/kb9202b/tools_source/u-boot-1.2.0/post/cpu'
make -C cpu/arm920t start.o
make[1]: Entering directory
`/home/rayyan/Desktop/kb9202b/tools_source/u-boot-1.2.0/cpu/arm920t'
make[1]: Leaving directory
`/home/rayyan/Desktop/kb9202b/tools_source/u-boot-1.2.0/cpu/arm920t'
make[1]: Entering directory
`/home/rayyan/Desktop/kb9202b/tools_source/u-boot-1.2.0/cpu/arm920t'
arm-linux-gcc  -D__ASSEMBLY__ -g  -Os  
-fno-strict-aliasing  -fno-common -ffixed-r8
-msoft-float -malignment-traps -D__KERNEL__
-DTEXT_BASE=0x21f00000 
-I/home/rayyan/Desktop/kb9202b/tools_source/u-boot-1.2.0/include
-fno-builtin -ffreestanding -nostdinc -isystem
/home/rayyan/uqba_proj/buildroot/build_arm_nofpu/staging_dir/lib/gcc/arm-linux-uclibc/3.4.5/include
-pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32
-c -o start.o start.S
start.S: Assembler messages:
start.S:185: Error: invalid constant (20200) after
fixup
start.S:375: Error: invalid constant (28200) after
fixup
start.S:376: Error: invalid constant (28200) after
fixup
start.S:381: Error: invalid constant (28200) after
fixup
start.S:382: Error: invalid constant (28200) after
fixup
start.S:387: Error: invalid constant (28200) after
fixup
start.S:388: Error: invalid constant (28200) after
fixup
start.S:393: Error: invalid constant (28200) after
fixup
start.S:394: Error: invalid constant (28200) after
fixup
start.S:399: Error: invalid constant (28200) after
fixup
start.S:400: Error: invalid constant (28200) after
fixup
start.S:424: Error: invalid constant (28200) after
fixup
start.S:425: Error: invalid constant (28200) after
fixup
start.S:430: Error: invalid constant (28200) after
fixup
start.S:431: Error: invalid constant (28200) after
fixup
make[1]: *** [start.o] Error 1

the invalid constant is CFG_MALLOC_LEN (defined in
more den 300+ .h files), two macros call the same
constant   (get_bad_stack, bad_save_user_regs). i did
a search for the definition CFG_MALLOC_LEN, its
defined in more den 300+ .h files. only 2 .h files are
included in start.S (#include <config.h> #include
<version.h>). 

the CFG_MALLOC_LEN is defined in configs/kb9202.h,
which comes to the above value(20200 & 28200). i tried
including configs/kb9202.h directly in start.S
(#include <configs/kb9202.h>). it did not resolve the
problem.

Someone please help me...i have a deadline!!!
Thanks..


 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/




More information about the U-Boot mailing list