Hi Gareth,

Actually I've already tried the summon-arm-toolchain method but I've missed to install some dependencies.

I fixed the problem by installing them and using summon-arm-toolchain to compile libopenstm32, it works !

Thanks for you help.

2011/10/11 Gareth McMullin <gareth@blacksphere.co.nz>
Hi Kamel

libnosys is shipped with, and normally built with Newlib
(http://sourceware.org/newlib/) which is a C library for embedded
systems. álibnosys provides dummy system calls for systems without an
OS to that applications can link to Newlib with no undefined symbols.
See http://sourceware.org/newlib/libc.html#Syscalls

I believe that Newlib is the C library provided with the Code Sourcery
toolchain, so I would expect libnosys to be in there somewhere, but it
is possible that it's been removed from the distribution.

The popular toolchain for use with libopenstm32 is summon-arm-toolchain:
https://github.com/esden/summon-arm-toolchain
This script builds an arm-eabi toolchain including binutils, gcc,
newlib, gdb and libopenstm32.

I hope this helps.

Regards,
Gareth


On Tue, Oct 11, 2011 at 10:19 PM, Kamel BOUHARA <k.bouhara@gmail.com> wrote:
>
> Hi all,
> I am just starting to work on my Olimex stm32-h103 board. I've downloaded
> the libopenstm32 and want to compile it with the arm-none-eabi from sourcery
> lite (version 2011) and here is what I'm getting :
> $áPREFIX=/home/mks/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi make
> ááBUILD á lib/stm32
> ááCC á á ávector.o
> ááCC á á árcc.o
> ááCC á á ágpio.o
> ááCC á á áusart.o
> ááCC á á áadc.o
> ááCC á á áspi.o
> ááCC á á áflash.o
> ááCC á á ánvic.o
> ááCC á á ártc.o
> ááCC á á ái2c.o
> ááCC á á ádma.o
> ááCC á á ásystick.o
> ááCC á á áexti.o
> ááCC á á áscb.o
> ááCC á á áethernet.o
> ááCC á á áusb_f103.o
> ááCC á á áusb.o
> ááCC á á áusb_control.o
> ááCC á á áusb_standard.o
> ááCC á á ácan.o
> ááCC á á átimer.o
> ááCC á á áusb_f107.o
> ááAR á á álibopencm3_stm32.a
> ááBUILD á lib/lpc13xx
> ááCC á á ágpio.o
> ááAR á á álibopencm3_lpc13xx.a
> ááBUILD á lib/lm3s
> ááCC á á ágpio.o
> ááCC á á ávector.o
> ááAR á á álibopencm3_lm3s.a
> ááBUILD á examples/stm32/lisa-m/fancyblink
> /home/mks/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld:
> cannot find -lnosys
> collect2: ld returned 1 exit status
> make[1]: *** [fancyblink.elf] Error 1
> make: *** [examples] Error 2
> It seems the makefile is not looking at the good lib directories ?
> Any help would be appreciate.
> Thanks.
> --
> __________________________________
> Kamel BOUHARA
> 7 rue Jules CÚsar
> 02100 SAINT-QUENTIN
> 06.17.83.29.04
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> libopenstm32-devel mailing list
> libopenstm32-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libopenstm32-devel
>
>



--
Black Sphere Technologies Ltd.

Web: www.blacksphere.co.nz
Mobile: +64 27 777 2182
Tel: +64 9 478 8885
Skype: gareth.mcmullin
LinkedIn: http://nz.linkedin.com/in/gsmcmullin



--
__________________________________
Kamel BOUHARA
7 rue Jules CÚsar
02100 SAINT-QUENTIN
06.17.83.29.04