public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15266] New: [tree-ssa] libgfortran doesn't compile on IRIX 5.3
@ 2004-05-03 15:42 gcc-bugzilla at gcc dot gnu dot org
  2004-05-03 15:50 ` [Bug libfortran/15266] " pinskia at gcc dot gnu dot org
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-05-03 15:42 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2005-09-27 18:12 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-03 15:42 [Bug fortran/15266] New: [tree-ssa] libgfortran doesn't compile on IRIX 5.3 gcc-bugzilla at gcc dot gnu dot org
2004-05-03 15:50 ` [Bug libfortran/15266] " pinskia at gcc dot gnu dot org
2004-05-03 16:11 ` ro at techfak dot uni-bielefeld dot de
2004-05-18 11:45 ` [Bug libfortran/15266] [gfortran] " pinskia at gcc dot gnu dot org
2004-05-18 23:18 ` ro at techfak dot uni-bielefeld dot de
2004-08-11 21:56 ` [Bug libfortran/15266] " pinskia at gcc dot gnu dot org
2004-12-27 15:09 ` pinskia at gcc dot gnu dot org
2005-01-06 14:40 ` tobi at gcc dot gnu dot org
2005-01-07  0:16 ` coudert at clipper dot ens dot fr
2005-01-09 15:02 ` coudert at clipper dot ens dot fr
2005-01-09 15:07 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-02-20 21:24 ` pinskia at gcc dot gnu dot org
2005-04-16 22:33 ` pinskia at gcc dot gnu dot org
2005-06-09 18:53 ` ro at techfak dot uni-bielefeld dot de
2005-06-13 16:10 ` fxcoudert at gcc dot gnu dot org
2005-06-15  0:00 ` cvs-commit at gcc dot gnu dot org
2005-06-15  0:01 ` ro at gcc dot gnu dot org
2005-06-15  0:02 ` ro at gcc dot gnu dot org
2005-06-15  8:22 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-06-15  9:30 ` ro at techfak dot uni-bielefeld dot de
2005-06-15  9:37 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-07-08  1:37 ` mmitchel at gcc dot gnu dot org
2005-07-19 11:14 ` fxcoudert at gcc dot gnu dot org
2005-08-19 14:55 ` cvs-commit at gcc dot gnu dot org
2005-09-05 10:41 ` fxcoudert at gcc dot gnu dot org
2005-09-05 13:53 ` [Bug target/15266] " pinskia at gcc dot gnu dot org
2005-09-27 18:21 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).