gcc-arm-linux-gnueabi command not found

前端 未结 11 924
轮回少年
轮回少年 2020-12-13 00:50

I am trying to install the gnu arm toolchain for ubuntu. I first downloaded the tar from CodeSourcery. However when I go into the bin folder, I cannot run any of the binarie

相关标签:
11条回答
  • 2020-12-13 01:27

    You have installed a toolchain which was compiled for i686 on a box which is running an x86_64 userland.

    Use an i686 VM.

    0 讨论(0)
  • 2020-12-13 01:27

    I had to cross compile C code in Ubuntu for ARM. This worked for me:

    $ sudo apt install gcc-arm-none-eabi

    Later, tested it on the qemu emulator

    #Install qemu
    sudo apt-get install qemu qemu-user-static qemu-system-arm
    
    #Cross compile "helloworld.c"
    $ arm-none-eabi-gcc --specs=rdimon.specs   -Wl,--start-group -lgcc -lc -lm -lrdimon -Wl,--end-group helloworld.c -o helloworld
    
    #Run
    qemu-arm-static helloworld
    
    
    0 讨论(0)
  • 2020-12-13 01:28

    fixed, using:

    sudo apt-get install gcc-arm*
    
    0 讨论(0)
  • 2020-12-13 01:29

    I was also facing the same issue and resolved it after installing the following dependency:

    sudo apt-get install lib32z1-dev
    
    0 讨论(0)
  • 2020-12-13 01:32

    Its a bit counter-intuitive. The toolchain is called gcc-arm-linux-gnueabi. To invoke the tools execute the following: arm-linux-gnueabi-xxx

    where xxx is gcc or ar or ld, etc

    0 讨论(0)
提交回复
热议问题