This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [cygwin] Can't boostrap current gcc trunk with libjava: ../../../gcc/libjava/classpath/native/fdlibm/mprec.h:297:1: error: "_EXFUN" redefined
- From: Tom Tromey <tromey at redhat dot com>
- To: "Christian Joensson" <christian dot joensson at gmail dot com>
- Cc: "GCC Development" <gcc at gcc dot gnu dot org>, "Dave Korn" <dave dot korn at artimi dot com>
- Date: 16 Apr 2007 11:48:44 -0600
- Subject: Re: [cygwin] Can't boostrap current gcc trunk with libjava: ../../../gcc/libjava/classpath/native/fdlibm/mprec.h:297:1: error: "_EXFUN" redefined
- References: <5460e3330704160511u5645c9bfp616d6d085c5b2edf@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "ChJ" == Christian Joensson <christian.joensson@gmail.com> writes:
ChJ> In file included from ../../../gcc/libjava/classpath/native/fdlibm/fdlibm.h:29,
ChJ> from ../../../gcc/libjava/java/lang/natVMDouble.cc:27:
ChJ> ../../../gcc/libjava/classpath/native/fdlibm/mprec.h:297:1: error:
ChJ> "_EXFUN" redefined
ChJ> In file included from /usr/include/stdlib.h:10,
ChJ> from ../../../gcc/libjava/java/lang/natVMDouble.cc:14:
ChJ> /usr/include/_ansi.h:36:1: error: this is the location of the previous
ChJ> definition
ChJ> anyone else see this?
That is new to me, but then I don't build on Cygwin.
Where does /usr/include/_ansi.h come from?
Anyway, try adding a "#undef _EXFUN" in the appropriate place in
mprec.h. If that works for you, send it to me and I will check it in.
Tom