On Thu, Aug 07, 2003 at 02:46:23PM -0300, Daniel C. Sobral wrote: > Nate Lawson wrote: > >I get this: > >===> i386/cdboot > >===> i386/kgzldr > >===> i386/libi386 > >===> i386/loader > >"/usr/share/mk/bsd.prog.mk", line 38: warning: duplicate script for target > >"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.o > >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? > > This might be a new gcc 3.3 warning. The ${PROG} target is defined in > loader's Makefile: > > # $FreeBSD: src/sys/boot/i386/loader/Makefile,v 1.66 2003/06/26 03:51:57 > peter Exp $ > ... > PROG= loader > ... > ${PROG}: ${PROG}.bin ${BTXLDR} ${BTXKERN} ${BTXCRT} > btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l ${BTXLDR} \ > -b ${BTXKERN} ${PROG}.bin > > Now, bsd.prog.mk also defines a PROG target. It is included later on > this file: > > .include <bsd.prog.mk> > > ${PROG}.sym: ${OBJS} ${LIBI386} ${LIBSTAND} ${LIBFICL} vers.o > ${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \ > ${LIBFICL} ${LIBI386} ${LIBSTAND} > > > This was added by Mike Smith in version 1.13. It brings in ${OBJS} > definition and maybe linker stuff (from Mike's commit message). > > I'm bringing Ruslan in this. He might be able to help with this. > 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, -- Ruslan Ermilov Sysadmin and DBA, ru_at_sunbay.com Sunbay Software Ltd, ru_at_FreeBSD.org FreeBSD committer
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC