exec: -m: invalid option for GCC 9.2.0 on RHEL6.9

Jonathan Wakely jwakely.gcc@gmail.com
Tue Dec 3 15:50:00 GMT 2019


On Tue, 3 Dec 2019 at 15:32, Thomas Doczkal wrote:
>
> On 12/3/19 2:26 PM, Jonathan Wakely wrote:
> > On Tue, 3 Dec 2019 at 12:39, Thomas Doczkal wrote:
> >> Can someone confirm the error or tell what's wrong?
> > Usually that means you don't have a linker for your target.
> >
> > Is binutils installed?
>
> Yes, but unfortunately it's in a non-standard path. As far as I can see
> the file
>
> /fme/app/.build/gcc/gcc-9.2.0/build/./gcc/collect-ld
>
> has set the correct path
>
> > ORIGINAL_AS_FOR_TARGET="/fme/app/binutils/current/bin/as"
> > ORIGINAL_NM_FOR_TARGET="/fme/app/binutils/current/bin/nm"

But that's only as and nm, it also needs ld and that's the one that's failing.

Does /fme/app/binutils/current/bin/ld exist and is it a working linker
for your target?



More information about the Gcc-help mailing list