Re: --host=x86_64-linux-gnu --target=arm-linux-gnueabihf

Reinoud Koornstra <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAAA5faEn-H-tGdxG8SGVEPJx79fHDV-L+Agt2E3QKbzDETd3nA@mail.gmail.com>
I get the same result if I only do
./configure --target=arm-linux-gnueabihf

It always faults at

/usr/bin/ld: libsim.a(arminit.o): Relocations in generic ELF (EM: 40)
libsim.a: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[3]: *** [run] Error 1


On Wed, May 9, 2018 at 12:17 AM, Andreas Schwab <[email protected]> wrote:
> On Mai 08 2018, Reinoud Koornstra <[email protected]> wrote:
>
>> ./configure -host=x86_64-linux-gnu --target=arm-linux-gnueabihf
>> configure: WARNING: If you wanted to set the --build type, don't use --host.
>>     If a cross compiler is detected then cross compile mode will be used.
>
> Use --build, not --host, or leave it out at all.
>
> Andreas.
>
> --
> Andreas Schwab, SUSE Labs, [email protected]
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.