This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: New GCC available for testing (TRY 3) -- fixes -mno-cygwin problem


OK, I just tested this latest version and there is still a problem with
includes.  The MinGW include paths are appended to the search list, but the
POSIX include paths are not removed.  In cases where there is a Windows
specific funtion with the same name as a different POSIX function, the wrong
one is used.  The output of "gcc -v" I have attached demonstrates this as
the compiler complains about mkdir(const char*, int) vs mkdir(const char*).

Thank you,
Carl Thompson

Chris Faylor wrote:
> 
> I've uploaded a new version of gcc that does not use any MSVCRT stuff.
> It is at the URL below.  AFAIK, only the specs file has changed.
> 
> I understand that adding msvcrt support would be a wonderful idea, but
> it is outside of the scope of what I am currently trying to do.  I'm
> just trying to get -mno-cygwin working along with incorporating a few
> bug fixes and improvements in gcc/binutils.  I'm not trying to augment
> the -mno-cygwin support at this time.
> 
> I'll let Mumit Khan do that, or if someone else wants to volunteer I'm
> willing to send them my sources and binaries.
> 
> Btw, if anyone has specs file changes I would appreciate getting patches
> to the gcc/config/cygwin.h file rather than to the specs file itself.
> It is a lot less error-prone that way.
> 
> cgf

> ...
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/specs
gcc version 2.95.2 19991024 (release-2)
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/cpp.exe -lang-c++ -v -I.. -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Di386 -D_X86=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D_X86=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386 -Asystem(winnt) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -remap -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D_WIN32 -DWINNT -DWIN32 -D__WIN32__ -D__MINGW32__=0.2 -idirafter /usr/include/mingw -idirafter /usr/include/mingw32 -iwithprefixbefore ../../../../mingw/include/g++-3 -iwithprefixbefore ../../../../mingw/include -DWIN32 Fl_FileChooser2.cxx C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQrH8vf.ii
GNU CPP version 2.95.2 19991024 (release-2) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 ..
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include
 /usr/include
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/include
 /usr/include
 /usr/include/mingw
 /usr/include/mingw32
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/cc1plus.exe C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQrH8vf.ii -quiet -dumpbase Fl_FileChooser2.cc -mno-cygwin -version -o C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccwNey6A.s
GNU C++ version 2.95.2 19991024 (release-2) (i686-pc-cygwin) compiled by GNU C version 2.95.2 19991024 (release-2).
Fl_FileChooser2.cxx: In method `void Fl_FileChooser::newdir()':
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/sys/stat.h:122: too few arguments to function `int mkdir(const char *, int)'
Fl_FileChooser2.cxx:373: at this point in file

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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