public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gcc 32 bit compiler does not like files outside of c:\cygwin
@ 2018-03-16 17:45 Tim Clarke
  2018-03-16 21:52 ` Houder
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Clarke @ 2018-03-16 17:45 UTC (permalink / raw)
  To: cygwin

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 !




-- 
Tim Clarke, IT Manager
Seacon Group Ltd
Registered in England, No.  4221248
Registered Office: Tower Wharf, Northfleet, Kent, DA11 9BD

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc 32 bit compiler does not like files outside of c:\cygwin
  2018-03-16 17:45 gcc 32 bit compiler does not like files outside of c:\cygwin Tim Clarke
@ 2018-03-16 21:52 ` Houder
  0 siblings, 0 replies; 2+ messages in thread
From: Houder @ 2018-03-16 21:52 UTC (permalink / raw)
  To: cygwin; +Cc: timclarke147

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-16 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-16 17:45 gcc 32 bit compiler does not like files outside of c:\cygwin Tim Clarke
2018-03-16 21:52 ` Houder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).