public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
@ 2011-04-29 16:28 wkor97gy0eef1fr at i dot mintemail.com
2011-04-29 16:43 ` [Bug c/48825] " pinskia at gcc dot gnu.org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: wkor97gy0eef1fr at i dot mintemail.com @ 2011-04-29 16:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
Summary: libiberty "psignal" lacks const modifier, failing to
compile when HAVE_PSIGNAL is undefined
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: wkor97gy0eef1fr@i.mintemail.com
../../../libiberty/strsignal.c:554:1: error: conflicting types for ‘psignal’
/usr/include/signal.h:150:13: note: previous declaration of ‘psignal’ was here
strsignal.c:
#ifndef HAVE_PSIGNAL
void
psignal (int signo, char *message)
/usr/include/signal.h (GLIBC)
extern void psignal (int __sig, __const char *__s);
adding the __const modifier to the prototype of psignal in strsignal.c fixes
compilation.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
@ 2011-04-29 16:43 ` pinskia at gcc dot gnu.org
2011-04-29 16:55 ` wkor97gy0eef1fr at i dot mintemail.com
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-04-29 16:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011.04.29 16:42:04
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-04-29 16:42:04 UTC ---
HAVE_PSIGNAL is supposed to be defined if the header file has psignal. Why
does that not happen? Look at config.log.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
2011-04-29 16:43 ` [Bug c/48825] " pinskia at gcc dot gnu.org
@ 2011-04-29 16:55 ` wkor97gy0eef1fr at i dot mintemail.com
2011-04-29 17:04 ` froydnj at codesourcery dot com
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: wkor97gy0eef1fr at i dot mintemail.com @ 2011-04-29 16:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
--- Comment #2 from Josef Mutzenbacher <wkor97gy0eef1fr at i dot mintemail.com> 2011-04-29 16:51:06 UTC ---
(In reply to comment #1)
> HAVE_PSIGNAL is supposed to be defined if the header file has psignal. Why
> does that not happen? Look at config.log.
i was building with musl libc, but not in a chroot.
the first stage uses a wrapper script as CC, which sets the right include
paths.
i was using --disable-bootstrap to disable bootstrapping, but make still
invoked the compiled xgcc (thus, it looks as it had been entering the bootstrap
phase, but without the correct include paths).
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
2011-04-29 16:43 ` [Bug c/48825] " pinskia at gcc dot gnu.org
2011-04-29 16:55 ` wkor97gy0eef1fr at i dot mintemail.com
@ 2011-04-29 17:04 ` froydnj at codesourcery dot com
2011-04-30 12:34 ` wkor97gy0eef1fr at i dot mintemail.com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: froydnj at codesourcery dot com @ 2011-04-29 17:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
--- Comment #3 from froydnj at codesourcery dot com <froydnj at codesourcery dot com> 2011-04-29 17:02:42 UTC ---
On Fri, Apr 29, 2011 at 04:54:34PM +0000, wkor97gy0eef1fr at i dot
mintemail.com wrote:
> i was using --disable-bootstrap to disable bootstrapping, but make still
> invoked the compiled xgcc (thus, it looks as it had been entering the bootstrap
> phase, but without the correct include paths).
xgcc is invoked for target libraries; libiberty is built as a target
library.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (2 preceding siblings ...)
2011-04-29 17:04 ` froydnj at codesourcery dot com
@ 2011-04-30 12:34 ` wkor97gy0eef1fr at i dot mintemail.com
2011-06-02 19:31 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: wkor97gy0eef1fr at i dot mintemail.com @ 2011-04-30 12:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
--- Comment #4 from Josef Mutzenbacher <wkor97gy0eef1fr at i dot mintemail.com> 2011-04-30 12:33:36 UTC ---
(In reply to comment #3)
> xgcc is invoked for target libraries; libiberty is built as a target
> library.
may i ask why this is being built ? it seems as if it is not needed.
is there a way to disable it ?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (3 preceding siblings ...)
2011-04-30 12:34 ` wkor97gy0eef1fr at i dot mintemail.com
@ 2011-06-02 19:31 ` pinskia at gcc dot gnu.org
2011-06-08 11:49 ` hp at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-06-02 19:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-06-02 19:30:40 UTC ---
So the end result of the discussion on the mailing list was that libiberty
should not be built as a target library.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (4 preceding siblings ...)
2011-06-02 19:31 ` pinskia at gcc dot gnu.org
@ 2011-06-08 11:49 ` hp at gcc dot gnu.org
2011-06-22 21:32 ` hp at gcc dot gnu.org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hp at gcc dot gnu.org @ 2011-06-08 11:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hp at gcc dot gnu.org
--- Comment #6 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-08 11:48:36 UTC ---
It Would Be Nice if the eventual solution could be backported to open gcc
branches.
(My autotester, when trying to pick up newlib updates, fails for all branches
so it seems anyone trying to build a toolchain with a recent newlib and *any*
gcc will be hit.)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (5 preceding siblings ...)
2011-06-08 11:49 ` hp at gcc dot gnu.org
@ 2011-06-22 21:32 ` hp at gcc dot gnu.org
2011-06-27 20:56 ` hp at gcc dot gnu.org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hp at gcc dot gnu.org @ 2011-06-22 21:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
--- Comment #7 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-22 21:30:25 UTC ---
Author: hp
Date: Wed Jun 22 21:30:19 2011
New Revision: 175316
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175316
Log:
PR regression/47836
PR bootstrap/23656
PR other/47733
PR bootstrap/49247
PR c/48825
* configure.ac (target_libraries): Remove target-libiberty.
Remove case-statement setting skipdirs=target-libiberty for
multiple targets. Remove checking target_configdirs and
removing target-libiberty but keeping target-libgcc if
otherwise empty.
* Makefile.def (target_modules): Don't add libiberty.
(dependencies): Remove all traces of target-libiberty.
* configure, Makefile.in: Regenerate.
(add missing PR annotation in the ChangeLog entry)
Modified:
trunk/ChangeLog
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (6 preceding siblings ...)
2011-06-22 21:32 ` hp at gcc dot gnu.org
@ 2011-06-27 20:56 ` hp at gcc dot gnu.org
2011-06-27 21:06 ` hp at gcc dot gnu.org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hp at gcc dot gnu.org @ 2011-06-27 20:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
--- Comment #8 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-27 20:55:04 UTC ---
Author: hp
Date: Mon Jun 27 20:54:59 2011
New Revision: 175560
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175560
Log:
PR regression/47836
PR bootstrap/23656
PR other/47733
PR bootstrap/49247
PR c/48825
* configure.ac (target_libraries): Remove target-libiberty.
Remove all target-specific settings adding target-libiberty to
skipdirs and noconfigdirs. Remove checking target_configdirs
and removing target-libiberty but keeping target-libgcc if
otherwise empty.
* Makefile.def (target_modules): Don't add libiberty.
(dependencies): Remove all traces of target-libiberty.
* configure, Makefile.in: Regenerate.
Modified:
branches/gcc-4_6-branch/ChangeLog
branches/gcc-4_6-branch/Makefile.def
branches/gcc-4_6-branch/Makefile.in
branches/gcc-4_6-branch/configure
branches/gcc-4_6-branch/configure.ac
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (7 preceding siblings ...)
2011-06-27 20:56 ` hp at gcc dot gnu.org
@ 2011-06-27 21:06 ` hp at gcc dot gnu.org
2011-10-07 3:07 ` fzvqedi at v dot mintemail.com
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hp at gcc dot gnu.org @ 2011-06-27 21:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
--- Comment #9 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-27 21:03:01 UTC ---
Author: hp
Date: Mon Jun 27 21:02:53 2011
New Revision: 175564
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175564
Log:
PR regression/47836
PR bootstrap/23656
PR other/47733
PR bootstrap/49247
PR c/48825
* configure.ac (target_libraries): Remove target-libiberty.
Remove all target-specific settings adding target-libiberty to
skipdirs and noconfigdirs. Remove checking target_configdirs
and removing target-libiberty but keeping target-libgcc if
otherwise empty.
* Makefile.def (target_modules): Don't add libiberty.
(dependencies): Remove all traces of target-libiberty.
* configure, Makefile.in: Regenerate.
Modified:
branches/gcc-4_5-branch/ChangeLog
branches/gcc-4_5-branch/Makefile.def
branches/gcc-4_5-branch/Makefile.in
branches/gcc-4_5-branch/configure
branches/gcc-4_5-branch/configure.ac
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (8 preceding siblings ...)
2011-06-27 21:06 ` hp at gcc dot gnu.org
@ 2011-10-07 3:07 ` fzvqedi at v dot mintemail.com
2011-10-07 3:21 ` fzvqedi at v dot mintemail.com
2011-12-15 1:45 ` pinskia at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: fzvqedi at v dot mintemail.com @ 2011-10-07 3:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
Roger Meyer <fzvqedi at v dot mintemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fzvqedi at v dot
| |mintemail.com
--- Comment #10 from Roger Meyer <fzvqedi at v dot mintemail.com> 2011-10-07 03:06:58 UTC ---
duplicate of 47733, 41916
additionally to the removal of libiberty as target library, i'd recommend
fixing the prototype.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (9 preceding siblings ...)
2011-10-07 3:07 ` fzvqedi at v dot mintemail.com
@ 2011-10-07 3:21 ` fzvqedi at v dot mintemail.com
2011-12-15 1:45 ` pinskia at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: fzvqedi at v dot mintemail.com @ 2011-10-07 3:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
--- Comment #11 from Roger Meyer <fzvqedi at v dot mintemail.com> 2011-10-07 03:21:12 UTC ---
the actual problem leading to this is that the check for psignal doesn't
include the proper feature-test macros
to cite the manpage
SYNOPSIS
#include <signal.h>
void psignal(int sig, const char *s);
void psiginfo(const siginfo_t *pinfo, const char *s);
extern const char *const sys_siglist[];
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
psignal(): _SVID_SOURCE || _BSD_SOURCE
psiginfo(): _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
sys_siglist: _BSD_SOURCE
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
` (10 preceding siblings ...)
2011-10-07 3:21 ` fzvqedi at v dot mintemail.com
@ 2011-12-15 1:45 ` pinskia at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-15 1:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-15 01:42:43 UTC ---
Dup of bug 47733
*** This bug has been marked as a duplicate of bug 47733 ***
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-12-15 1:45 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-29 16:28 [Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined wkor97gy0eef1fr at i dot mintemail.com
2011-04-29 16:43 ` [Bug c/48825] " pinskia at gcc dot gnu.org
2011-04-29 16:55 ` wkor97gy0eef1fr at i dot mintemail.com
2011-04-29 17:04 ` froydnj at codesourcery dot com
2011-04-30 12:34 ` wkor97gy0eef1fr at i dot mintemail.com
2011-06-02 19:31 ` pinskia at gcc dot gnu.org
2011-06-08 11:49 ` hp at gcc dot gnu.org
2011-06-22 21:32 ` hp at gcc dot gnu.org
2011-06-27 20:56 ` hp at gcc dot gnu.org
2011-06-27 21:06 ` hp at gcc dot gnu.org
2011-10-07 3:07 ` fzvqedi at v dot mintemail.com
2011-10-07 3:21 ` fzvqedi at v dot mintemail.com
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).