S32 Design Studio: Program "gcc" not found in PATH

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

S32 Design Studio: Program "gcc" not found in PATH

Jump to solution
7,962 Views
alexpan0523
Contributor I

Hi,

I turn on compiler optimizations in my project, but got some errors while trying to rebuild the code:
Program "gcc" not found in PATH [Discovery Options] page in project properties C/C++ Problem

What can I do to fix this error?

Thank you.

0 Kudos
1 Solution
2,904 Views
99
NXP Employee
NXP Employee

99_1-1686887110584.png

I had the same problem and solved it with this method:

Add your gcc path to the end of PATH,

for me is ";C:\NXP\S32DS_Power_v2017.R1\Cross_Tools\powerpc-eabivle-4_9\bin"

99_2-1686887395338.png

99_3-1686887466476.png

Done.

 

View solution in original post

0 Kudos
8 Replies
2,905 Views
99
NXP Employee
NXP Employee

99_1-1686887110584.png

I had the same problem and solved it with this method:

Add your gcc path to the end of PATH,

for me is ";C:\NXP\S32DS_Power_v2017.R1\Cross_Tools\powerpc-eabivle-4_9\bin"

99_2-1686887395338.png

99_3-1686887466476.png

Done.

 

0 Kudos
5,839 Views
alexpan0523
Contributor I

Hi,Jiri jiri.kral@nxp.com

The attachment is the lib_mem.args file.

and I try to use 2017.R1 version to build,but the gcc error also exists.

Thanks

0 Kudos
5,839 Views
jiri_kral
NXP Employee
NXP Employee

Hi Alex, 

the .args file looks okay. So - last chance - can you please share your project or lib_mem library project? 

Jiri 

0 Kudos
5,839 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

please check if you have set the prefix for gcc: 

pastedImage_2.png

and VLE_TOOLCHAIN_DIR/bin points points to folder with cross tools binaries. Also check if the binaries are physically present on the hard drive. 

pastedImage_3.png

Jiri 

0 Kudos
5,839 Views
alexpan0523
Contributor I

Hi, Jiri

I have checked the settings you mentioned above,but they don't work.

I find If I delete the optimization info in .cproject file and then built,the  Program "gcc" not found in PATH  error message will be removed,but the optimization level of lib_mem.c will be changed from O3(what optimization level I want) to none automatically.pastedImage_1.png

BR 

Alex

0 Kudos
5,839 Views
jiri_kral
NXP Employee
NXP Employee

Hi Alex, 

I tried reproduce the issue - but no success. Can you please share the .args file for your lib_mem project with Level 3 optimization enabled? 

Are you able use the current S32DS Power version - v2017.R1?

Jiri

0 Kudos
5,839 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

what is your S32DS version and target MCU?

Jiri

0 Kudos
5,839 Views
alexpan0523
Contributor I

Hello,Jiri

S32DS version :S32 Design Studio for Power Architecture v1.2

Target MCU:S32R274

Thanks.

0 Kudos