public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45326]  New: gmp's use of C99 keeps breaking my compiles, suggest set autoconf variables to avoid inttypes/stdint
@ 2010-08-18 21:26 jay dot krell at cornell dot edu
  2010-08-18 21:27 ` [Bug bootstrap/45326] " jay dot krell at cornell dot edu
  0 siblings, 1 reply; 2+ messages in thread
From: jay dot krell at cornell dot edu @ 2010-08-18 21:26 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug bootstrap/45326] gmp's use of C99 keeps breaking my compiles, suggest set autoconf variables to avoid inttypes/stdint
  2010-08-18 21:26 [Bug bootstrap/45326] New: gmp's use of C99 keeps breaking my compiles, suggest set autoconf variables to avoid inttypes/stdint jay dot krell at cornell dot edu
@ 2010-08-18 21:27 ` jay dot krell at cornell dot edu
  0 siblings, 0 replies; 2+ messages in thread
From: jay dot krell at cornell dot edu @ 2010-08-18 21:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jay dot krell at cornell dot edu  2010-08-18 21:27 -------
example error:

file included from /home/jayk/src/gcc-4.5.1/gmp/assert.c:27:0:
/home/jayk/src/gcc-4.5.1/gmp/gmp-impl.h:188:29: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'gmp_uint_least32_t'
In file included from /home/jayk/src/gcc-4.5.1/gmp/assert.c:27:0:
/home/jayk/src/gcc-4.5.1/gmp/gmp-impl.h:3413:7: error: expected
specifier-qualifier-list before 'gmp_uint_least32_t'


-- 


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


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

end of thread, other threads:[~2010-08-18 21:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-18 21:26 [Bug bootstrap/45326] New: gmp's use of C99 keeps breaking my compiles, suggest set autoconf variables to avoid inttypes/stdint jay dot krell at cornell dot edu
2010-08-18 21:27 ` [Bug bootstrap/45326] " jay dot krell at cornell dot edu

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