Skip to contentSkip to conversation

Linux 2.4.25 from ELDK 3.1 won't compile

DISCUSSION Peter Asemann 2 participants 2 messages May 2, 2005

lore
Share & tools
lore
#0 lore raw

I still didn't manage to compile a kernel. Though I unselected as much features as I could, the compiler still isn't happy. Any ideas?

Peter Asemann

make[1]: Entering directory `/opt/asemann/eldk/ppc_8xx/usr/src/linux-2.4.25/arch/ppc/kernel'

(...)

ppc_8xx-gcc -D__KERNEL__ -I/opt/asemann/eldk/ppc_8xx/usr/src/linux-2.4.25/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/opt/asemann/eldk/ppc_8xx/usr/src/linux-2.4.25/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -nostdinc -I /opt/asemann/eldk/usr/lib/gcc-lib/ppc-linux/3.3.3/include -DKBUILD_BASENAME=m8xx_setup -c -o m8xx_setup.o m8xx_setup.c m8xx_setup.c:64: error: `bd_t' undeclared here (not in a function)
m8xx_setup.c: In function `m8xx_calibrate_decr':
m8xx_setup.c:192: error: `bd_t' undeclared (first use in this function)
m8xx_setup.c:192: error: (Each undeclared identifier is reported only once
m8xx_setup.c:192: error: for each function it appears in.)
m8xx_setup.c:192: error: `binfo' undeclared (first use in this function)
m8xx_setup.c:192: error: parse error before ')' token
m8xx_setup.c:196: error: `IMAP_ADDR' undeclared (first use in this function)
m8xx_setup.c: In function `m8xx_set_rtc_time':
m8xx_setup.c:269: error: `IMAP_ADDR' undeclared (first use in this function)
m8xx_setup.c: In function `m8xx_get_rtc_time':
m8xx_setup.c:279: error: `IMAP_ADDR' undeclared (first use in this function)
m8xx_setup.c: In function `m8xx_restart':
m8xx_setup.c:288: error: `IMAP_ADDR' undeclared (first use in this function)
m8xx_setup.c: In function `m8xx_show_percpuinfo':
m8xx_setup.c:317: error: `bd_t' undeclared (first use in this function)
m8xx_setup.c:317: error: `bp' undeclared (first use in this function)
m8xx_setup.c:319: error: parse error before ')' token
m8xx_setup.c: In function `m8xx_find_end_of_memory':
m8xx_setup.c:377: error: `bd_t' undeclared (first use in this function)
m8xx_setup.c:377: error: `binfo' undeclared (first use in this function)
m8xx_setup.c:380: error: parse error before ')' token
m8xx_setup.c:378: warning: unused variable `__res'
m8xx_setup.c: In function `m8xx_map_io':
m8xx_setup.c:394: error: `IMAP_ADDR' undeclared (first use in this function)
m8xx_setup.c:394: error: `IMAP_SIZE' undeclared (first use in this function)
m8xx_setup.c: In function `platform_init':
m8xx_setup.c:441: error: `bd_t' undeclared (first use in this function)
make[1]: *** [m8xx_setup.o] Error 1
make[1]: Leaving directory `/opt/asemann/eldk/ppc_8xx/usr/src/linux-2.4.25/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Error 2

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

I still didn't manage to compile a kernel. Though I unselected as much features as I could, the compiler still isn't happy. Any ideas?

Which board are you using? Are you sure that the board support is complete and working? Is there a default configuration for your board? Does this one work?

Did you RTFM (the DULG, to be precise) ?

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Status quo. Latin for "the mess we're in."