unrecognized command line option '-nanolibc'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unrecognized command line option '-nanolibc'

2,764 Views
maksim_lipskiy
Contributor III

Hello !

I import the project created in KDS 1.1.1 to KDS 3.0.0.
In case of compilation of the project an error message "arm-none-eabi-gcc: error: unrecognized command line option '-nanolibc'". Flag "-nanolib" set in common.mak file.

What to use a flag of a linker instead of nanolib?

Thanks!

Labels (1)
Tags (1)
8 Replies

1,573 Views
BlackNight
NXP Employee
NXP Employee

See Kinetis Design Studio: Migrating KDS V2.0.0 Projects to GNU Tools for ARM Embedded (Launchpad, KDS V...

You need to remove -nanolibc use

-specs=nano.specs, either in the 'other linker flags' or use the checkbox below:

nanolib.png

I hope this helps,

Erich

1,573 Views
maksim_lipskiy
Contributor III

Oops...

arm-none-eabi-gcc: error: =nano.specs: No such file or directory

0 Kudos

1,573 Views
BlackNight
NXP Employee
NXP Employee

Can you post your complete console output (so it shows the full command line passed)?

Have you used

-specs=nano.specs

?

You can use as well

--specs=nano.specs

Erich

1,573 Views
maksim_lipskiy
Contributor III

Thanks for Your help.
I write  -specs=nano.specs -specs=nosys.specs.

0 Kudos

1,573 Views
maksim_lipskiy
Contributor III

I write in common.mak file     -specs =nano.specs and  -specs =nano.specs.

Еhe result is:

arm-none-eabi-gcc.exe: error: =nano.specs: No such file or directory

Now I use a flag -specs = nano.specs -specs = nosys.speсs.

The result is the same

arm-none-eabi-gcc: error: =nano.specs: No such file or directory

Maybe somewhere incorrectly specified path .

0 Kudos

1,573 Views
BlackNight
NXP Employee
NXP Employee

Do not change the common.mak file: use the linker panel as shown in my screenshot.

And I see that you have a space between specs and =nano.specs: that's your problem.

Erich

1,573 Views
maksim_lipskiy
Contributor III

I noticed a "space". Thanks.

I don't use linker panel. All project setting are in a external makefile and common.mak files (I did not come up with it.).
At the moment, the project is compiled and build.

Later, I change the project settings using the standard project setting's.

Thank you very much for your help.
PS: Sorry for my English.

0 Kudos

1,573 Views
maksim_lipskiy
Contributor III

Thanks ! now I will test.

0 Kudos