Home > OS >  Ubuntu always execute a binary file: Exec format error, cross compiler installation failed
Ubuntu always execute a binary file: Exec format error, cross compiler installation failed

Time:11-15


Various methods are tried, online or not, strives for the big help

CodePudding user response:

You have to go to perform on the corresponding equipment

CodePudding user response:

Cross compiler is usually provided by the corresponding CPU manufacturers, compile environment above the CPU to the corresponding system of an executable program to use, not to install
Your bomb above if it is a cross compiler, so in the host must be unable to perform the host
If the arm - Linux - GCC is cross compile tools, so it is impossible to carry out that the cross compiler environment is not match with your system, there are two ways: 1, reinstall your system adapted the cross compiler, 2, ask for fit your system cross compile tools

CodePudding user response:

Mentioned above have omissions, cross compiler generally does not provide the source code, all don't need to install, and not all all don't need to install,

CodePudding user response:

May I have your this kind of situation is happened in WIN10 used to own Linux subsystem, adopting cross-compilation happen?

CodePudding user response:

refer to fifth floor alone ronin small flying elder brother reply:
do you this kind of situation is happened in WIN10 used to own Linux subsystem, adopting cross-compilation happen?

I try to WSL subsystem under Windows 10 install hisi cross compiler tool chain, but it doesn't run, is the original poster said above, under the virtual machine is no problem, WSL installation process without any options, is done directly, but also under a virtual machine with many choices, I doubt is the problem of WSL,

CodePudding user response:

refer to fifth floor alone ronin small flying elder brother reply:
do you this kind of situation is happened in WIN10 used to own Linux subsystem, adopting cross-compilation happen?

Because like cross is 32-bit compiler tool chain, but the WSL seems not support 32-bit software, even installed a compatible with 32 library or not, but have to do is installed in the ubuntu18.04,

CodePudding user response:

Installation operation binfmt - support support i386 reference https://blog.csdn.net/shengerjianku/article/details/82290482

CodePudding user response:

refer to the eighth floor duapple response:
Quote: refer to fifth floor alone ronin small flying elder brother reply:
do you this kind of situation is happened in WIN10 used to own Linux subsystem, adopting cross-compilation happen?

I try to WSL subsystem under Windows 10 install hisi cross compiler tool chain, but it doesn't run, is the original poster said above, under the virtual machine is no problem, WSL installation process without any options, is done directly, but also under a virtual machine with many choices, I doubt is the problem of WSL,
  • Related