From owner-freebsd-current@FreeBSD.ORG Thu Aug 7 10:51:56 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07EE237B404 for ; Thu, 7 Aug 2003 10:51:55 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45AFD43FB1 for ; Thu, 7 Aug 2003 10:51:48 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h77Hpefr044389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Aug 2003 20:51:42 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h77HpeTV044387; Thu, 7 Aug 2003 20:51:40 +0300 (EEST) (envelope-from ru) Date: Thu, 7 Aug 2003 20:51:40 +0300 From: Ruslan Ermilov To: "Daniel C. Sobral" Message-ID: <20030807175139.GA43977@sunbay.com> References: <20030807074557.S75796@root.org> <3F32906F.7010402@tcoip.com.br> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <3F32906F.7010402@tcoip.com.br> User-Agent: Mutt/1.5.4i cc: current@freebsd.org cc: Nate Lawson Subject: Re: Warning with loader Makefile? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 17:51:56 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 07, 2003 at 02:46:23PM -0300, Daniel C. Sobral wrote: > Nate Lawson wrote: > >I get this: > >=3D=3D=3D> i386/cdboot > >=3D=3D=3D> i386/kgzldr > >=3D=3D=3D> i386/libi386 > >=3D=3D=3D> i386/loader > >"/usr/share/mk/bsd.prog.mk", line 38: warning: duplicate script for targ= et=20 > >"loader" ignored > >cc -nostdlib -static -Ttext 0x0 -o loader.sym > >/home/obj/home/src/sys/boot/i386/loader/../btx/lib/crt0.o main.o conf.o > >bcache.o boot.o commands.o console.o devopen.o interp.o interp_backslash= =2Eo > >interp_parse.o ls.o misc.o module.o panic.o load_elf32.o load_elf64.o > >isapnp.o pnp.o interp_forth.o vers.o > > > >Why is there a duplicate script? >=20 > This might be a new gcc 3.3 warning. The ${PROG} target is defined in=20 > loader's Makefile: >=20 > # $FreeBSD: src/sys/boot/i386/loader/Makefile,v 1.66 2003/06/26 03:51:57= =20 > peter Exp $ > ... > PROG=3D loader > ... > ${PROG}: ${PROG}.bin ${BTXLDR} ${BTXKERN} ${BTXCRT} > btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l ${BTXLDR} \ > -b ${BTXKERN} ${PROG}.bin >=20 > Now, bsd.prog.mk also defines a PROG target. It is included later on=20 > this file: >=20 > .include >=20 > ${PROG}.sym: ${OBJS} ${LIBI386} ${LIBSTAND} ${LIBFICL} vers.o > ${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \ > ${LIBFICL} ${LIBI386} ${LIBSTAND} >=20 >=20 > This was added by Mike Smith in version 1.13. It brings in ${OBJS}=20 > definition and maybe linker stuff (from Mike's commit message). >=20 > I'm bringing Ruslan in this. He might be able to help with this. >=20 I'm well aware of this problem. It's been on my TODO list for a long time. When I have time, I will fix it. Don't worry, it's harmless, and no, it's not new, and it doesn't have any relation to GCC. It's just that make(1) was fixed to print these warnings (was that Juli who fixed it?). Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/MpGrUkv4P6juNwoRAhuGAJ0TmE2GjwGcYs2kLji41TyZi3t4yACfcw4w pfgQVSwzu5OeaK+CpAMUtCc= =9+GJ -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--