bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

binutils-2.17.50 build fail (alloca undefined also in bfd/vms-hdr.c, bfd


From: anirkko
Subject: binutils-2.17.50 build fail (alloca undefined also in bfd/vms-hdr.c, bfd/xsym.c)
Date: Fri, 20 Apr 2007 23:54:43 +0200 (MET DST)

Hi
For 2 more files, build of snapshot binutils-2.17.50 fails (on Solaris 2.6)
when compiling bfd/vms-hdr.c and bfd/xsym.c because alloca is undefined.

Strangely enough, the first file (bfd/vms-hdr.c) even has
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif

Therfore, it is probably the configure (when using "configure 
--enable-targets=all"
on Solaris 2.6) failing to define HAVE_ALLOCA_H somewhere? (at least on my
platform). Or failing to include the file where HAVE_ALLOCA_H was defined???

Looks like the problem in bfd/elf32-m68hc1x.c reported a few minutes ago
might have the same underlying reason. Like there, unconditionally using
#include <alloca.h>
works for me (but real problem must be somewhere else...?)

Greets,
Arto

-------------------------------------------------------------------
/bin/ksh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I/build/binutils-2.17.50/bfd -I. -I. -I/build/binutils-2.17.50/bfd 
-I/build/binutils-2.17.50/bfd/../include     -W -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Werror -O3 -mcpu=supersparc -mno-app-regs -c -o 
vms-hdr.lo /build/binutils-2.17.50/bfd/vms-hdr.c
gcc -DHAVE_CONFIG_H -I. -I/build/binutils-2.17.50/bfd -I. -I. 
-I/build/binutils-2.17.50/bfd -I/build/binutils-2.17.50/bfd/../include -W -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Werror -O3 -mcpu=supersparc 
-mno-app-regs -c /build/binutils-2.17.50/bfd/vms-hdr.c -o vms-hdr.o
cc1: warnings being treated as errors
/build/binutils-2.17.50/bfd/vms-hdr.c: In function '_bfd_vms_write_hdr':
/build/binutils-2.17.50/bfd/vms-hdr.c:219: warning: implicit declaration of 
function 'alloca'
/build/binutils-2.17.50/bfd/vms-hdr.c:219: warning: incompatible implicit 
declaration of built-in function 'alloca'
gmake[4]: *** [vms-hdr.lo] Error 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]