This is the mail archive of the 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]

libstdc++-v3 and newlib

I am trying to compile the latest CVS code for sparc-rtems (similar
to sparc-elf) and am getting this:

   of C function `double cabs(__complex__ double)' conflicts with
/usr2/test-gcc/install/sparc-rtems/include/math.h:112: previous
   `double cabs()' here
   of C function `float cabsf(__complex__ float)' conflicts with
/usr2/test-gcc/install/sparc-rtems/include/math.h:182: previous
   `float cabsf()' here
make[3]: *** [complex.lo] Error 1
make[3]: Leaving directory

math.h has this for these functions:

extern double cabs();
extern float cabsf();

FWIW newlib's math.h is wrapped in a "extern C".

I am also seeing this warning on every invocation of xgcc.

<command line>: warning: "cpu" re-asserted
<command line>: warning: "machine" re-asserted

CPP_PREDEFINES is defined as:

#define CPP_PREDEFINES "-Dsparc -D__GCC_NEW_VARARGS__ -Drtems
-D__rtems__ \
  -Asystem=rtems -Acpu=sparc -Amachine=sparc"

Where else are cpu and machine asserted?  This appears to be
similar to the other <target>.h files.

Joel Sherrill, Ph.D.             Director of Research & Development                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

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