Hello,
I am new to Yocto and IMX6 linux bsp.
I used the below steps to build the imx6 bsp in yocto. I am using linux 16.04 LTS of ubuntu in my lenovo laptop.
9. sudo apt-get install autoconf libtool rpm
10. sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
11. sudo apt-get install u-boot-tools
12. mkdir ~/bin
13. curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
14. chmod a+x ~/bin/repo
15. export PATH=~/bin:$PATH
16. cd home/santhosh/
17. mkdir fsl-release-bsp
18. cd fsl-release-bsp
19. git config --global user.name "Santhosh"
20. git config --global user.email "santhosh.achuthan@harman.com"
21 git config --list
22 repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.53-1.1.0_ga
23 repo sync
26. sudo apt-get install gcc-4.8 g++-4.8
27. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
28. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50 --slave /usr/bin/g++ g++ /usr/bin/g++-5
29. sudo update-alternatives --config gcc
30. sed -i 's/^PACKAGECONFIG_append_pn-qemu-native/#PACKAGECONFIG_append_pn-qemu-native/' conf/local.conf
31. sed -i 's/^PACKAGECONFIG_append_pn-nativesdk-qemu/#PACKAGECONFIG_append_pn-nativesdk-qemu/' conf/local.conf
32. sysctl kernel.pid_max
33. sysctl -a
34. sudo sysctl -w kernel.pid_max=4194303
35. source ./setup-environment build
36. bitbake core-image-minimal
But i am getting the following compilation error.
| /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
| Makefile:836: recipe for target 'libgmp.la' failed
| make[2]: *** [libgmp.la] Error 1
| make[2]: Leaving directory '/home/santhosh/fsl-release-bsp/build/tmp/work/x86_64-linux/gmp-native/5.1.1-r0/build'
| Makefile:926: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/home/santhosh/fsl-release-bsp/build/tmp/work/x86_64-linux/gmp-native/5.1.1-r0/build'
| Makefile:744: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/santhosh/fsl-release-bsp/build/tmp/work/x86_64-linux/gmp-native/5.1.1-r0/temp/log.do_compile.63224)
ERROR: Task 912 (virtual:native:/home/santhosh/fsl-release-bsp/sources/poky/meta/recipes-support/gmp/gmp_5.1.1.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 103 tasks of which 0 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:
Summary: 1 task failed:
virtual:native:/home/santhosh/fsl-release-bsp/sources/poky/meta/recipes-support/gmp/gmp_5.1.1.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Can someone please guide me how to solve this problem? It will be really help me.
Also please let me know whether the steps followed above are fine.
Thanks.