[Bug fortran/15234] New: [tree-ssa] libgfortran doesn't compile on Tru64 UNIX
gcc-bugzilla at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 30 19:20:00 GMT 2004
Bootstrapping the current tree-ssa branch with gmp 4.1.3 (and thus gfortran
enabled) on Tru64 UNIX V5.1B fails compiling libgfortran/runtime/environ.c:
In file included from /vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran/runtime/environ.c:26:
/vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran/libgfortran.h:75: error: parse error before "GFC_INTEGER_4"
This happens because there is no definition of int32_t and similar types
anywhere. While there is one in <inttypes.h> and there's even a configure
test for that header, it isn't used anywere.
Obviously, libgfortran needs to make sure that a definition of those types
is available at configure time and provide one itself if not.
While a trivial patch to use that file in libgfortran.h gets me a little
bit further, I immediately hit another error:
/vol/gnu/src/gcc/gcc-tree-ssa-dist/libgfortran/runtime/../io/io.h:282: error: conflicting types for 'unit_t'
/vol/gcc/obj/gcc-3.5-tree-ssa-20040429/5.1b-gcc/gcc/include/sys/types.h:595: error: previous declaration of 'unit_t' was here
In fact, AFAIK the *_t types are reserved by POSIX.1 and thus cannot be
used without risk of conflict.
Environment:
System: OSF1 bartok V5.1 2650 alpha
Machine: alpha
host: alpha-dec-osf5.1b
build: alpha-dec-osf5.1b
target: alpha-dec-osf5.1b
configured with: /vol/gnu/src/gcc/gcc-tree-ssa-dist/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls --host alpha-dec-osf5.1b --build alpha-dec-osf5.1b --target alpha-dec-osf5.1b --disable-libmudflap --with-gmp-dir=/vol/gnu/obj/gmp-4.1.3
How-To-Repeat:
Try bootstrapping the tree-ssa branch on Tru64 UNIX V5.1B with gmp.
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2004-04-30 19:02 -------
Fix:
Fri Apr 30 21:01:32 2004 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* libgfortran.h [HAVE_INTTYPES_H]: Include <inttypes.h> if
available.
Index: libgfortran.h
===================================================================
RCS file: /vol/gnu/src/gcc/.gcc-cvs/gcc/libgfortran/Attic/libgfortran.h,v
retrieving revision 1.1.2.7
diff -u -p -r1.1.2.7 libgfortran.h
--- libgfortran.h 30 Nov 2003 17:24:21 -0000 1.1.2.7
+++ libgfortran.h 30 Apr 2004 18:55:47 -0000
@@ -43,6 +43,10 @@ Boston, MA 02111-1307, USA. */
#include <stdint.h>
#endif
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
--
Summary: [tree-ssa] libgfortran doesn't compile on Tru64 UNIX
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: alpha-dec-osf5.1b
GCC host triplet: alpha-dec-osf5.1b
GCC target triplet: alpha-dec-osf5.1b
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15234
More information about the Gcc-bugs
mailing list