AnsweredAssumed Answered

Using LTIB and custom toolchain

Question asked by Rohit Girme on Jul 29, 2009
Latest reply on Jul 31, 2009 by Rohit Girme
Hello,

I tried using the LTIB from Freescale. I am using a custom toolchain along LTIB to build the Linux kernel image for MCF5485evb. I made the necessary changes in the LTIB settings to build it using my toolchain. Everything runs fine until I get this error:

/home/rohit/Programs/LTIB/
ltib-m5475evb-20080808/rpm/BUILD/busybox-1.1.3/modutils/insmod.c: In function 'arch_apply_relocation':
/home/rohit/Programs/LTIB/ltib-m5475evb-20080808/rpm/BUILD/busybox-1.1.3/modutils/insmod.c:864: warning: unused variable 'got'
  CC modutils/modprobe.o
  CC modutils/rmmod.o
  CC networking/ftpgetput.o
  CC networking/hostname.o
  CC networking/ifconfig.o
  CC networking/ifupdown.o
  CC networking/inetd.o
  CC networking/interface.o
  CC networking/ip.o
  CC networking/ipaddr.o
  CC networking/iplink.o
  CC networking/iproute.o
  CC networking/nc.o
  CC networking/netstat.o
  CC networking/ping.o
  CC networking/route.o
  CC networking/telnet.o
  CC networking/telnetd.o
  CC networking/tftp.o
  CC networking/traceroute.o
  CC networking/vconfig.o
  CC networking/wget.o
  CC networking/libiproute/ip_parse_common_args.o
  CC networking/libiproute/ipaddress.o
  CC networking/libiproute/iplink.o
  CC networking/libiproute/iproute.o
  CC networking/libiproute/iptunnel.o
In file included from /home/rohit/CodeSourcery_free/Sourcery_G++_Lite/bin/../m68k-linux-gnu/libc/usr/include/linux/if_tunnel.h:5,
                 from /home/rohit/Programs/LTIB/ltib-m5475evb-20080808/rpm/BUILD/busybox-1.1.3/networking/libiproute/iptunnel.c:34:
/home/rohit/CodeSourcery_free/Sourcery_G++_Lite/bin/../m68k-linux-gnu/libc/usr/include/linux/ip.h:85: error: redefinition of 'struct iphdr'
  CC networking/libiproute/libnetlink.o
make[1]: *** [/home/rohit/Programs/LTIB/ltib-m5475evb-20080808/rpm/BUILD/busybox-1.1.3/networking/libiproute/iptunnel.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes.  Stop.
make: *** [_all] Error 2
error: Bad exit status from /home/rohit/Programs/LTIB/ltib-m5475evb-20080808/tmp/rpm-tmp.19617 (%build)


RPM build errors:
    Bad exit status from /home/rohit/Programs/LTIB/ltib-m5475evb-20080808/tmp/rpm-tmp.19617 (%build)
Build time for busybox: 20 seconds

Failed building busybox



f_buildrpms() returned an error, exiting
traceback:
 main:501


Started: Tue Jul 28 14:15:22 2009
Ended:   Tue Jul 28 14:21:27 2009
Elapsed: 365 seconds

These packages failed to build:
busybox

Build Failed

Exiting on error or interrupt
 
I checked the make files but couldnt find anything. Can you help me out with this? What do I need to do to successfully complete build?

Thank you for your time. I am grateful.

Thanks,
Rohit

Outcomes