S32DS - S32K3XX - Compilation - GCC - Segmentation fault

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

S32DS - S32K3XX - Compilation - GCC - Segmentation fault

5,494 Views
PL523
Contributor I

Hello,


I'm running into an segmention fault when using GCC Compiler in S32DS. Sometimes compilation works without any problem; sometimes it fails on a different C-File; sometimes on the same C-File.


Compiler Error-Message:

internal compiler error: Segmentation fault

 

Any ideas what could be the problem?

 

 

0 Kudos
Reply
12 Replies

5,445 Views
PL523
Contributor I

My OS Version is Win10 - 22H2, S32DS-Version is Version: 3.5 - Build id: 240924 (Update 14), GCC Version:

 

NXP GCC for Arm Embedded Processors 9.2 Build 1649

NXP GCC for Arm Embedded Processors 10.2 Build 1728

 

0 Kudos
Reply

5,442 Views
jiri_kral
NXP Employee
NXP Employee

I suggest try to re-install S32DS, it is possible that some depending library may be corrupted in msys32.

0 Kudos
Reply

5,409 Views
PL523
Contributor I

I've reinstalled everything today. But still having Segmention Faults.

 

Just before I also see something like this:

 

cc1.exe: warning: C:/NXP/S32DS.3.5/S32DS/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/arm-none-eabi/lib/include/newlib-nano: No such file or directory

 

Which is just confusing me.

This is my installation in S32DS:

 

PL523_0-1741875268505.png

 

 

0 Kudos
Reply

5,408 Views
PL523
Contributor I

Also Realtime-Debugging as descibed here does not work for me:

 

https://community.nxp.com/t5/S32-Design-Studio/How-do-I-enable-Live-View-for-variables-when-debuggin...

 

 

Tags (1)
0 Kudos
Reply

5,403 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

can you please share installation details from Extensions and Updates?

jiri_kral_0-1741878515121.png

 

0 Kudos
Reply

5,391 Views
PL523
Contributor I

Package: GDB Client for Arm Embedded Processors 12.1 Build 1702; Version: 1702; Build id: 202407240658
Package: S32 Design Studio Platform package; Version: 3.5.14; Build id: 202409241924
Package: NXP GCC for Arm Embedded Processors v9.2 build 1649; Version: 1649; Build id: 202407191555
Package: GNU ARM PEMicro Interface Debugging Support; Version: 5.9.3; Build id: 202411271449
Package: S32K3xx development package; Version: 3.5.13; Build id: 202407262044
Package: NXP GCC for Arm Embedded Processors v10.2 build 1728; Version: 1728; Build id: 202407191607
Package: S32 Design Studio Platform Tools package; Version: 3.5.14; Build id: 202409241924
Package: NXP GCC for Arm Embedded Processors Build 1620; Version: 1620; Build id: 202404031345
Package: S32K3_S32M27x Real-Time Drivers AUTOSAR R21-11 Version 5.0.0; Version: 5.0.0; Build id: 202410011049
Package: FreeRTOS for S32K3XX; Version: 5.0.0; Build id: 202409270704
Package: S32 Design Studio Debugger Core; Version: 3.5.14; Build id: 202409241814
Package: S32K3XX Real-Time Drivers AUTOSAR R21-11 Version 5.0.0; Version: 5.0.0; Build id: 202410011049

0 Kudos
Reply

5,289 Views
PL523
Contributor I

Any further ideas what I could test to improve behaviour?

0 Kudos
Reply

5,269 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

installed packages looks okay. Unfortunately have no other idea what you can test or change. I never met such issue before and if it behaves randomly and only on one machine its really hard to find the cause of it. 

Just to be clear - it is related only to one project or couple projects are affected - like examples and So on? 

0 Kudos
Reply

5,240 Views
PL523
Contributor I

I did not check with example projects But I think I can life with it. When I hit build button a few times it works without any segmention fault. Thats ok for me an I can work with it.

 

 

0 Kudos
Reply

5,223 Views
PL523
Contributor I

It looks like that the GCC segmention fault is somehow related to parallel builds. When I disable parallel builds the segmention fault occur less.

0 Kudos
Reply

5,113 Views
jiri_kral
NXP Employee
NXP Employee

Thanks for info,  I'm afraid that it is just because less instances of gcc processes is running. But still it is very first time when I met such issue. 

0 Kudos
Reply

5,445 Views
jiri_kral
NXP Employee
NXP Employee

Hi. 

what's your S32DS version, OS and gcc version? 

0 Kudos
Reply