next branch compilation errors

Sascha Hauer s.hauer at pengutronix.de
Sun Nov 27 05:57:40 EST 2011


On Fri, Nov 25, 2011 at 10:42:33PM +0100, Belisko Marek wrote:
> Hi,
> 
> today I update next branch and run MAKEALL for arm gives result that
> most of board aren't compilable because of:
> 
> barebox/common/memory.c:66:14: warning: 'sbrk' defined but not used
> common/built-in.o: In function `memalign':
> memsize.c:(.text.memalign+0xc): undefined reference to `sbrk'
> make[1]: *** [barebox] Error 1
> make: *** [_all] Error 2
> 
> or:
> 
> barebox/common/memory.c:66:14: warning: 'sbrk' defined but not used
> common/built-in.o: In function `malloc':
> memsize.c:(.text.malloc+0x3e4): undefined reference to `sbrk'
> memsize.c:(.text.malloc+0x474): undefined reference to `sbrk'
> make[1]: *** [barebox] Error 1
> make: *** [_all] Error 2
> 
> Not sure if I'm doing something wrong or miss something?

Works for me. This 'defined but not used' and then the linker error
looks like sbrk would be static, but it isn't.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list