S32DS for PA 2017.R1 can't support gcc --no-as-need option

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32DS for PA 2017.R1 can't support gcc --no-as-need option

714件の閲覧回数
wesleyxie
Contributor III

Hi, Dear NXP guys

as below screenshot, when I specified "--no-as-need" in S32DS C Compiler settings,

the powerpc-eabivle-gcc.exe told me that it can NOT recognized this option.

I have to fix some lib link order issue by using this gcc option.

how can I archive this ? or is there other ways that S32DS supported ?

QQ截图20171231005431.png

image003(12-31-00-34-44).jpg

ラベル(2)
0 件の賞賛
3 返答(返信)

495件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

the "no-as-needed" is linker (ld) option and can be added into linker settings:

pastedImage_1.png

Jiri

0 件の賞賛

495件の閲覧回数
wesleyxie
Contributor III

Hi, 

I tried both the "--no-as-need" and "--no-as-needed" option in Linker, but seem neither of them work.

pastedImage_2.pngpastedImage_1.png

1. put fmc_bsp_os lib before fmc_sm, build project, many "undefined reference to FmcBspXxxx" error, those FmcBspXxxx functions should be already in fmc_bsp_os lib.

pastedImage_6.png

pastedImage_4.png

2. put fmc_bsp_os after fmc_sm, the "undefined reference to FmcBspXxxx" disappeared,

    this means that FmcBspXxxx exist in fmc_bsp lib,

    but the linker can not find it if the fmc_bsp_os lib is located before fmc_sm lib (no matter that --no-as-need is added or not).

pastedImage_5.png

pastedImage_7.png

0 件の賞賛

495件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm assuming that the error is not related to any linker option. Can you please share your project here or you can send it on jiri.kral@nxp.com ? 

Jiri

0 件の賞賛