Bug 17440 - Build fails for --target=i686-freebsd4
Summary: Build fails for --target=i686-freebsd4
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: 2.25
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-27 19:11 UTC by Masamichi Hosoda
Modified: 2014-09-29 15:37 UTC (History)
0 users

See Also:
Host:
Target: i686-freebsd4
Build:
Last reconfirmed:


Attachments
binutils-2.24-target-freebsd4.diff (324 bytes, text/plain)
2014-09-27 19:11 UTC, Masamichi Hosoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masamichi Hosoda 2014-09-27 19:11:07 UTC
Created attachment 7811 [details]
binutils-2.24-target-freebsd4.diff

In Cygwin64 environment, I tried to build binutils 2.24 by the following commands.

$ ./configure --target=i686-freebsd4
$ make CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter"

Then, the following error occurred.

> /home/trueroad/src/binutils-2.24/bfd/elf32-i386.c:
> In function 'elf_i386_fbsd_post_process_headers':
> /home/trueroad/src/binutils-2.24/bfd/elf32-i386.c:5095:
> error: 'i_ehdrp' undeclared (first use in this function)

It could solve with the attached patch.
Comment 1 Sourceware Commits 2014-09-29 15:37:12 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  cf7363b42b2fdc9fd108bed8d53b35adf4d52ad5 (commit)
      from  d98b0e2bf6120f50db57ff68eb9b2e00a9a26154 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cf7363b42b2fdc9fd108bed8d53b35adf4d52ad5

commit cf7363b42b2fdc9fd108bed8d53b35adf4d52ad5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Sep 29 08:35:49 2014 -0700

    Fix build for OLD_FREEBSD_ABI_LABEL
    
    	PR ld/17440
    	* elf32-i386.c (elf_i386_fbsd_post_process_headers): Fix build
    	for OLD_FREEBSD_ABI_LABEL.

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog    |    6 ++++++
 bfd/elf32-i386.c |    7 +++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
Comment 2 H.J. Lu 2014-09-29 15:37:59 UTC
Fixed.