This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

CVS build on mingw32 fails


I've been told (by people making win32 GCC binaries for AVR target)
that CVS mainline fails to build on MinGW32 (builds fine on Cygwin).
The problem is that a few files:

 - gcc/collect2.c
 - gcc/fixinc/fixincl.c
 - gcc/fixinc/procopen.c
 - gcc/fixinc/server.c

(these programs are not really needed for AVR target, but might be
needed for other targets) use Unix-specific system calls like kill(),
pipe(), fork(), vfork(), alarm(), fcntl() which are missing on MinGW32.
The rest of GCC appears to build and work fine when configured for
build=i686-pc-mingw32, host=i686-pc-mingw32, target=avr .

I haven't verified this myself.  It's just what I can say looking at
a patch that works around the problem by using dummy #define for the
missing functions, as these programs don't have to work properly -
it is sufficient that they compile :)

The patch (not meant for inclusion in GCC, just to show the problem
so a real fix can be developed) is here:

  http://www.engr.uconn.edu/~tmahar/avrgcc/avrgcc-patches.htm

Thanks,
Marek


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