Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Multiple makefile errrors(In trying to create the HelloWorld project, build fails with exit code 1)
Multiple makefile errrors [message #1822017] Tue, 25 February 2020 19:25 Go to next message
Samuel Johnson is currently offline Samuel JohnsonFriend
Messages: 9
Registered: November 2016
Junior Member
I am a new user of Eclipse. (I have been using Builder from Embarcadero.) I thought I installed Eclipse successfully, but when I try to create the HelloWorld project, it fails to build. I get the following message pasted below. For what it's worth, I'm following the directions in
https://www.codeguru.com/cpp/cpp/getting-started-with-c-for-eclipse.html
which are consistent with the directions in the "Creating a Simple Project" in Eclipse - Help but are more detailed and complete and include directions for installing MinGW.

What's going on? What have I omitted? What am I doing wrong? All help will be appreciated.

Samuel J

14:07:46 **** Build of configuration Debug for project HelloWorld ****
make all
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
Error makefile 6: Command syntax error
Error makefile 11: Command syntax error
Error makefile 12: Command syntax error
Error makefile 13: Command syntax error
Error makefile 14: Command syntax error
Error makefile 16: Command syntax error
Error makefile 17: Command syntax error
Error makefile 18: Command syntax error
Error makefile 19: Command syntax error
Error makefile 20: Command syntax error
Error makefile 21: Command syntax error
Error makefile 22: Command syntax error
Error makefile 23: Command syntax error
Error makefile 24: Command syntax error
Error makefile 25: Command syntax error
Error makefile 26: Command syntax error
Error makefile 27: Command syntax error
Error makefile 28: Command syntax error
Error makefile 29: Command syntax error
Error makefile 30: Command syntax error
Error makefile 31: Command syntax error
Error makefile 32: Command syntax error
Error makefile 33: Command syntax error
Error makefile 34: Command syntax error
Error makefile 35: Command syntax error
Error makefile 37: Command syntax error
Error makefile 59: Command syntax error
*** 27 errors during make ***
"make all" terminated with exit code 1. Build might be incomplete.

[Updated on: Sat, 29 February 2020 21:05]

Report message to a moderator

Re: Multiple makefile errrors [message #1822030 is a reply to message #1822017] Wed, 26 February 2020 07:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31366
Registered: July 2009
Senior Member
It's best to ask on the CDT forum:

https://www.eclipse.org/forums/index.php/f/80/

Keep in mind that if no one can see what's in your makefile, then no one is likely to be able to tell you wants wrong with it. You may wish to attach it.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Multiple makefile errrors [message #1822050 is a reply to message #1822017] Wed, 26 February 2020 10:22 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 580
Registered: August 2014
Senior Member
It seems that you're not using the MinGW Make. Probably you forgot to set up the MinGW PATH correctly.

--

Tauno Voipio
Re: Multiple makefile errrors [message #1822055 is a reply to message #1822030] Wed, 26 February 2020 12:22 Go to previous messageGo to next message
Muhammad Wasim Akhtar Khan is currently offline Muhammad Wasim Akhtar KhanFriend
Messages: 9
Registered: February 2020
Junior Member
No Message Body

[Updated on: Wed, 26 February 2020 12:26]

Report message to a moderator

Re: Multiple makefile errrors [message #1822203 is a reply to message #1822030] Sat, 29 February 2020 20:35 Go to previous messageGo to next message
Samuel Johnson is currently offline Samuel JohnsonFriend
Messages: 9
Registered: November 2016
Junior Member
I found the makefile, which was generated automatically. Since it's short, I'll paste it below. Do you see what's wrong with it? Thanks.
=====================

################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables

# All Target
all: HelloWorld

# Tool invocations
HelloWorld: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: Cross G++ Linker'
mingw32-g++ -o "HelloWorld" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '

# Other Targets
clean:
-$(RM) $(CC_DEPS)$(C++_DEPS)$(EXECUTABLES)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(C_DEPS)$(CPP_DEPS) HelloWorld
-@echo ' '

.PHONY: all clean dependents

-include ../makefile.targets

[Updated on: Sat, 29 February 2020 21:03]

Report message to a moderator

Re: Multiple makefile errrors [message #1822204 is a reply to message #1822050] Sat, 29 February 2020 20:37 Go to previous messageGo to next message
Samuel Johnson is currently offline Samuel JohnsonFriend
Messages: 9
Registered: November 2016
Junior Member
I installed MinGW, and as far as I can tell I set up Eclipse to use MinGW for building. But there may be a path that I have not set correctly. Can you tell me where to look? Thanks in advance.
Re: Multiple makefile errrors [message #1822278 is a reply to message #1822017] Tue, 03 March 2020 07:11 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 264
Registered: August 2016
Senior Member
Samuel Johnson wrote on Tue, 25 February 2020 19:25

14:07:46 **** Build of configuration Debug for project HelloWorld ****
make all
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.

So it does seem that your Eclipse doesn't use the MinGW make but the make executable from Embarcadero, and that apparently isn't happy with the make file. Remove the Embarcadero make from your $PATH.
Previous Topic:Installation error - iSphere 3.6.1 for RDi 9.5+ missing items
Next Topic: Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1
Goto Forum:
  


Current Time: Thu Aug 13 06:24:47 GMT 2020

Powered by FUDForum. Page generated in 0.03382 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top