mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* next branch compilation errors
@ 2011-11-25 21:42 Belisko Marek
  2011-11-27 10:57 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Belisko Marek @ 2011-11-25 21:42 UTC (permalink / raw)
  To: barebox

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?

Thanks,

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

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: next branch compilation errors
  2011-11-25 21:42 next branch compilation errors Belisko Marek
@ 2011-11-27 10:57 ` Sascha Hauer
  2011-11-27 12:11   ` Belisko Marek
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2011-11-27 10:57 UTC (permalink / raw)
  To: Belisko Marek; +Cc: barebox

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: next branch compilation errors
  2011-11-27 10:57 ` Sascha Hauer
@ 2011-11-27 12:11   ` Belisko Marek
  0 siblings, 0 replies; 3+ messages in thread
From: Belisko Marek @ 2011-11-27 12:11 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On Sun, Nov 27, 2011 at 11:57 AM, Sascha Hauer <s.hauer@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

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-27 12:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-25 21:42 next branch compilation errors Belisko Marek
2011-11-27 10:57 ` Sascha Hauer
2011-11-27 12:11   ` Belisko Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox