Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Unrecognized option: (2 Items)
   
Unrecognized option  
Hi, 
I'm trying to build simple program for qnx on my linux machine using toolchain with gcc in 4.8.1 version.

I get following error:
as: unrecognized option '-EL'

after executing this command:
arm-unknown-nto-qnx6.5.0eabi-gcc -fPIC   conftest.c

Content of above file:
int
main ()
{
    int a = 1;
      ;
        return 0;
}


Can anybody tell what I'm doing wrong?

BR,
Rafal
Re: Unrecognized option  
On 13-09-17 06:55 AM, Rafal Szczesny wrote:
> Hi,
> I'm trying to build simple program for qnx on my linux machine using toolchain with gcc in 4.8.1 version.
>
> I get following error:
> as: unrecognized option '-EL'
>
> after executing this command:
> arm-unknown-nto-qnx6.5.0eabi-gcc -fPIC   conftest.c
>
> Content of above file:
> int
> main ()
> {
>      int a = 1;
>        ;
>          return 0;
> }
>
>
> Can anybody tell what I'm doing wrong?

gcc isn't finding ntoarm-as in your $QNX_HOST/usr/bin and it's 
defaulting and finding the native linux 'as' which doesn't support the 
-EL option. Check to make sure your $QNX_HOST is set properly? iif you 
installed 4.8.1, then you should also install the updated binutils 
package as well.

Regards,

Ryan Mansfield