This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/45326] New: gmp's use of C99 keeps breaking my compiles, suggest set autoconf variables to avoid inttypes/stdint
- From: "jay dot krell at cornell dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2010 21:26:43 -0000
- Subject: [Bug bootstrap/45326] New: gmp's use of C99 keeps breaking my compiles, suggest set autoconf variables to avoid inttypes/stdint
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I seem to keep running into inttypes.h/stdint.h that aren't quite adequate,
esp. for gmp. For example, in mpfr:
https://gforge.inria.fr/scm/viewvc.php/trunk/get_uj.c?view=log&root=mpfr&pathrev=7083#rev7082
Anyway, I suggest this to reduce the problem:
bash-4.1$ diff -u Makefile.in.orig Makefile.in
--- Makefile.in.orig 2010-08-18 11:33:42 -0700
+++ Makefile.in 2010-08-18 11:33:13 -0700
@@ -16308,7 +16308,7 @@
libsrcdir="$$s/gmp"; \
$(SHELL) $${libsrcdir}/configure \
$(HOST_CONFIGARGS) --build=${build_alias}
--host=none-${host_vendor}-${host_os} \
- --target=none-${host_vendor}-${host_os} $${srcdiroption}
--disable-shared \
+ --target=none-${host_vendor}-${host_os} $${srcdiroption}
--disable-shared ac_cv_header_inttypes_h=no ac_cv_header_stdint_h=no \
|| exit 1
@endif gmp
Slightly tested.
I tried setting the ac_* variables around the entire gcc configure but that
broke's libiberty's use of intptr_t.
--
Summary: gmp's use of C99 keeps breaking my compiles, suggest set
autoconf variables to avoid inttypes/stdint
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jay dot krell at cornell dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45326