public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15234] New: [tree-ssa] libgfortran doesn't compile on Tru64 UNIX
@ 2004-04-30 19:20 gcc-bugzilla at gcc dot gnu dot org
  2004-11-20 15:45 ` [Bug libfortran/15234] libgfortran doesn't compile on Tru64 UNIX V4.0F pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 20+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-04-30 19:20 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2006-02-14 17:53 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-15234-81@http.gcc.gnu.org/bugzilla/>
2005-10-15 20:22 ` [Bug libfortran/15234] libgfortran doesn't compile on Tru64 UNIX V4.0F pinskia at gcc dot gnu dot org
2005-10-29 12:57 ` fxcoudert at gcc dot gnu dot org
2006-01-05  3:21 ` pinskia at gcc dot gnu dot org
2006-01-23 18:20 ` pinskia at gcc dot gnu dot org
2006-01-28 21:13 ` pinskia at gcc dot gnu dot org
2006-02-14 17:28 ` ro at gcc dot gnu dot org
2006-02-14 17:31 ` ro at gcc dot gnu dot org
2006-02-14 17:32 ` [Bug libfortran/15234] [4.0 regression] " ro at gcc dot gnu dot org
2006-02-14 17:51 ` ro at gcc dot gnu dot org
2006-02-14 17:53 ` ro at gcc dot gnu dot org
2004-04-30 19:20 [Bug fortran/15234] New: [tree-ssa] libgfortran doesn't compile on Tru64 UNIX gcc-bugzilla at gcc dot gnu dot org
2004-11-20 15:45 ` [Bug libfortran/15234] libgfortran doesn't compile on Tru64 UNIX V4.0F pinskia at gcc dot gnu dot org
2004-12-01 18:15 ` mmitchel at gcc dot gnu dot org
2005-01-06 14:40 ` tobi at gcc dot gnu dot org
2005-06-13 16:04 ` fxcoudert at gcc dot gnu dot org
2005-07-19 10:32 ` fxcoudert at gcc dot gnu dot org
2005-08-16 19:28 ` tobi at gcc dot gnu dot org
2005-08-16 19:34 ` ro at techfak dot uni-bielefeld dot de
2005-08-17  2:24 ` pinskia at gcc dot gnu dot org
2005-09-05 10:43 ` fxcoudert at gcc dot gnu dot org
2005-09-22 17:50 ` fxcoudert 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).