[coreboot] Compile error in coreboot-v2: "failed to trunc value: mask ff"

Uwe Hermann uwe at hermann-uwe.de
Thu Apr 3 00:10:59 CEST 2008


On Wed, Apr 02, 2008 at 05:59:16PM -0400, Corey Osgood wrote:
> On Wed, Apr 2, 2008 at 5:12 PM, Stefan Reinauer <stepan at coresystems.de>
> wrote:
> 
> > In addition, you could try using "unsigned" instead of "u8"... I think
> > romcc is kind of bad at handling different data types and it handles all
> > sizes equally (ie. using u8 does not gain you the rest of the register you
> > are using)
> 
> 
> Thanks, unsigned int/long, u16/u32, and int/long all still produce the same
> error (including the auto unsigned char part).

Try -mcpu=p2 (or other values) in romcc, e.g.

  action  "./romcc -mcpu=p2 -E -O -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/auto.c -o $@"

That helped last time I had the same problem. Depends on which
CPU/chipset you use, of course.


Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org




More information about the coreboot mailing list