From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 49218386EC28 for ; Mon, 28 Sep 2020 16:46:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 49218386EC28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=foss.arm.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=Richard.Earnshaw@foss.arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E179831B; Mon, 28 Sep 2020 09:46:19 -0700 (PDT) Received: from [192.168.1.19] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 69DBC3F6CF; Mon, 28 Sep 2020 09:46:19 -0700 (PDT) Subject: Re: GCC cross-compiler errors To: William Gregorio , gcc-help@gcc.gnu.org References: From: Richard Earnshaw Message-ID: Date: Mon, 28 Sep 2020 17:46:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3493.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2020 16:46:21 -0000 On 25/09/2020 14:12, William Gregorio via Gcc-help wrote: > Hi, > > I'm trying to build a gcc cross-compiler from source, and whenever I invoke > make it results in an error. I'd appreciate any help! Feel free to request > any more details needed. > > Ubuntu 18.04.3 LTS > gcc-7.5.0 > autoconf-2.69 > > > ./configure options > --target=arm-none-eabi > --prefix=/usr/bin/crossbuild > --without-headers > --enable-multilib > --with-multilib=armv7e-m > --with-gnu-as > --with-gnu-ld > --with-dwarf2 > --with-newlib > --with-system-zlib > --without-libffi > --disable-decimal-float > --disable-nls > --enable-languages="c,c++" > --enable-interwork > --disable-libstdcxx-pch > --with-newlib > > > make all > configure: WARNING: No native atomic operations are provided for this platform. > configure: WARNING: They cannot be faked when thread support is disabled. > configure: WARNING: Thread-safety of certain classes is not guaranteed. > . > . > . > configure: WARNING: stdbool.h: present but cannot be compiled > configure: WARNING: stdbool.h: check for missing prerequisite headers? > configure: WARNING: stdbool.h: see the Autoconf documentation > configure: WARNING: stdbool.h: section "Present But Cannot Be Compiled" > configure: WARNING: stdbool.h: proceeding with the compiler's result > checking for stdbool.h... no > checking stdalign.h usability... no > checking stdalign.h presence... yes > configure: WARNING: stdalign.h: present but cannot be compiled > configure: WARNING: stdalign.h: check for missing prerequisite headers? > configure: WARNING: stdalign.h: see the Autoconf documentation > configure: WARNING: stdalign.h: section "Present But Cannot Be Compiled" > configure: WARNING: stdalign.h: proceeding with the compiler's result > checking for stdalign.h... no > checking for the value of EOF... configure: error: computing EOF failed > Makefile:10307: recipe for target 'configure-target-libstdc++-v3' failed > make[1]: *** [configure-target-libstdc++-v3] Error 1 > make[1]: Leaving directory '/home/metaw1ll/crossbuild/tivac/gcc' > Makefile:889: recipe for target 'all' failed > make: *** [all] Error 2 > Use a separate build area from your sources. Building inside the source tree is not supported. R.