mingw32-make: *** [LMU_Ver00.elf] Error 1

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

mingw32-make: *** [LMU_Ver00.elf] Error 1

Jump to solution
5,204 Views
jason_zhang
Contributor III

Hi,  " mingw32-make: *** [Project_Ver00.elf] Error 1" come out when I built the project.

Could anyone tell me the reason about the problem and the method of locating the error?

 

CodeWarrior for MCU

  Version: 10.6.4

 

  Thanks! Jason

Labels (1)
0 Kudos
1 Solution
3,868 Views
TICS_Fiona
NXP Employee
NXP Employee

Hello Jason

Could you please click on 'Project' menu-> Clean to remove the object file and rebuild again.

Does the same error appear? To know the cause of the error, please open both 'Problem' view and 'Console' view, you can open them by <Windows> Menu->Show Views.

In Console view, please double click on the error message whose background is in red, then cursor will go to the incorrect code line in Editor.

If there's still difficult to get to know the cause of compiler error, please attach your project to reproduce the problem. Thanks!

Best Regards

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
3,869 Views
TICS_Fiona
NXP Employee
NXP Employee

Hello Jason

Could you please click on 'Project' menu-> Clean to remove the object file and rebuild again.

Does the same error appear? To know the cause of the error, please open both 'Problem' view and 'Console' view, you can open them by <Windows> Menu->Show Views.

In Console view, please double click on the error message whose background is in red, then cursor will go to the incorrect code line in Editor.

If there's still difficult to get to know the cause of compiler error, please attach your project to reproduce the problem. Thanks!

Best Regards

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
2,558 Views
douglaspassatut
Contributor I

Same problem. "Erros caused tool to abort. mingw32-make: *** [project_name] Error 1."

0 Kudos
3,868 Views
jason_zhang
Contributor III

Hi Fiona

Thank you for your reply.

I got the cause of the problem from the Console as below.

"D:/Freescale/CW MCU v10.6.4/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc"    @"LMU_Ver00.args" -o"LMU_Ver00.elf"

./Sources/common.o:(.bss.BMS_OV_fault_flag+0x0): multiple definition of `BMS_OV_fault_flag'

./Sources/fault.o:(.bss.BMS_OV_fault_flag+0x0): first defined here

./Sources/common.o:(.bss.BMS_UV_fault_flag+0x0): multiple definition of `BMS_UV_fault_flag'

./Sources/fault.o:(.bss.BMS_UV_fault_flag+0x0): first defined here

./Sources/common.o:(.bss.BMS_OW_fault_flag+0x0): multiple definition of `BMS_OW_fault_flag'

./Sources/fault.o:(.bss.BMS_OW_fault_flag+0x0): first defined here

./Sources/common.o:(.bss.BMS_OT_fault_flag+0x0): multiple definition of `BMS_OT_fault_flag'

./Sources/fault.o:(.bss.BMS_OT_fault_flag+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

mingw32-make: *** [LMU_Ver00.elf] Error 1

Thanks!

Best Regards

Jason

0 Kudos