We are using Code Warrior for MSC8156. We are seeing a fatal error: illegal instruction generated.

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

We are using Code Warrior for MSC8156. We are seeing a fatal error: illegal instruction generated.

1,890 Views
johnstrohm
Contributor III

We get the following from the toolset.


Building file: VoipControl.c
"C:\Freescale\CW_SC_3850_v10.7.2\eclipse\../SC/StarCore_Support/compiler/bin/scc" -F "source/VoipControl_1.args" -o "source\VoipControl.eln" -c "..\source\VoipControl.c"
source/VoipControl_1.args : -arch msc8156 -be -mh -slld -pic -s -do -Wnomwfe-error -Wlnk-on -Wlnk-progbits-after-nobits -Wlnk-stack-effect -I"C:/PVCS/Code/Standard Development/OFP/Deliverable/pump 5494723 XPHUB MSC8156 DSP Operational Software/XpHub/Include" -I"C:/PVCS/Code/Standard Development/OFP/Deliverable/pump 5494723 XPHUB MSC8156 DSP Operational Software/MelpLib/Source" -I"C:/PVCS/Code/Standard Development/OFP/Deliverable/pump 5494723 XPHUB MSC8156 DSP Operational Software/G729Lib/Source" -D_STARCORE_SCC -mod -O3 -view "Demo_View" -ma "C:/PVCS/Code/Standard Development/OFP/Deliverable/pump 5494723 XPHUB MSC8156 DSP Operational Software/XpHub/Application_File/demo.appli" -Xllt "-code_prefetch1 -data_prefetch1" -Xcfe "-msgstyle parseable" -env "C:/Freescale/CW_SC_3850_v10.7.2/SC/StarCore_Support/compiler" -use-license-file "C:/Freescale/CW_SC_3850_v10.7.2/SC/license.dat"
[LLT,3,4012,-1]: FATAL ERROR: Internal error: invalid instruction generated. Aborting...
[SCC,2,1027,-1]:ERROR: Non-zero return status from "C:\Freescale\CW_SC_3850_v10.7.2\SC\StarCore_Support\compiler\bin\llt.exe".
mwfe.exe|Compiler|Warning
(C:\PVCS\Code\Standard Development\OFP\Deliverable\pump 5494723 XPHUB MSC8156 DSP Operational Software\G729Lib\Source\voclib.h|147|8|6|4535|6)
=#define INLINE
>macro 'INLINE' redefined
mwfe.exe|Compiler|Info
(C:\PVCS\Code\Standard Development\OFP\Deliverable\pump 5494723 XPHUB MSC8156 DSP Operational Software\XpHub\Include\prototype.h|65|11|6|1928|6)
= #define INLINE static inline
> (location of previous definition)

The error is somehow related to generation of position-independent code.  If we disable "Position Independent Code", the error goes away.  If we enable it, the compiler barfs.

Any suggestions on where to look or what to look for?

0 Kudos
0 Replies