[U-Boot] Missing definition of DIV_ROUND

Wolfgang Denk wd at denx.de
Tue Oct 28 17:55:49 CET 2008


Dear Gary Jennejohn,

In message <20081028112139.5978aad1 at ernst.jennejohn.org> you wrote:
> From u-boot HEAD grabbed just a few minutes ago...

Which commit ID is this where you see such behaviour?

> garyj:tdt:u-boot:bash:1> ./MAKEALL ppc
> Configuring for cmi_mpc5xx board...
> strmhz.c: In function 'strmhz':
> strmhz.c:30: warning: implicit declaration of function 'DIV_ROUND'
> lib_generic/libgeneric.a(strmhz.o): In function `strmhz':
> /home/garyj/proj/junk/u-boot/lib_generic/strmhz.c:30: undefined reference to `DIV_ROUND'
> /home/garyj/proj/junk/u-boot/lib_generic/strmhz.c:34: undefined reference to `DIV_ROUND'
> make: *** [u-boot] Error 1
> size: './u-boot': No such file
> Configuring for ads5121 board...
> strmhz.c: In function 'strmhz':
> strmhz.c:30: warning: implicit declaration of function 'DIV_ROUND'
> lib_generic/libgeneric.a(strmhz.o): In function `strmhz':
> /home/garyj/proj/junk/u-boot/lib_generic/strmhz.c:30: undefined reference to `DIV_ROUND'
> /home/garyj/proj/junk/u-boot/lib_generic/strmhz.c:34: undefined reference to `DIV_ROUND'

Hmm... for me, current head is:

-> git-describe 
v2008.10-121-gd35c451
-> git-log
commit d35c451d6cff3e77e40fbdfc7a2933cdcb86ae4b
Merge: a369f4a... 6b59e03...
Author: Wolfgang Denk <wd at denx.de>
Date:   Tue Oct 28 08:37:19 2008 +0100

    Merge branch 'master' of git://git.denx.de/u-boot-video
...

And this builds just fine:

-> JOBS=-j5 ./MAKEALL ppc
Configuring for cmi_mpc5xx board...
   text    data     bss     dec     hex filename
  94312   71160    6756  172228   2a0c4 ./u-boot
Configuring for ads5121 board...
   text    data     bss     dec     hex filename
 198296   35480   28584  262360   400d8 ./u-boot
Configuring for BC3450 board...
   text    data     bss     dec     hex filename
 284504   29004  296336  609844   94e34 ./u-boot
Configuring for cm5200 board...
   text    data     bss     dec     hex filename
 263448   17532  281344  562324   89494 ./u-boot
...

You  must be doing something wrong, it seems.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It may be that your whole purpose in life is simply  to  serve  as  a
warning to others.


More information about the U-Boot mailing list