zoukankan      html  css  js  c++  java
  • Why Copied Yocto Cross Toolchain Not Work

    Why Copied Yocto Cross Toolchain Not Work

    1 problem description

    When I copied yocto cross toolchain from colleague, and test it as below:

    $ cd i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi$ 
    $ ./arm-poky-linux-gnueabi-gcc
    bash: ./arm-poky-linux-gnueabi-gcc: No such file or directory
    

    2 analysis

     

    2.1 install source check

    My colleague installed the toolchain by using his generated SDK shell.

    poky-glibc-i686-fsl-image-gui-cortexa7hf-vfp-neon-toolchain-1.8.sh
    

    2.2 cross tool header check

    $ head -1 ./arm-poky-linux-gnueabi-gcc
    ELF��4H�
     4  (44�4�  TT�T���ܝ
                         ܝ
                                �
                                 lz��
                                        �)�)��TT�T�DD�
    P�td� l"l"Q�td/opt/poky/self-yocto-sdk-1.8/sysroots/i686-pokysdk-linux/lib/ld-linux.so.2GNU GNUr�3"��0D7
                                                    b?Ѷ���2&��P!��@
                  ������ QgJĹ�@�4���Bm���ݣk���|gUaS'�p����K���{ƥF��ʼn�"d
       ��}
     ]�s�n��[��z5"&/����Bs�I�i��h�H}PX' ]p�������u������Oa�{C# ���������-�b���!�:�AU9���2����I�6 ��u���+J ��P��z-O�U���Bd3�H3�@3
    

    We can see the cross tool's header contains my colleague's cross tool path info, which not exist on my machine!!!

    3 solution

    install it by using the SDK shell.

     
  • 相关阅读:
    Educational Codeforces Round 23 D. Imbalanced Array(单调栈)
    hdu 4355 Party All the Time(三分)
    Educational Codeforces Round 21 F. Card Game(网络流之最大点权独立集)
    qscoj Round 1(div 2)
    玲珑杯 ACM Round #10
    hihoCoder #27
    Codeforces Round #396(div 2)
    高数A(下)第九章
    Mutual Training for Wannafly Union #5
    寒假集训补完
  • 原文地址:https://www.cnblogs.com/aqing1987/p/5054363.html
Copyright © 2011-2022 走看看