Page 1 of 1

gnu gcc compilation fails

Posted: Fri Dec 02, 2011 8:57 pm
by Ludo
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

Re: gnu gcc compilation fails

Posted: Fri Dec 02, 2011 9:20 pm
by Ludo
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

Re: gnu gcc compilation fails

Posted: Fri Dec 02, 2011 11:03 pm
by eranif
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

Re: gnu gcc compilation fails

Posted: Fri Dec 02, 2011 11:29 pm
by Ludo
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.

Re: gnu gcc compilation fails

Posted: Fri Dec 02, 2011 11:51 pm
by eranif
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

Re: gnu gcc compilation fails

Posted: Sat Dec 03, 2011 12:00 am
by Ludo
Thank you very much