From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29873 invoked by alias); 4 Sep 2014 22:33:49 -0000 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 Received: (qmail 29862 invoked by uid 89); 4 Sep 2014 22:33:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f177.google.com Received: from mail-we0-f177.google.com (HELO mail-we0-f177.google.com) (74.125.82.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 04 Sep 2014 22:33:46 +0000 Received: by mail-we0-f177.google.com with SMTP id u56so10907939wes.22 for ; Thu, 04 Sep 2014 15:33:43 -0700 (PDT) X-Received: by 10.194.122.169 with SMTP id lt9mr9885739wjb.29.1409870023027; Thu, 04 Sep 2014 15:33:43 -0700 (PDT) Received: from ymorin.is-a-geek.org (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id xt6sm365965wjc.14.2014.09.04.15.33.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 04 Sep 2014 15:33:42 -0700 (PDT) Received: by ymorin.is-a-geek.org (sSMTP sendmail emulation); Fri, 05 Sep 2014 00:33:39 +0200 Date: Thu, 04 Sep 2014 22:33:00 -0000 From: "Yann E. MORIN" To: Bryan Hundven Cc: crossgcc@sourceware.org Subject: Re: [PATCH 1/5] libc/musl: Remove gcc core pass-1 from musl-libc build Message-ID: <20140904223339.GC3945@free.fr> References: <1409864217-17035-1-git-send-email-bryanhundven@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1409864217-17035-1-git-send-email-bryanhundven@gmail.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00006.txt.bz2 Bryan, All, On 2014-09-04 13:56 -0700, Bryan Hundven spake thusly: > In an effort to make the toolchain build simpler, remove the need for > the pass-1 build of gcc. > > Also, let musl's configure script decide if we need the gcc wrapper or > not. Well, sh4rm4 said on IRC that we definitely do not need the wrapper: 00:11 < sh4rm4> musl-gcc is a wrapper to use musl on a glibc sys 00:11 <@y_morin> sh4rm4: So if we build our gcc with --target=blabla-musl we do not need the wrapper, do we? 00:11 < sh4rm4> works by fixing up gcc's paths using a specs file 00:11 < sh4rm4> no So, I think we still want to explicitly disable it. > Signed-off-by: Bryan Hundven > --- > config/libc/musl.in | 2 +- > scripts/build/libc/musl.sh | 25 +++---------------------- > 2 files changed, 4 insertions(+), 23 deletions(-) > > diff --git a/config/libc/musl.in b/config/libc/musl.in > index b3bec26..8f393b2 100644 > --- a/config/libc/musl.in > +++ b/config/libc/musl.in > @@ -3,7 +3,7 @@ > ## depends on ! WINDOWS && ! BARE_METAL > ## > ## select LIBC_SUPPORT_THREADS_NATIVE > -## select CC_CORE_PASSES_NEEDED > +## select CC_CORE_PASS_2_NEEDED > ## > ## help Musl is a new standard library to power a new generation of Linux-based > ## help devices. musl is lightweight, fast, simple, free, and strives to be > diff --git a/scripts/build/libc/musl.sh b/scripts/build/libc/musl.sh > index 7172cf2..6dbf657 100644 > --- a/scripts/build/libc/musl.sh > +++ b/scripts/build/libc/musl.sh > @@ -48,7 +48,7 @@ do_libc_configure() { > # NOTE: musl handles the build/host/target a little bit differently > # then one would expect: > # build : not used > - # host : the machine building musl > + # host : the machine musl runs on > # target : the machine musl runs on > CT_DoExecLog CFG \ > CFLAGS="${extra_cflags[@]}" \ > @@ -56,30 +56,11 @@ do_libc_configure() { > ./configure \ > --host="${CT_TARGET}" \ > --target="${CT_TARGET}" \ > - --prefix="/usr" \ > - --disable-gcc-wrapper > + --prefix="/usr" > } > > do_libc_start_files() { > - CT_DoStep INFO "Installing C library headers" > - > - # Simply copy files until musl has the ability to build out-of-tree > - CT_DoLog EXTRA "Copying sources to build directory" > - CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/musl-${CT_LIBC_VERSION}" \ > - "${CT_BUILD_DIR}/build-libc-headers" > - cd "${CT_BUILD_DIR}/build-libc-headers" > - > - do_libc_configure > - > - CT_DoLog EXTRA "Installing headers" > - CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install-headers > - > - CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" \ > - crt/crt1.o crt/crti.o crt/crtn.o > - CT_DoExecLog ALL cp -av crt/crt*.o "${CT_SYSROOT_DIR}/usr/lib" > - CT_DoExecLog ALL ${CT_TARGET}-gcc -nostdlib \ > - -nostartfiles -shared -x c /dev/null -o "${CT_SYSROOT_DIR}/usr/lib/libc.so" > - CT_EndStep > + : As seen on IRC: no headers installed, you picked your host headers. ;-) Regards, Yann E. MORIN. > } > > do_libc() { > -- > 2.1.0 > -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq