This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libstdc++-v3 and newlib
- To: gcc at gcc dot gnu dot org
- Subject: libstdc++-v3 and newlib
- From: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Sat, 25 Nov 2000 10:02:43 -0600
- Organization: OAR Corporation
- Reply-To: joel dot sherrill at OARcorp dot com
I am trying to compile the latest CVS code for sparc-rtems (similar
to sparc-elf) and am getting this:
../../../../../cvs-objs/gcc/egcs/libstdc++-v3/libmath/complex-stub.h:84:
declaration
of C function `double cabs(__complex__ double)' conflicts with
/usr2/test-gcc/install/sparc-rtems/include/math.h:112: previous
declaration
`double cabs()' here
../../../../../cvs-objs/gcc/egcs/libstdc++-v3/libmath/complex-stub.h:87:
declaration
of C function `float cabsf(__complex__ float)' conflicts with
/usr2/test-gcc/install/sparc-rtems/include/math.h:182: previous
declaration
`float cabsf()' here
make[3]: *** [complex.lo] Error 1
make[3]: Leaving directory
`/opt/test-gcc/build-objs/b-gcc/sparc-rtems/libstdc++-v3/src'
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
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985