This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15266] New: [tree-ssa] libgfortran doesn't compile on IRIX 5.3
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2004 15:42:45 -0000
- Subject: [Bug fortran/15266] New: [tree-ssa] libgfortran doesn't compile on IRIX 5.3
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Trying to bootstrap the current tree-ssa branch with GNU gmp 4.1.3 on IRIX
5.3 fails (even after fixing another problem with io/unix.c):
/vol/gcc/obj/gcc-3.5-tree-ssa-20040429/5.3-gcc-gas-gld/gcc/xgcc -B/vol/gcc/obj/gcc-3.5-tree-ssa-20040429/5.3-gcc-gas-gld/gcc/ -B/vol/gcc/share/mips-sgi-irix5.3/bin/ -B/vol/gcc/share/mips-sgi-irix5.3/lib/ -isystem /vol/gcc/share/mips-sgi-irix5.3/include -isystem /vol/gcc/share/mips-sgi-irix5.3/sys-include -DHAVE_CONFIG_H -I. -I/vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran -I. -I/vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran/io -O2 -std=gnu99 -O2 -MT exp_c8.lo -MD -MP -MF .deps/exp_c8.Tpo -c /vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran/generated/exp_c8.c -DPIC -o .libs/exp_c8.o
/vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran/generated/exp_c4.c: In function `csqrtf':
/vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran/generated/exp_c4.c:101: warning: implicit declaration of function 'copysignf'
/vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran/generated/exp_c8.c:29: error: conflicting types for 'cabs'
/vol/gcc/obj/gcc-3.5-tree-ssa-20040429/5.3-gcc-gas-gld/gcc/include/math.h:300: error: previous declaration of 'cabs' was here
make[3]: *** [exp_c8.lo] Error 1
This happens because <math.h> has
struct __cabs_s { double a,b; };
extern double cabs(struct __cabs_s);
which conflicts with
GFC_REAL_8 cabs (GFC_COMPLEX_8 z);
This problem is likely to occur on other pre-ISO C99 systems as well
(e.g. even Tru64 UNIX V5.1B <math.h> has
extern double cabs __(( double, double ));
), so the functions should probably be renamed wholesale to avoid such
conflicts.
Environment:
System: IRIX lynx 5.3 11091812 IP22 mips
host: mips-sgi-irix5.3
build: mips-sgi-irix5.3
target: mips-sgi-irix5.3
configured with: /vol/gnu/src/gcc/gcc-tree-ssa-dist/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls --with-gnu-as --with-as=/vol/gcc/lib/gas-2.14.90 --with-gnu-ld --with-ld=/vol/gcc/lib/gld-2.14.90 --disable-libmudflap --with-gmp-dir=/vol/gnu/obj/gmp-4.1.3
How-To-Repeat:
Bootstrap the tree-ssa branch as described.
--
Summary: [tree-ssa] libgfortran doesn't compile on IRIX 5.3
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at techfak dot uni-bielefeld dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: mips-sgi-irix5.3
GCC host triplet: mips-sgi-irix5.3
GCC target triplet: mips-sgi-irix5.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15266