NetBSD Problem Report #39837
From www@NetBSD.org Fri Oct 31 06:16:50 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 63EA863B908
for <gnats-bugs@gnats.netbsd.org>; Fri, 31 Oct 2008 06:16:50 +0000 (UTC)
Message-Id: <20081031061650.13D2B63B88A@narn.NetBSD.org>
Date: Fri, 31 Oct 2008 06:16:50 +0000 (UTC)
From: jeremyhu@cs.berkeley.edu
Reply-To: jeremyhu@cs.berkeley.edu
To: gnats-bugs@NetBSD.org
Subject: binutils compilation failure
X-Send-Pr-Version: www-1.0
>Number: 39837
>Category: toolchain
>Synopsis: binutils compilation failure
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 31 06:20:00 +0000 2008
>Closed-Date: Sun Dec 04 14:43:15 +0000 2016
>Last-Modified: Sun Dec 04 14:43:15 +0000 2016
>Originator: Jeremy Huddleston
>Release: netbsd-3 and netbsd-4
>Organization:
UC Berkeley
>Environment:
System being used to build netbsd/sparc
Linux cloud.cs.berkeley.edu 2.6.25-hardened-r8 #1 Sun Oct 26 11:23:37 PDT 2008 x86_64 AMD Athlon(tm) 64 Processor 2800+ AuthenticAMD GNU/Linux
>Description:
I have tried both the netbsd-3 and netbsd-4 cvs branches, and both give me the same problem while compiling binutils. I use the following:
ROOT_DIR="$(pwd)"
cd ${ROOT_DIR}/src
./build.sh -X ${ROOT_DIR}/xsrc -m sparc -O ${ROOT_DIR}/obj.sparc -T ${ROOT_DIR}/obj.sparc/tooldir.linux-amd64 -u tools
...
/home/cloud/jeremy/src/netbsd/netbsd-4/obj.sparc/tooldir.linux-amd64/bin/nbmake -f /home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../Makefile.gnuwrap all-recursive
Making all in doc
Making all in po
cc -DHAVE_CONFIG_H -I. -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils -I. -D_GNU_SOURCE -I. -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils -I../bfd -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/../bfd -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/../include -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/../intl -I../intl -DLOCALEDIR="\"/home/cloud/jeremy/src/netbsd/netbsd-4/obj.sparc/tooldir.linux-amd64/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -D_LARGEFILE64_SOURCE -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O -c /home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/bucomm.c
/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/bucomm.c: In function 'set_default_bfd_target':
/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/bucomm.c:106: error: 'TARGET' undeclared (first use in this function)
/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/bucomm.c:106: error: (Each undeclared identifier is reported only once
/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/bucomm.c:106: error: for each function it appears in.)
*** Failed target: bucomm.o
*** Failed command: cc -DHAVE_CONFIG_H -I. -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils -I. -D_GNU_SOURCE -I. -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils -I../bfd -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/../bfd -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/../include -I/home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/../intl -I../intl -DLOCALEDIR="\"/home/cloud/jeremy/src/netbsd/netbsd-4/obj.sparc/tooldir.linux-amd64/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -D_LARGEFILE64_SOURCE -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O -c /home/cloud/jeremy/src/netbsd/netbsd-4/src/tools/binutils/../../gnu/dist/binutils/binutils/bucomm.c
*** Error code 1
From the code:
void
set_default_bfd_target (void)
{
/* The macro TARGET is defined by Makefile. */
const char *target = TARGET;
...
>How-To-Repeat:
Checkout netbsd-3 or netbsd-4 and try building it for sparc on a linux x86_64 box using:
ROOT_DIR="$(pwd)"
cd ${ROOT_DIR}/src
./build.sh -X ${ROOT_DIR}/xsrc -m sparc -O ${ROOT_DIR}/obj.sparc -T ${ROOT_DIR}/obj.sparc/tooldir.linux-amd64 -u tools
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 04 Dec 2016 14:43:15 +0000
State-Changed-Why:
Report not too relevant any more
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.