Build Problem using QorIQ-SDK v1.8

Showing results for 
Search instead for 
Did you mean: 

Build Problem using QorIQ-SDK v1.8

Contributor II

I am trying to build a u-boot from the QorIQ-SDK package.
I strictly followed the procedure described in the document coming with
the SDK. The setup of the build environment seem to be good. However,
when build, I got a linking problem. Here is the information:

1. Target machine:    P1021RDB-PC (the reference board for our product)
2. Build host:             Linux version 3.10.0-957.27.2.el7.x86_64
                                 (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36)
3. SDK package:      QorIQ-SDK-v1.8-SOURCE-20150619-yocto.iso
                                 the cache package is not used because it causes
                                 other build problems.

The error message is as follows:

/usr/bin/ld: mpn/.libs/invert_limb.o: relocation R_X86_64_PC32 against protected symbol `__gmpn_invert_limb_table' can not be used when making a shared object
| /usr/bin/ld: final link failed: Bad value
| collect2: error: ld returned 1 exit status
| make[2]: *** [] Error 1
| make[2]: Leaving directory `/home/xluo/toolchain/QorIQ-SDK-V1.8-20150619-yocto/build_p1021rdb_release/tmp/work/x86_64-linux/gmp-native/5.1.1-r0/build'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/xluo/toolchain/QorIQ-SDK-V1.8-20150619-yocto/build_p1021rdb_release/tmp/work/x86_64-linux/gmp-native/5.1.1-r0/build'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/xluo/toolchain/QorIQ-SDK-V1.8-20150619-yocto/build_p1021rdb_release/tmp/work/x86_64-linux/gmp-native/5.1.1-r0/temp/run.do_compile.7611:1 exit 1 from
| exit 1
| ERROR: Function failed: do_compile (log file is located at /home/xluo/toolchain/QorIQ-SDK-V1.8-20150619-yocto/build_p1021rdb_release/tmp/work/x86_64-linux/gmp-native/5.1.1-r0/temp/log.do_compile.7611)
ERROR: Task 915 (virtual:native:/home/xluo/toolchain/QorIQ-SDK-V1.8-20150619-yocto/poky/meta/recipes-support/gmp/, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 125 tasks of which 108 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

I am not sure why this happens, since the package is supposedly tested. Your advice is badly needed.



Labels (1)
0 Kudos
1 Reply

NXP TechSupport
NXP TechSupport

On your PC, please install gmp with command "yum install gmp-devel" to avoid building  gmp-native in Yocto SDK.

0 Kudos