From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29577 invoked by alias); 11 Feb 2014 00:40:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 29567 invoked by uid 89); 11 Feb 2014 00:40:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: wmh1.mail.saunalahti.fi Received: from wmh1.mail.saunalahti.fi (HELO wmh1.mail.saunalahti.fi) (62.142.5.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 11 Feb 2014 00:40:46 +0000 Received: from [192.168.0.44] (dsl-kmibrasgw1-54f8cb-243.dhcp.inet.fi [84.248.203.243]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kai.ruottu@wippies.com) by wmh1.mail.saunalahti.fi (Postfix) with ESMTPSA id 4F6BE6B005 for ; Tue, 11 Feb 2014 02:40:42 +0200 (EET) Message-ID: <52F971A3.7090004@wippies.com> Date: Tue, 11 Feb 2014 00:40:00 -0000 From: Kai Ruottu User-Agent: Mozilla/5.0 (Windows NT 5.0; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: Building GCC Failed: stubs-32.h missing References: <1392066249429-1010178.post@n5.nabble.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00057.txt.bz2 10.2.2014 23:38, Marc Glisse kirjoitti: > On Mon, 10 Feb 2014, ronf wrote: > >> I want to build gcc from source on my CentOS 6 x86-64 Linux system, >> but I am >> having a serious problem with the "configure" scripts and make files. >> The >> build process insists on accessing "stubs-32.h" even though my Linux >> system >> lacks this header file. My system has stubs.h and stubs-64.h header >> files in >> the /usr/include/gnu directory. The content of stubs.h is shown here: > > Surely Google is your friend? Gcc-4.9 will print this message: > > I suspect your system does not have 32-bit developement libraries > (libc and headers). If you have them, rerun configure with > --enable-multilib. If you do not have them, and want to build a > 64-bit-only compiler, rerun configure with --disable-multilib. > > But CentOS 6 surely has those development libraries! Probably they aren't installed as default but then many other packages aren't either. Usually when one needs something, in this case the capability to produce apps for the 32-bit Linux/x86, then one installs it! I would assume searching for 'glibc-devel' in the package manager would show what is missing. Another way is to spy via the package names. In this case finding for instance : ftp://ftp.funet.fi/pub/linux/mirrors/centos/6.5/os/x86_64/Packages/glibc-devel-2.12-1.132.el6.i686.rpm wasn't any rocket science at all... If one hasn't any need to produce also 32-bit apps then making a "stripped" toolchain which doesn't have any 32-bit support, via the --disable-multilib', is the way to go. Then the 32-bit libgcc, libstdc++ etc will not be produced during the GCC build.