From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2224 invoked by alias); 31 Mar 2010 06:37:48 -0000 Received: (qmail 2216 invoked by uid 22791); 31 Mar 2010 06:37:47 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45 X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 31 Mar 2010 06:37:37 +0000 Received: by pwi2 with SMTP id 2so6275062pwi.0 for ; Tue, 30 Mar 2010 23:37:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.173.17 with HTTP; Tue, 30 Mar 2010 23:37:15 -0700 (PDT) In-Reply-To: <201003310810.07612.yann.morin.1998@anciens.enib.fr> References: <4BB28090.4070009@gentoo.org> <201003310810.07612.yann.morin.1998@anciens.enib.fr> From: David Wuertele Date: Wed, 31 Mar 2010 06:37:00 -0000 Received: by 10.141.15.21 with SMTP id s21mr4292615rvi.192.1270017455063; Tue, 30 Mar 2010 23:37:35 -0700 (PDT) Message-ID: Subject: Re: Crosstool-ng always starts from the top To: "Yann E. MORIN" Cc: crossgcc@sourceware.org, Stuart Longland Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00133.txt.bz2 Howdy folks, If restartability is a requirement but mature software is not, can I recommend Crossplex? Crossplex is a library of macros for GNU make that let you embed your own toolchain and root-filesystem builder in any makefile. Crossplex was designed from the ground up to be restartable. It is still new and doesn't have the broad userbase or compatibility that a great tool like crosstool-NG has, but it is scrappy and has big dreams! One of its main features is building multiple software configurations in the same tree. You can change your software configuration or add new ones without starting from a clean build. Anything that Crossplex can determine that can be reused between configurations will get reused without recompilation. There isn't much documentation yet, but I'm adding more almost daily. http://crossplex.org Dave PS I'm a big fan of crosstool and crosstool-NG. I've learned a lot from you guys and I hope my little contribution will be a hundredth as useful as your awesome tools! On Tue, Mar 30, 2010 at 11:10 PM, Yann E. MORIN wrote: > Stuart, All, > > On Wednesday 31 March 2010 00:52:00 Stuart Longland wrote: >> Is there a way to convince crosstool-ng to pick up where it left off? > > This is a limitation: crosstool-NG was not designed to be restartable. > > However, it appeared that debugging crosstool-NG itself was cumbersome > when a single script was modified, so a /kind of/ stop-and-restart > feature was added, that works _iff_ the configuration has not changed. > > That way, I was able to try to patch gcc or it's build script and restart > again without loosing too much time. > > To sum-up: > =C2=A0- no, it's not possible to restart where it left off, if the > =C2=A0 configuration has changed > =C2=A0- yes you can stop-and-restart at any place iff the configuration > =C2=A0 has *not* changed. > >> The upshot is that I have to run `ct-ng menuconfig` again, and tweak >> the options for gcc and run it again. =C2=A0This is fine, but when I run >> `ct-ng build`, it starts right from scratch again building GMP, MPFR, >> PPL, Cloog and binutils... which all should be identical to before, and >> shouldn't need rebuilding. > > That's right from a theorical point of view. > >> Is there a reason why the builder can't just assume (or be convinced to >> assume) those components are already built and resume at the last >> component where the failure occurred? > > Well, most notably a design issue. The /issue/ is that crosstool-NG has > (so far) no way to tell what changed in the configuration, related to > what component(s), and what following copmponent(s) the change does > impact. > > And fixing this will need a *huge* amount of work, which I am not yet rea= dy > to invest. Except if someone comes with a patch that I can review! ;-) > > Regards, > Yann E. MORIN. > > -- > .-----------------.--------------------.------------------.--------------= ------. > | =C2=A0Yann E. MORIN =C2=A0| Real-Time Embedded | /"\ ASCII RIBBON | Eri= cs' conspiracy: | > | +33 662 376 056 | Software =C2=A0Designer | \ / CAMPAIGN =C2=A0 =C2=A0 = | =C2=A0___ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | > | +33 223 225 172 `------------.-------: =C2=A0X =C2=A0AGAINST =C2=A0 =C2= =A0 =C2=A0| =C2=A0\e/ =C2=A0There is no =C2=A0| > | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL =C2=A0 =C2=A0| =C2= =A0 v =C2=A0 conspiracy. =C2=A0| > '------------------------------^-------^------------------^--------------= ------' > > > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq > > -- For unsubscribe information see http://sourceware.org/lists.html#faq