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: "Dave Korn" <dave dot korn at artimi dot com>
- To: <tromey at redhat dot com>, "'Christian Joensson'" <christian dot joensson at gmail dot com>
- Cc: "'GCC Development'" <gcc at gcc dot gnu dot org>
- Date: Mon, 16 Apr 2007 19:18:07 +0100
- 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> <m3hcrg8b2b.fsf@localhost.localdomain>
On 16 April 2007 18:49, tromey@redhat.com wrote:
>>>>>> "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?
Cygwin uses newlib.
> 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.
Pretty much bound to succeed.
cheers,
DaveK
--
Can't think of a witty .sigline today....