This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 32 bit compiler does not like files outside of c:\cygwin


On Fri, 16 Mar 2018 16:45:11, Tim Clarke wrote:
> Sorry, posted this from my other non-regsitered email address!!
> 
> Following my previous post advising that the gcc 32 compiler was
> exiting immediately (return code 1) without doing anything, I have
> now established what is happening.
> The behaviour exhibited is contrary to that exhibited by gcc 64 bit,
> which works fine.
> 
> When entering the cygwin console and typing:
> cd d:/c
> the screen displays
> /cydrive/d/c
> 
> gcc  sourcefile.c
> does nothing and 'echo $?'  displays  1
> 
> However
> cd /usr/src
> gcc sourcefile.c   works  ok
> 
> So, it would appear that, for some reason, the 32bit compiler
> falls over when accessing files outside of the main c:\cygwin
> hierarchy !

Please, do not make us guess (what is wrong with your system).

    https://cygwin.com/problems.html

    "Run cygcheck -s -v -r > cygcheck.out and include that file as an attachment
    in your report. Please do not compress or otherwise encode the output. Just
    attach it as a straight text file so that it can be easily viewed."

@@ uname -a
CYGWIN_NT-6.1-WOW Seven 2.10.1(0.325/5/3)  i686 Cygwin

@@ gcc --version
gcc (GCC) 6.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@@ cd d:/Abyss
@@ pwd
/drv/d/Abyss

@@ vi srcfil.c
@@ gcc srcfil.c
@@ ./a
Hello, world
@@ mount
E:/Cygwin/bin on /usr/bin type ntfs (binary,auto)
E:/Cygwin/lib on /usr/lib type ntfs (binary,auto)
E:/Cygwin on / type ntfs (binary,auto)
C: on /drv/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /drv/d type ntfs (binary,posix=0,user,noumount,auto)
E: on /drv/e type ntfs (binary,posix=0,user,noumount,auto)
X: on /drv/x type ntfs (binary,posix=0,user,noumount,auto)

Henri


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]