[Microbit-Python] Halp! Reinstalled OS and can't build firmware anymore.

Radomir Dopieralski microbit at sheep.art.pl
Tue Nov 24 11:51:35 EST 2015


Thank you!

Thanks to your hints, I fixed it and got micropython to compile.

I fixed it with this command:

sudo ln
-s /usr/lib/arm-none-eabi/include/c++/4.9 /usr/lib/arm-none-eabi/include/c++/4.9.3

Cheers!


On Tue, 24 Nov 2015 16:25:56 +0000
Michael <sparks.m at gmail.com> wrote:

> In this context, this:
> 
>     #include <cstddef>
> 
> Doesn't refer to libstdc++, it refers to this:
> 
>    /usr/arm-none-eabi/include/c++/4.9.3/cstddef
> 
> (rather than libstd++ etc)
> 
> 
> Looking at the PPA info:
> 
>     https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded
> 
> That does list packages for 15.10 -- ie  "wily"
> 
> The build status looks fine too from here:
> 
> 
> https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded/+packages
> 
> So that looks like the package exists.
> 
> Couple of possibilities:
> 
> - When you upgrade from one version of ubuntu to the next, some
> sources are disabled, and need to be manually re-enabled. That might
> be the case here.
> - Secondly, it might be that it's installed, but yotta can't find it.
> If the above file exists on your system, that might be the cause.
> 
> My guess therefore is it might be the former PPA. (easiest option to
> overlook and would just need re-enabling) The less nice option is
> that it's installed and yotta can't find it. The file above is the
> one you're looking for though.
> 
> Looking at the other PPA (which seems less relevant, but that could be
> wrong)
> 
>     https://launchpad.net/~pmiller-opensource/+archive/ubuntu/ppa
> 
> And also in:
> 
>     https://launchpad.net/~pmiller-opensource/+archive/ubuntu/ppa/+packages
> 
> I note that none of the packages there mention "wily" -- suggesting
> that pmiller hasn't updated his PPA for wily/15.10 as yet. As to how
> much of a problem that would be I'm not sure, but I think it's
> separate from not being able to find cstddef, and one you'd hit after
> fixing the cstddef one.
> 
> All that said, it might also be worth checking that the output of
> this:
> 
> apt-cache showpkg gcc-arm-none-eabi
> 
> Shows useful stuff, rather than something like:
> 
> N: Unable to locate package gcc-arm-none-eabi
> 
> Hopefully some of that might be of use...
> 
> 
> Michael.
> 
> 
> On 24 November 2015 at 15:38, Damien George
> <damien.p.george at gmail.com> wrote:
> 
> > Larry, did you find a solution to this?  We have another report of
> > the same problem:
> > https://github.com/bbcmicrobit/micropython/issues/109
> >
> > On Thu, Nov 12, 2015 at 9:24 AM, Larry Hastings <larry at hastings.org>
> > wrote:
> > > I wrote the instructions on adding the PPAs ;-)
> > >
> > > Yes, I ran the stuff in the README.  I actually open the README
> > > and copy-and-paste it into my shell.  And I added the PPAs in the
> > > list.  But
> > it
> > > appears there's some other thing missing--either that, or, the
> > > PPAs
> > aren't
> > > entirely ready for the recently-shipped Ubuntu 15.10.
> > >
> > >
> > > On Thu, Nov 12, 2015 at 12:27 AM, Nicholas H.Tollervey
> > > <ntoll at ntoll.org> wrote:
> > >>
> > >> Larry,
> > >>
> > >> Apologies if this sounds funny, but can you confirm that you've
> > >> followed all the instructions in the README file? I notice there
> > >> are a couple of PPAs that need adding and you also need to tell
> > >> yotta to target bbc-microbit-classic-gcc-nosd.
> > >>
> > >> I'm only asking because, on far too many occasions, I have missed
> > >> something in the README. Consider this a pre-flight check to
> > >> ensure that we're all on the same page that, "yes, I did follow
> > >> all the bloody instructions in the README Nicholas,
> > >> thankyouverymuch" and thus something more fundamental has
> > >> broken. ;-)
> > >>
> > >> I'll spin up a virtualized Ubuntu and have a go myself over
> > >> lunch (I've just arrived at "real work" [tm] to an inbox full of
> > >> "ugh").
> > >>
> > >> All the best,
> > >>
> > >> Nicholas.
> > >>
> > >> On 12/11/15 03:57, Larry Hastings wrote:
> > >> >
> > >> > I /should/ be current with microbit / micropython / yotta
> > >> > modules.
> > But
> > >> > I installed Ubuntu 15.10, and it turns out my "prebuild.sh" is
> > >> > insufficient to get all the dependencies.  When I start a
> > >> > build I get this error right away:
> > >> >
> > >> >     In file included from
> > >> >
> > >> >
> > /home/larry/src/microbit/microbit-micropython/yotta_modules/mbed-classic/api/Timer.h:19:0,
> > >> >                      from
> > >> >
> > >> >
> > /home/larry/src/microbit/microbit-micropython/yotta_modules/mbed-classic/common/Timer.cpp:16:
> > >> >
> > >> >
> > /home/larry/src/microbit/microbit-micropython/yotta_modules/mbed-classic/api/platform.h:25:19:
> > >> >     fatal error: cstddef: No such file or directory
> > >> >      #include <cstddef>
> > >> >                        ^
> > >> >
> > >> >
> > >> > This sure looks like libstdc++ to me.  I installed every
> > likely-looking
> > >> > libstdc++ library I could find in the package manager.  No joy.
> > >> >
> > >> > Anybody go from 0 to compiling on Ubuntu recently?
> > >> >
> > >> > Anxiously yours,
> > >> >
> > >> >
> > >> > //arry/
> > >> >
> > >> >
> > >> > _______________________________________________
> > >> > Microbit mailing list
> > >> > Microbit at python.org
> > >> > https://mail.python.org/mailman/listinfo/microbit
> > >> >
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> Microbit mailing list
> > >> Microbit at python.org
> > >> https://mail.python.org/mailman/listinfo/microbit
> > >>
> > >
> > >
> > > _______________________________________________
> > > Microbit mailing list
> > > Microbit at python.org
> > > https://mail.python.org/mailman/listinfo/microbit
> > >
> > _______________________________________________
> > Microbit mailing list
> > Microbit at python.org
> > https://mail.python.org/mailman/listinfo/microbit
> >



-- 
Radomir Dopieralski

-- 
Radomir Dopieralski


More information about the Microbit mailing list