On 04.01.2017 22:51, Jussi Pakkanen wrote:
> Package: gcc-6-arm-linux-gnueabihf
> Version: 6.2.1-5cross1
> 
> Trying to cross compile a simple helloworld application on 32 bit x86
> with this command:
> 
> arm-linux-gnueabihf-gcc-6 hello.c -o hello
> 
> fails with the following error message:
> 
> /usr/lib/gcc-cross/arm-linux-gnueabihf/6/libgcc.a: file not
> recognized: File format not recognized
> collect2: error: ld returned 1 exit status

confirmed. This seems to be a corrupt libgcc.a. I don't know yet, why ...
Extracting the members and repacking them works, as copying the file from the
native armhf binary package.  The files in the archive are all the same ...

Other cross compilers seem to work as well.

Reply via email to