public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/54447] New: gmp in source does not work on alphaev68-dec-osf5.1a
@ 2012-09-01  3:07 htl10 at users dot sourceforge.net
  0 siblings, 0 replies; only message in thread
From: htl10 at users dot sourceforge.net @ 2012-09-01  3:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54447

             Bug #: 54447
           Summary: gmp in source does not work on alphaev68-dec-osf5.1a
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: htl10@users.sourceforge.net


In the course of looking at bug 44959, I tried building gcc 4.6.1 with an
in-source sub-directory of gmp/mpfr/mpc, and encountered strange errors:

In file included from fib_table.c:4:0:
/home/htl10/tmp-build/gcc-4.6.1-build/../gcc-4.6.1/gmp/gmp-impl.h:187:1: error:
unknown type name 'uint_least32_t'
make[5]: *** [fib_table.lo] Error 1
make[5]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build/gmp/mpn'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build/gmp'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build/gmp'
make[2]: *** [all-stage2-gmp] Error 2
make[2]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build'
make: *** [all] Error 2

/home/htl10/tmp-build/gcc-4.6.1-build/../gcc-4.6.1/gmp/printf/doprnt.c: In
function '__gmp_doprnt':
/home/htl10/tmp-build/gcc-4.6.1-build/../gcc-4.6.1/gmp/printf/doprnt.c:273:8:
error: unknown type name 'intmax_t'
/home/htl10/tmp-build/gcc-4.6.1-build/../gcc-4.6.1/gmp/printf/doprnt.c:273:8:
internal compiler error: tree check: expected class 'type', 
have 'exceptional' (error_mark) in build_c_cast, at c-typeck.c:4541
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[5]: *** [doprnt.lo] Error 1
make[5]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build/gmp/printf'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build/gmp'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build/gmp'
make[2]: *** [all-stage2-gmp] Error 2
make[2]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/htl10/tmp-build/gcc-4.6.1-build'
make: *** [all] Error 2


I tried working around the above errors as follows:

--- gmp-impl.h~    2012-08-30 05:51:36.000000000 +0100
+++ gmp-impl.h    2012-08-30 06:07:00.000000000 +0100
@@ -184,6 +184,8 @@


 /* gmp_uint_least32_t is an unsigned integer type with at least 32 bits. */
+#undef HAVE_UINT_LEAST32_T
+#undef HAVE_INTMAX_T
 #if HAVE_UINT_LEAST32_T
 typedef uint_least32_t      gmp_uint_least32_t;
 #else

--- vasprintf.c~    2010-06-10 12:00:14.000000000 +0100
+++ vasprintf.c    2012-08-30 06:15:36.000000000 +0100
@@ -52,6 +52,10 @@
 #include <stddef.h>             /* for ptrdiff_t */
 #endif

+#ifndef SIZE_MAX
+#define SIZE_MAX (18446744073709551615UL)
+#endif
+
 #if HAVE_INTTYPES_H
 # include <inttypes.h> /* for intmax_t */
 #else

------------------------
the result still does not compare (bug likely due to other problems detailed in
44959). Anyhow, I suspect that the reasons for the above errors is that stage 1
uses system headers which do not have those C99(?) defines, but stage2 have
gcc's own patched headers, which have those defines, and therefore have those
config's during configure, but when it comes to actually compiling, still uses
the system headers, and therefore fails. These are my guesses.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-09-01  3:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-01  3:07 [Bug bootstrap/54447] New: gmp in source does not work on alphaev68-dec-osf5.1a htl10 at users dot sourceforge.net

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).