[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/5146] New: bfd build fails in alloca-conf.h when built wit
From: |
haubi at gentoo dot org |
Subject: |
[Bug binutils/5146] New: bfd build fails in alloca-conf.h when built without gcc |
Date: |
9 Oct 2007 08:09:05 -0000 |
When building binutils-2.18 with native cc on hppa-hpux11.11,
include/alloca-conf.h fails to correctly include <alloca.h>, or to define 'PTR'
when included in bfd/som.c:
libtool: compile: cc -Wp,-H256000 -DHAVE_CONFIG_H -I.
-I/source/binutils-2.18/bfd -I. -DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE
-DHPUX_CORE -I. -I/source/binutils-2.18/bfd
-I/source/binutils-2.18/bfd/../include -O3 -c /source/binutils-2.18/bfd/som.c -o
som.o
cc: "/source/binutils-2.18/bfd/../include/alloca-conf.h", line 15: error 1000:
Unexpected symbol: "alloca".
cc: panic 2017: Cannot recover from earlier errors, terminating.
gmake[4]: *** [som.lo] Error 1
gmake[4]: Leaving directory `/build/binutils-2.18/bfd'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/build/binutils-2.18/bfd'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/build/binutils-2.18/bfd'
gmake[1]: *** [all-bfd] Error 2
gmake[1]: Leaving directory `/build/binutils-2.18'
gmake: *** [all] Error 2
This line 15 is
extern PTR alloca (size_t);
The problem causing cc to fail is that 'PTR' is not typedef'd or defined before
- don't know where this should be done.
Instead, <alloca.h> could be used here, but bfd/configure.in does not check for
"alloca.h":
--- binutils-2.18/bfd/configure.in.orig 2007-10-09 09:35:46.626269000 +0200
+++ binutils-2.18/bfd/configure.in 2007-10-09 09:36:41.264676000 +0200
@@ -159,7 +159,7 @@
BFD_CC_FOR_BUILD
-AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
+AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h)
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
GCC_HEADER_STDINT(bfd_stdint.h)
AC_HEADER_TIME
--
Summary: bfd build fails in alloca-conf.h when built without gcc
Product: binutils
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: haubi at gentoo dot org
CC: bug-binutils at gnu dot org
GCC build triplet: hppa2.0w-hp-hpux11.11
GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11
http://sourceware.org/bugzilla/show_bug.cgi?id=5146
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/5146] New: bfd build fails in alloca-conf.h when built without gcc,
haubi at gentoo dot org <=
- Re: [Bug binutils/5146] New: bfd build fails in alloca-conf.h when built without gcc, Nick Clifton, 2007/10/12
- [Bug binutils/5146] bfd build fails in alloca-conf.h when built without gcc, nickc at redhat dot com, 2007/10/12
- [Bug binutils/5146] bfd build fails in alloca-conf.h when built without gcc, haubi at gentoo dot org, 2007/10/15
- [Bug binutils/5146] bfd build fails in alloca-conf.h when built without gcc, nickc at redhat dot com, 2007/10/16
- [Bug binutils/5146] bfd build fails in alloca-conf.h when built without gcc, haubi at gentoo dot org, 2007/10/16
- [Bug binutils/5146] bfd build fails in alloca-conf.h when built without gcc, nickc at redhat dot com, 2007/10/16
- [Bug binutils/5146] bfd build fails in alloca-conf.h when built without gcc, haubi at gentoo dot org, 2007/10/16
- [Bug binutils/5146] bfd build fails in alloca-conf.h when built without gcc, nickc at redhat dot com, 2007/10/16