On 01/23/2014 01:28 AM, Karl Palsson wrote:
>
> In lib/Makefile.include:
>
> > @@ -23,6 +23,8 @@ ifneq ($(V),1)
> >  Q := @
> >  endif
> >
> > +CFLAGS += -I/usr/include
> > +
>
> yeah, no way is that ok to just merge in :) that's going to be very 
> much not ok for lots of people and platform combos. Could you share 
> more about how you installed this or anything?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/libopencm3/libopencm3/pull/249/files#r9097445>.
>

Yeah, I realize that it's "not ok" patch :) It's just my workaround for 
Debian toolchain.
I'm using Debian toolchain from package "gcc-arm-none-eabi" and this 
workaround helped me to build this project.
I don't know actually how to do this in right way. Maybe Debian 
toolchain broken or something like this.

I also tried to build "miniblink" project from "libopencm3-examples" 
project, but it shows me linking error like "Missing -lc -lnosys". So it 
turns out I should just use another toolchain.
But your description from README tells me that "arm-none-eabi" would be 
fine, and what I have from Debian repos it's exactly "arm-none-eabi".
And if it so, maybe you should fix your README file and abandon this 
patch then ;)

No, really, which toolchain I should use? I just wanted to use one from 
official Debian repository, but I see it's not the case.

-- 
Best regards,
  Sam Protsenko