next branch compilation errors

Belisko Marek marek.belisko at gmail.com
Sun Nov 27 07:11:13 EST 2011


On Sun, Nov 27, 2011 at 11:57 AM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> 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.
Maybe it depends on toolchain? I'm using:
gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50)
>
> 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 |
>

regards,

Marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com



More information about the barebox mailing list