From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10960 invoked by alias); 30 Apr 2004 19:02:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10936 invoked by alias); 30 Apr 2004 19:02:42 -0000 Date: Fri, 30 Apr 2004 19:20:00 -0000 From: "gcc-bugzilla at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20040430190236.15234.ro@techfak.uni-bielefeld.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/15234] New: [tree-ssa] libgfortran doesn't compile on Tru64 UNIX X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg02999.txt.bz2 List-Id: 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 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 * libgfortran.h [HAVE_INTTYPES_H]: Include 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 #endif +#if HAVE_INTTYPES_H +#include +#endif + #if HAVE_SYS_TYPES_H #include #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