AnsweredAssumed Answered

Cross_compile ISSUE

Question asked by xie xp on Apr 16, 2015
Latest reply on Apr 22, 2015 by xie xp

I have the cross_compile is arm-linux-gnueabihf4.7. Now i use for LTIB to cross_compile ubuntu 12.04, now there is two error.

FIRST,when i carry on sudo ./ltib -c,

the error is :

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ oldconfig

scripts/kconfig/conf --oldconfig Kconfig

#

# configuration written to .config

#

+ [ -f /home/znzx/Desktop/ltib/config/platform/imx/imx6_defconfig.dev ]

+ diff -q ./.config /home/znzx/Desktop/ltib/config/platform/imx/imx6_defconfig.dev

+ [ -n  ]

+ grep -q VERSION = 2 Makefile

+ [ %{kernel_series} = 2.4 ]

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ uImage

scripts/kconfig/conf --silentoldconfig Kconfig

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

  CC      kernel/bounds.s

arm-linux-gnueabihf-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together

make[1]: *** [kernel/bounds.s] Error 1

make: *** [prepare0] Error 2

make: *** Waiting for unfinished jobs....

  CC      scripts/mod/empty.o

arm-linux-gnueabihf-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together

make[2]: *** [scripts/mod/empty.o] Error 1

make[1]: *** [scripts/mod] Error 2

make[1]: *** Waiting for unfinished jobs....

make: *** [scripts] Error 2

error: Bad exit status from /home/znzx/Desktop/ltib/tmp/rpm-tmp.39089 (%build)

 

 

RPM build errors:

    Bad exit status from /home/znzx/Desktop/ltib/tmp/rpm-tmp.39089 (%build)

Build time for kernel-3.0.35: 10 seconds

 

Failed building kernel-3.0.35

 

 

f_buildrpms() returned an error, exiting

traceback:

main:572

 

 

Started: Fri Apr 17 14:54:31 2015

Ended:   Fri Apr 17 14:55:25 2015

Elapsed: 54 seconds

 

These packages failed to build:

kernel-3.0.35

 

Build Failed

 

when i cross_compile without build uboot and kernel .

there is another error:

+ [ -n  ]

+ [ -f /home/znzx/Desktop/ltib/config/.config ]

+ cat /home/znzx/Desktop/ltib/config/.config

+ perl -ne print if m,^CONFIG_(?!PCF),

+ [ ! -f config/platform/imx/.config -a -f config/platform/imx/defconfig ]

+ [ -n  ]

+ cd config/platform/imx

+ mconf main.lkc .config

 

 

*** End of configuration.

*** Check the top-level Makefile for additional configuration options.

 

+ cp .config defconfig.dev

 

Processing platform: Freescale iMX6x Based Boards

===================================================

using config/platform/imx/.config

 

Processing: fake-provides

===========================

 

Processing: skell

===================

 

Processing: base_libs

=======================

sudo /opt/freescale/ltib/usr/bin/rpm --root /home/znzx/Desktop/ltib/rootfs --dbpath /var/lib/rpm -e --allmatches --nodeps --define '_tmppath /tmp/ltib' base_libs 2>/dev/null

sudo /opt/freescale/ltib/usr/bin/rpm --root /home/znzx/Desktop/ltib/rootfs --dbpath /var/lib/rpm --prefix / --ignorearch -ivh --force --excludedocs --define '_tmppath /tmp/ltib' /home/znzx/Desktop/ltib/rpm/RPMS/arm/base_libs-1.2-1.arm.rpm

error: failed dependencies:

    ld-linux.so.3(GLIBC_2.4)   is needed by base_libs-1.2-1

 

 

f_buildrpms() returned an error, exiting

traceback:

main:572

 

 

Started: Fri Apr 17 14:56:45 2015

Ended:   Fri Apr 17 14:56:59 2015

Elapsed: 14 seconds

 

 

Build Failed

 

Exiting on error or interrupt

znzx@ubuntu:~/Desktop/ltib$

 

someone can give some suggests?

Outcomes