Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [LINUX] Can't compile Makefile Project(I can't compile Makefile Project from Eclipse, but it seems to work from Terminal)
[LINUX] Can't compile Makefile Project [message #1792108] Wed, 11 July 2018 15:36 Go to next message
Adel Makhloufi is currently offline Adel MakhloufiFriend
Messages: 1
Registered: July 2018
Junior Member
*Sorry for the bad English

Hi,
I'm getting an error when I try to compile a Makefile project in Eclipse, but it seems to work when I compile it from Terminal with make. I'm using a third-party compiler (nspire-g++) and I added ti to the PATH. This is the error:
01:27:41 **** Build of configuration Default for project nspire ****
make all 
nspire-g++ --std=c++11 -Wall -W -marm -Os -Wno-switch -c main.cpp
make: nspire-g++: Command not found
Makefile:20: recipe for target 'main.o' failed
make: *** [main.o] Error 127

If I specify the full compiler path, I'm getting getting this error, even if I did chmod 777 on the compiler:
01:27:41 **** Build of configuration Default for project nspire ****
make all 
/opt/ndless-sdk/bin/nspire-g++ --std=c++11 -Wall -W -marm -Os -Wno-switch -c main.cpp
/opt/ndless-sdk/bin/nspire-g++: 20: /opt/ndless-sdk/bin/nspire-g++: : Permission denied
Makefile:20: recipe for target 'main.o' failed
make: *** [main.o] Error 127


Thanks in advance.

[Updated on: Fri, 13 July 2018 05:29]

Report message to a moderator

Re: [LINUX] Can't compile Makefile Project [message #1792232 is a reply to message #1792108] Fri, 13 July 2018 03:26 Go to previous message
David VavraFriend
Messages: 777
Registered: October 2012
Senior Member
I presume you are giving the Eclipse output from make .
You didn't give the first line that appears in the console log.

Something like
00:12:54 **** Build of configuration Default for project LOCALLIB ****
make all 
:
:

It gives a clue as to where the make is being executed.

Could be a write permission problem.
Similar to: https://github.com/dmlc/xgboost/issues/3197


Change the 'all' target to print the working directory
and see if it's the same as when using a terminal window
If not, do you have write permissions for it?
Previous Topic:eclipse always rebuild all object files
Next Topic:Eclipse exit with -1073741571
Goto Forum:
  


Current Time: Mon Sep 24 03:32:57 GMT 2018

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

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

Back to the top