From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25267 invoked by alias); 4 Nov 2016 13:17:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 25224 invoked by uid 89); 4 Nov 2016 13:17:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=4.1, lacks, nostartfiles, Hx-languages-length:1527 X-HELO: mail-vk0-f54.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=n73sTbLSpbwdve3QnD4dnp9u3frbvoZReX1/5EwEFAw=; b=THPJUWdefIH8Pv6nsjrOGrsVnGelmN/iTWHuYqeprdjadQDwP1g07OCI6FtcQetJwl XusYKaLjMgyKJJQbq5kYpN6IIAH8/EWYSoh3XK5dOBL3wmTKPf8qiPaCcFHpHdcGtcGV I05gJDESNIEUxJosFVIQuxAiESVFRO2OFBTUPT302EeG9h9dp9kbCAotdqYoCMIBKt8+ j1qoRmKZGTAjiwOYvokUBFwDPtKl1QqdHyG2pm4g8eE4g/qzppuLOz6FCbpU+EScdQwu FOWmKDAEt2/j5QSniFveZuGsRy9cTYvxfcVu32m86egYBQNqq8/jq1Eca75xi39hq7Nk ty6A== X-Gm-Message-State: ABUngvdpqX4U993nhJG7MLK1cX/ejapoh36qWgwPsGlrApTonZqWo0D1eMj7+yZ1zxq1Is69 X-Received: by 10.31.153.195 with SMTP id b186mr11441840vke.140.1478265418002; Fri, 04 Nov 2016 06:16:58 -0700 (PDT) Subject: Re: Bootstrapping cross-toolchain for ia64 To: Joseph Myers References: <64a4cff9-b1d3-4645-7baf-29ec50ebbb94@linaro.org> Cc: libc-alpha@sourceware.org From: Adhemerval Zanella Message-ID: <5d06fa42-5467-98b3-d0b6-aadaff842c9f@linaro.org> Date: Fri, 04 Nov 2016 13:17:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-SW-Source: 2016-11/txt/msg00156.txt.bz2 On 04/11/2016 11:06, Joseph Myers wrote: > On Fri, 4 Nov 2016, Adhemerval Zanella wrote: > >> I faced the same issue and the solution I found was to configure gcc with >> '--disable-shared'. It is not an optimal approach for a complete toolchain, >> but it is at least suffice to correctly build glibc. > > The first GCC (whose build fails) *is* configured with --disable-shared > (and --without-headers --with-newlib to get inhibit_libc defined). It > still tries to build unwind code that includes libc headers > unconditionally. Yeah I noted, but I think I am doing something different than your intention. Since the aim of the toolchain I intend to use is just to *build* ia64 glibc (since I have no way to actually testing it) I basically did 1. gcc: 1.1. make all-gcc 1.2. make install-gcc 2. glibc 2.1. make install-bootstrap-headers=yes install-headers 2.2. make csu/subdir_lib 2.3. install csu/crt1.o csu/crti.o csu/crtn.o $INSTALL_PATH/$TARGET/lib 2.4. $TARGET-gcc $CFLAGS_GLIBC $CFLAGS_GLIBC -nostdlib -nostartfiles \ -shared -x c /dev/null -o $INSTALL_PATH/$TARGET/lib/libc.so 2.5. touch $INSTALL_PATH/$TARGET/include/gnu/stubs.h 3. gcc: 3.1. make all-target-libgcc 3.2. install-target-libgcc 4. glibc: 4.1. make 4.2. make install 5. gcc: 5.1. make all 5.2. make install Yes, I know this is *far* from ideal (resulting toolchain is mostly unusable for actually testing since it lacks shared libgcc), but at least it can verify glibc build for ia64-linux-gnu targets.