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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
7,002 次查看
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

标签 (1)
0 项奖励
回复
1 解答
5,666 次查看
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 项奖励
回复
3 回复数
5,667 次查看
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 项奖励
回复
4,356 次查看
douglaspassatut
Contributor I

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

0 项奖励
回复
5,666 次查看
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 项奖励
回复