public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/55344] New: Cross compiling for alpha-linux fails because <signal.h> doesn't exist
@ 2012-11-15 18:01 dan at danny dot cz
2012-12-09 1:09 ` [Bug target/55344] " pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: dan at danny dot cz @ 2012-11-15 18:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55344
Bug #: 55344
Summary: Cross compiling for alpha-linux fails because
<signal.h> doesn't exist
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dan@danny.cz
Created attachment 28702
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28702
fix cross build
Cross compiling libgcc for alpha-linux fails because <signal.h> included from
libgcc/config/alpha/linux-unwind.h doesn't exist
/builddir/build/BUILD/gcc-4.7.2-20121114-aarch64/alpha-linux-gnu/./gcc/xgcc
-B/builddir/build/BUILD/gcc-4.7.2-20121114-aarch64/alpha-linux-gnu/./gcc/
-B/usr/alpha-linux-gnu/bin/ -B/usr/alpha-linux-gnu/lib/ -isystem
/usr/alpha-linux-gnu/include -isystem /usr/alpha-linux-gnu/sys-include -g
-O2 -mieee -O2 -g -O2 -mieee -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -mieee
-g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fPIC
-mieee -I. -I. -I../.././gcc -I../../../gcc-4.7.2-20121114-aarch64/libgcc
-I../../../gcc-4.7.2-20121114-aarch64/libgcc/.
-I../../../gcc-4.7.2-20121114-aarch64/libgcc/../gcc
-I../../../gcc-4.7.2-20121114-aarch64/libgcc/../include -DHAVE_CC_TLS -o
unwind-c.o -MT unwind-c.o -MD -MP -MF unwind-c.dep -fexceptions -c
../../../gcc-4.7.2-20121114-aarch64/libgcc/unwind-c.c
In file included from
../../../gcc-4.7.2-20121114-aarch64/libgcc/unwind-dw2.c:376:0:
./md-unwind-support.h:28:20: fatal error: signal.h: No such file or directory
compilation terminated.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/55344] Cross compiling for alpha-linux fails because <signal.h> doesn't exist
2012-11-15 18:01 [Bug target/55344] New: Cross compiling for alpha-linux fails because <signal.h> doesn't exist dan at danny dot cz
@ 2012-12-09 1:09 ` pinskia at gcc dot gnu.org
2012-12-09 14:04 ` ubizjak at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-12-09 1:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55344
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
Target| |alpha*-*-linux-gnu
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-12-09 01:08:43 UTC ---
Simple wrap the whole file linux-unwind.h with #ifndef inhibit_libc like most
other target's linux-unwind.h.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/55344] Cross compiling for alpha-linux fails because <signal.h> doesn't exist
2012-11-15 18:01 [Bug target/55344] New: Cross compiling for alpha-linux fails because <signal.h> doesn't exist dan at danny dot cz
2012-12-09 1:09 ` [Bug target/55344] " pinskia at gcc dot gnu.org
@ 2012-12-09 14:04 ` ubizjak at gmail dot com
2012-12-09 18:16 ` uros at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2012-12-09 14:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55344
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ubizjak at gmail dot com
Target Milestone|--- |4.7.3
--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2012-12-09 14:04:26 UTC ---
I am testing following trivial patch:
--cut here--
Index: config/alpha/linux-unwind.h
===================================================================
--- config/alpha/linux-unwind.h (revision 194329)
+++ config/alpha/linux-unwind.h (working copy)
@@ -22,6 +22,7 @@
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
+#ifndef inhibit_libc
/* Do code reading to identify a signal frame, and set the frame
state data appropriately. See unwind-dw2.c for the structs. */
@@ -97,3 +98,4 @@
|| pc[1] == 0x201f015f)) /* lda $0,NR_rt_sigreturn */
_Unwind_SetSignalFrame (context, 1);
}
+#endif
--cut here--
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/55344] Cross compiling for alpha-linux fails because <signal.h> doesn't exist
2012-11-15 18:01 [Bug target/55344] New: Cross compiling for alpha-linux fails because <signal.h> doesn't exist dan at danny dot cz
2012-12-09 1:09 ` [Bug target/55344] " pinskia at gcc dot gnu.org
2012-12-09 14:04 ` ubizjak at gmail dot com
@ 2012-12-09 18:16 ` uros at gcc dot gnu.org
2012-12-09 18:21 ` uros at gcc dot gnu.org
2012-12-09 18:24 ` ubizjak at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: uros at gcc dot gnu.org @ 2012-12-09 18:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55344
--- Comment #3 from uros at gcc dot gnu.org 2012-12-09 18:16:07 UTC ---
Author: uros
Date: Sun Dec 9 18:15:59 2012
New Revision: 194334
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194334
Log:
PR target/55344
* config/alpha/linux-unwind.h: Disable when inhibit_libc is defined.
Modified:
trunk/libgcc/ChangeLog
trunk/libgcc/config/alpha/linux-unwind.h
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/55344] Cross compiling for alpha-linux fails because <signal.h> doesn't exist
2012-11-15 18:01 [Bug target/55344] New: Cross compiling for alpha-linux fails because <signal.h> doesn't exist dan at danny dot cz
` (2 preceding siblings ...)
2012-12-09 18:16 ` uros at gcc dot gnu.org
@ 2012-12-09 18:21 ` uros at gcc dot gnu.org
2012-12-09 18:24 ` ubizjak at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: uros at gcc dot gnu.org @ 2012-12-09 18:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55344
--- Comment #4 from uros at gcc dot gnu.org 2012-12-09 18:21:44 UTC ---
Author: uros
Date: Sun Dec 9 18:21:41 2012
New Revision: 194336
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194336
Log:
PR target/55344
* config/alpha/linux-unwind.h: Disable when inhibit_libc is defined.
Modified:
branches/gcc-4_7-branch/libgcc/ChangeLog
branches/gcc-4_7-branch/libgcc/config/alpha/linux-unwind.h
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/55344] Cross compiling for alpha-linux fails because <signal.h> doesn't exist
2012-11-15 18:01 [Bug target/55344] New: Cross compiling for alpha-linux fails because <signal.h> doesn't exist dan at danny dot cz
` (3 preceding siblings ...)
2012-12-09 18:21 ` uros at gcc dot gnu.org
@ 2012-12-09 18:24 ` ubizjak at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2012-12-09 18:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55344
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
URL| |http://gcc.gnu.org/ml/gcc-p
| |atches/2012-12/msg00586.htm
| |l
Resolution| |FIXED
--- Comment #5 from Uros Bizjak <ubizjak at gmail dot com> 2012-12-09 18:24:03 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-12-09 18:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-15 18:01 [Bug target/55344] New: Cross compiling for alpha-linux fails because <signal.h> doesn't exist dan at danny dot cz
2012-12-09 1:09 ` [Bug target/55344] " pinskia at gcc dot gnu.org
2012-12-09 14:04 ` ubizjak at gmail dot com
2012-12-09 18:16 ` uros at gcc dot gnu.org
2012-12-09 18:21 ` uros at gcc dot gnu.org
2012-12-09 18:24 ` ubizjak at gmail dot com
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).