public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/49247] New: libiberty configure assumes newlib does not supply psignal
@ 2011-05-31 19:42 janis at gcc dot gnu.org
  2011-06-22 20:19 ` [Bug bootstrap/49247] " hp at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: janis at gcc dot gnu.org @ 2011-05-31 19:42 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: libiberty configure assumes newlib does not supply
                    psignal
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: janis@gcc.gnu.org


A build of GCC mainline for arm-none-eabi using mainline newlib fails
with:

/scratch/janisjo/arm-eabi-fsf/src/gcc-mainline/libiberty/strsignal.c:554:1:
error: conflicting types for 'psignal'
/scratch/janisjo/arm-eabi-fsf/install/arm-none-eabi/include/signal.h:27:6:
note: previous declaration of 'psignal' was here

where the installed version comes from newlib.  The libiberty version has
an argument with "char *" and the newlib version uses "const char *" for
that argument.

The newlib version of psignal was added on 2011-05-04.

The libiberty version of psignal is not compiled if HAVE_PSIGNAL is
defined, but when building against newlib it is never defined.

libiberty/configure.ac says:

  # If we are being configured for newlib, we know which functions
  # newlib provide and which ones we will be expected to provide.

and

    # Of the functions in $checkfuncs, newlib only has strerror.

This is no longer true, as the latest newlib now has psignal as well.
It could also be the case that later versions of newlib will have other
funtions in $checkfuncs.


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

end of thread, other threads:[~2011-12-15  1:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-31 19:42 [Bug bootstrap/49247] New: libiberty configure assumes newlib does not supply psignal janis at gcc dot gnu.org
2011-06-22 20:19 ` [Bug bootstrap/49247] " hp at gcc dot gnu.org
2011-06-22 21:33 ` hp at gcc dot gnu.org
2011-06-27 20:56 ` hp at gcc dot gnu.org
2011-06-27 21:05 ` hp at gcc dot gnu.org
2011-12-15  1:45 ` pinskia at gcc dot gnu.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).