gnu gcc compilation fails

CodeLite installation/troubleshooting forum
User avatar
Ludo
CodeLite Curious
Posts: 4
Joined: Fri Dec 02, 2011 8:22 pm
Genuine User: Yes
IDE Question: C++
Contact:

gnu gcc compilation fails

Post by Ludo » Fri Dec 02, 2011 8:57 pm

I've got Codelite v. 2.8.0.4537 (from Ubuntu repositories)
My OS is Xubuntu 11.10

I've tried to compile Hello world example and it fails

----------Build Started--------
/bin/sh -c '"make" -j 4 -f "Test.mk" ./Debug/main.o'
----------Building project:[ Test - Debug ] (Single File Build)----------
<built-in>:0:0: fatal error: opening dependency file ./Debug/main.o.d: No such file or directory
compilation terminated.
make: *** [Debug/main.o.d] Error 1
----------Build Ended----------
0 errors, 0 warnings

User avatar
Ludo
CodeLite Curious
Posts: 4
Joined: Fri Dec 02, 2011 8:22 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: gnu gcc compilation fails

Post by Ludo » Fri Dec 02, 2011 9:20 pm

It's doing the same on Windows 7 SP1
Codelite v. 3.0.5041

----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 4 -f "Test.mk" ./Debug/main.o"
----------Building project:[ Test - Debug ] (Single File Build)----------
<built-in>:0: fatal error: opening dependency file ./Debug/main.o.d: No such file or directory
compilation terminated.
mingw32-make.exe: *** [Debug/main.o.d] Error 1
----------Build Ended----------
0 errors, 0 warnings

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: gnu gcc compilation fails

Post by eranif » Fri Dec 02, 2011 11:03 pm

Ludo wrote: ./Debug/main.o.d:
Do you have permission to the location of ./Debug?

What happen if you manually create the ./Debug directory?

Eran
Make sure you have read the HOW TO POST thread

User avatar
Ludo
CodeLite Curious
Posts: 4
Joined: Fri Dec 02, 2011 8:22 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: gnu gcc compilation fails

Post by Ludo » Fri Dec 02, 2011 11:29 pm

I've got permission to the location of ./Debug (tried to run Codelite as root too). When I create ./Debug manually it seems to work OK.

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: gnu gcc compilation fails

Post by eranif » Fri Dec 02, 2011 11:51 pm

I see the problem.. you are trying to compile a single file and to build the project.
The compile single file is dependent on the layout setup properly.

You should (at least once) build the project, this is done by right click on the project and select 'Build' or hit 'F7'

Eran
Make sure you have read the HOW TO POST thread

User avatar
Ludo
CodeLite Curious
Posts: 4
Joined: Fri Dec 02, 2011 8:22 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: gnu gcc compilation fails

Post by Ludo » Sat Dec 03, 2011 12:00 am

Thank you very much

Post Reply