How To resolve"error: ld returned 1 exit status"

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

How To resolve"error: ld returned 1 exit status"

1,279 Views
jone_yang
Contributor II

make -j16 all
Building target: S32R294_Radar_Application_Demo_Z7_1.elf
Invoking: Standard S32DS C Linker
powerpc-eabivle-gcc -o "S32R294_Radar_Application_Demo_Z7_1.elf" "@S32R294_Radar_Application_Demo_Z7_1.args"
d:/nxp/s32ds_power_v2.1/s32ds/build_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: ./Component/CSI2_driver/src/GEN-2/csi2_driver_irq_management.o: the target (gpMipiCsi2Regs) of a R_PPC_VLE_SDA21 relocation is in the wrong output section (.data)
d:/nxp/s32ds_power_v2.1/s32ds/build_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: final link failed: Bad value
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:98: S32R294_Radar_Application_Demo_Z7_1.elf] Error 1

0 Kudos
1 Reply

1,247 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Could you please closer specify your actions?

I only understood that you are trying to build demo_z1 code in S32DS.

What version of S32DS, RSDK, etc.. you are using?

Any closer explanation of the error you see? When and under what conditions it happen.

To me it seems that you are missing some library. But it is hard to say.

Best regards,

Peter

0 Kudos