Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348414

Summary: Permission denied to c/cygwin/bin/gcc
Product: [Tools] CDT Reporter: burcak <burcaktay>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED INVALID QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: major    
Priority: P3 CC: cdtdoug, marc.khouzam, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description burcak CLA 2011-06-06 11:12:44 EDT
Build Identifier: 20110218-0911

Hi,

I have been trying to use Eclipse Ganymede with the Cygwin Compiler. I have been trying to compile a basic c++ file drawing a square, but still having an error. 

I have changed the Environment Variable Path on My Computer, appended ;C:\cygwin\bin.

I have added the libraries glut,opengl32,glu32, and glut32 to Cygwin C++ Linker->Library, and set the Library Search Path: "c:\cygwin\lib". 

When I build the project, no executable file is formed in the debug folder.


This is the error I get:

make all 
Building file: ../square.c
Invoking: Cygwin C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"square.d" -MT"square.d" -o"square.o" "../square.c"
/usr/bin/sh: /c/cygwin/bin/gcc: Permission denied
make: *** [square.o] Error 126

Reproducible: Always
Comment 1 Andrew Gvozdev CLA 2011-06-07 09:54:00 EDT
This seems to be permission issue unrelated to eclipse. Quit eclipse and go to cmd shell (not cygwin! since build is run in Windows cmd shell). Navigate to build folder and run "make all". Chances are you get the same problem.