[ELDK] Compilation problems with ELDK 4.2

Chuan Neng Lee lee at adept.com
Tue Jul 22 03:56:37 CEST 2008


Hi all, I have been using ELDK 4.1 for a while, successfully.
Thank you to DENX for the great work.

Now, however I have found compilation problems with both ELDK 4.2
and linux-2.6-denx from git.  I am trying to compile a default
config for a PPC LITE5200 evaluation board.  Assuming the root
directory of /opt/eldk_42, building on a Fedora Core 6 Linux
running on x86, if I cross-compile as follows:

export PATH=$PATH:/opt/eldk_42/usr/bin:/opt/eldk_42/bin

make ARCH=ppc CROSS_COMPILE=ppc_6xx- mrproper
make ARCH=ppc CROSS_COMPILE=ppc_6xx- menuconfig   # didn't change option 
here
make ARCH=ppc CROSS_COMPILE=ppc_6xx-

The following error will occur:

================snip=======
  .
  .
  .
  LD      arch/ppc/syslib/bestcomm/built-in.o
  LD      arch/ppc/syslib/built-in.o
  CC      arch/powerpc/sysdev/bestcomm/bestcomm.o
In file included from arch/powerpc/sysdev/bestcomm/bestcomm.c:19:
include/linux/of.h:39: error: expected identifier or '(' before 'void'
include/linux/of.h:39: error: expected ')' before numeric constant
include/linux/of.h:45: error: expected ')' before 'handle'
include/linux/of.h:54: error: expected identifier or '(' before 'void'
include/linux/of.h:54: error: expected ')' before numeric constant
In file included from include/linux/of_platform.h:55,
                 from arch/powerpc/sysdev/bestcomm/bestcomm.c:21:
arch/ppc/include/asm/of_platform.h:32: error: expected ')' before 'ph'
arch/powerpc/sysdev/bestcomm/bestcomm.c: In function 'bcom_task_alloc':
arch/powerpc/sysdev/bestcomm/bestcomm.c:74: error: implicit declaration 
of function 'irq_of_parse_and_map'
arch/powerpc/sysdev/bestcomm/bestcomm.c:98: error: implicit declaration 
of function 'irq_dispose_mapping'
arch/powerpc/sysdev/bestcomm/bestcomm.c: In function 'bcom_engine_init':
arch/powerpc/sysdev/bestcomm/bestcomm.c:324: error: 'MPC5200_SVR_MASK' 
undeclared (first use in this function)
arch/powerpc/sysdev/bestcomm/bestcomm.c:324: error: (Each undeclared 
identifier is reported only once
arch/powerpc/sysdev/bestcomm/bestcomm.c:324: error: for each function it 
appears in.)
arch/powerpc/sysdev/bestcomm/bestcomm.c:324: error: 'MPC5200_SVR' 
undeclared (first use in this function)
arch/powerpc/sysdev/bestcomm/bestcomm.c: In function 'mpc52xx_bcom_probe':
arch/powerpc/sysdev/bestcomm/bestcomm.c:373: error: implicit declaration 
of function 'of_node_get'
arch/powerpc/sysdev/bestcomm/bestcomm.c:384: error: implicit declaration 
of function 'of_node_put'
arch/powerpc/sysdev/bestcomm/bestcomm.c:405: error: implicit declaration 
of function 'of_address_to_resource'
make[2]: *** [arch/powerpc/sysdev/bestcomm/bestcomm.o] Error 1
make[1]: *** [arch/powerpc/sysdev/bestcomm] Error 2
make: *** [arch/powerpc/sysdev] Error 2
================ end============


Now, if I try the same thing with the latest code from git:

make ARCH=ppc CROSS_COMPILE=ppc_6xx- mrproper
make ARCH=ppc CROSS_COMPILE=ppc_6xx- menuconfig   # didn't change option 
here
make ARCH=ppc CROSS_COMPILE=ppc_6xx-

The following error will occur:

=================snip======
  .
  .
  .
  AS      arch/ppc/boot/simple/relocate.o
  CC      arch/ppc/boot/simple/misc.o
  CC      arch/ppc/boot/simple/mpc52xx_tty.o
arch/ppc/boot/simple/mpc52xx_tty.c: In function 'serial_init':
arch/ppc/boot/simple/mpc52xx_tty.c:93: error: 'struct mpc52xx_psc' has 
no member named 'tfalarm'
make[2]: *** [arch/ppc/boot/simple/mpc52xx_tty.o] Error 1
make[1]: *** [simple] Error 2
make: *** [zImage] Error 2
=================end=========


What am I missing?

Thank you!

- Lee



More information about the eldk mailing list