RE: source upgrading from 5.2.1-p11 to RELENG_5 causes compile error in/usr/src/contrib/binutils/bfd (from/usr/src/gnu/usr.bin/binutils/libbfd)

From: Steve Hodgson <steve_at_acidy.com>
Date: Tue, 12 Oct 2004 10:29:47 +0100
owner-freebsd-current_at_freebsd.org wrote:
> I've been cvsupping for the past few days and i always get
> the following error. I've been unable to find much of this on google.
> 
> My /etc/make.conf has nothing in particular in it, and i've
> not done anything silly in the past with make includes et al.
> I've tried setting OSRELDATE to zero to no avail, and i've
> looked through /usr/src/UPDATING and not found much. I've
> also tried running make cleandir (x2), deleting /usr/obj
> again to no success. finally I can cd directly into
> /usr/src/gnu/usr.bin/binutils/libbfd and "make" products the
> same error.
> 
> Am I missing the obvious?
> 
> Steve
> 
> apoligies for the length...
> 
> BEGIN################################################
> ===> gnu/usr.bin/binutils/libbfd
> cc -O -pipe -I. -I/usr/src/gnu/usr.bin/binutils/libbfd/i386
> -I/usr/src/gnu/usr.bin/binutils/libbfd
> -I/usr/src/gnu/usr.bin/binutils/libbfd/../libbfd
> -I/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/binutils/libbfd/../libbfd
> -I/usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/bin
> utils/include 
> -D_GNU_SOURCE
> -I/usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/bin
> utils/bfd 
> -DSELECT_ARCHITECTURES=" &bfd_i386_arch"
> -DHAVE_bfd_elf32_i386_freebsd_vec -DHAVE_bfd_elf32_i386_vec
> -DSELECT_VECS=" &bfd_elf32_i386_freebsd_vec
> ,&bfd_elf32_i386_vec" -DDEFAULT_VECTOR=bfd_elf32_i386_freebsd_vec
> -I/usr/obj/usr/src/i386/legacy/usr/include -c
> /usr/src/contrib/binutils/bfd/cpu-i386.c
> In file included from /usr/src/contrib/binutils/bfd/cpu-i386.c:23:
> /usr/src/contrib/binutils/bfd/libbfd.h:114: error: syntax
> error before "_bfd_add_bfd_to_archive_cache"
> /usr/src/contrib/binutils/bfd/libbfd.h:115: warning: data
> definition has no type or storage class
> /usr/src/contrib/binutils/bfd/libbfd.h:116: error: syntax
> error before "_bfd_generic_mkarchive"
> /usr/src/contrib/binutils/bfd/libbfd.h:117: warning: data
> definition has no type or storage class
> /usr/src/contrib/binutils/bfd/libbfd.h:120: error: syntax
> error before "bfd_slurp_armap"

<snip>

Well, to answer my own question: you need to compile sed first. This is the
steps I did

cd /usr/src/usr.bin/sed
sudo make build
cd /usr/src
sudo make buildworld

It's not finished the build yet but its on the way. Since nobody else seems
to have had this problem it probably isn't worth looking into too much
further. If more people are bitten then perhaps an entry in
/usr/src/UPDATING?

Steve
Received on Tue Oct 12 2004 - 07:29:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:16 UTC