Date: Thu, 26 Sep 2002 17:12:49 -0700 From: Peter Wemm <peter@wemm.org> To: Nate Lawson <nate@root.org> Cc: current@freebsd.org Subject: Re: alpha tinderbox failure Message-ID: <20020927001249.D054B2A894@canning.wemm.org> In-Reply-To: <Pine.BSF.4.21.0209261659310.72047-100000@root.org>
index | next in thread | previous in thread | raw e-mail
Nate Lawson wrote:
> On Thu, 26 Sep 2002, Dag-Erling Smorgrav wrote:
> > --------------------------------------------------------------
> > >>> Rebuilding the temporary build tree
> > --------------------------------------------------------------
> > >>> stage 1: bootstrap tools
> > --------------------------------------------------------------
> > >>> stage 2: cleaning up the object tree
> > --------------------------------------------------------------
> > >>> stage 2: rebuilding the object tree
> > --------------------------------------------------------------
> > >>> stage 2: build tools
> > --------------------------------------------------------------
> > >>> stage 3: cross tools
> > --------------------------------------------------------------
> > >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/i
nclude
> > --------------------------------------------------------------
> > >>> stage 4: building libraries
> > --------------------------------------------------------------
> > >>> stage 4: make dependencies
> > --------------------------------------------------------------
> > >>> stage 4: building everything..
> > --------------------------------------------------------------
> > >>> Kernel build for GENERIC started on Thu Sep 26 15:20:27 PDT 2002
> > --------------------------------------------------------------
> > >>> Kernel build for GENERIC completed on Thu Sep 26 15:50:41 PDT 2002
> > --------------------------------------------------------------
> > >>> Kernel build for LINT started on Thu Sep 26 15:50:41 PDT 2002
> > --------------------------------------------------------------
> > ===> vinum
> > cc1: warnings being treated as errors
> > /h/des/src/sys/dev/advansys/adv_pci.c: In function `adv_pci_attach':
> > /h/des/src/sys/dev/advansys/adv_pci.c:197: warning: overflow in implicit co
nstant conversion
> > *** Error code 1
> >
> > Stop in /h/des/obj/h/des/src/sys/LINT.
> > *** Error code 1
> >
> > Stop in /h/des/src.
> > *** Error code 1
> >
> > Stop in /h/des/src.
>
> I don't understand why this error occurs since the types all seem to
> match.
>
> Relevant lines from src/sys/dev/advansys/adv_pci.c:
>
> /* Allocate a dmatag for our transfer DMA maps */
> /* XXX Should be a child of the PCI bus dma tag */
> error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/1,
> /*boundary*/0,
> /*lowaddr*/ADV_PCI_MAX_DMA_ADDR,
> /*highaddr*/BUS_SPACE_MAXADDR,
> /*filter*/NULL, /*filterarg*/NULL,
> /*maxsize*/BUS_SPACE_MAXSIZE_32BIT,
> /*nsegments*/BUS_SPACE_UNRESTRICTED,
> /*maxsegsz*/ADV_PCI_MAX_DMA_COUNT,
> /*flags*/0,
> 197 -----> &adv->parent_dmat);
>
> Yet in src/sys/alpha/include/bus.h:
> typedef struct bus_dma_tag *bus_dma_tag_t;
> ...
> int bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignemnt,
> bus_size_t boundary, bus_addr_t lowaddr,
> bus_addr_t highaddr, bus_dma_filter_t *filtfunc,
> void *filtfuncarg, bus_size_t maxsize, int
> nsegments,
> bus_size_t maxsegsz, int flags, bus_dma_tag_t
> *dmat);
gcc is telling you the wrong line. The problem is here:
int nsegments;
vs:
/*nsegments*/BUS_SPACE_UNRESTRICTED,
note that:
bus.h:#define BUS_SPACE_UNRESTRICTED (~0UL)
0xffffffffffffffff will not fit in an int.
Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020927001249.D054B2A894>
