- To: <gcc-help@xxxxxxxxxxx>
- Subject: help needed for builing gcc tool-chain
- From: "Prashant Batra (prbatra)" <prbatra@xxxxxxxxx>
- Date: Sat, 11 Feb 2012 22:33:03 +0530
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1329584620; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-class:Subject:Date:Message-ID:From:To:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=mLP0wszxKIy0NOjDDreb908AgME=; b=LTJHN0qmOxYKnzQ1jP/zg3mXzNa128eyiN8sYlE8y3Ezoutj1VmUY5BUmdo/YV sbbXh3Oqv5R96HtgQ9DzLqhvhUzEqdIkRquMtfWEr7IXDvC7BYTaSI37+jux2CdN LDSDj5LpJgDB1XPQgfRf5oF4PaYPnvZ2CJ7TK/l9T3e+U=
Hi All,
I am trying to build a 32 bit gcc/g++ tool-chain on a x86_64 bit Intel machine with, Red Hat Linux Enterprise -5 (2.6.18 kernel).
Gcc version of my machine is -
gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
I tried with the procedure mentioned on gnu wiki, also mentioned in LFS. But none of the attempts was successful.
I have some basic questions here :
Changing the prefix to some custom location other than /usr/src should make all the tools installed in the custom location?
I want to run the tool chain on this machine only, so my host and build systems are same, and I can omit them while configuring all my tools (binutils, gcc, glibc).
Is this correct?
The target of all these tools while configuring should be i486-gnu-linux or I can omit this so that the gcc/g++ gets compiled for x86_64 and when I need a 32 bit executable,
I can use -m32 switch while compiling? Will 32 bit static and shared libraries be available in this case?
I want static libraries for both gcc and stdc++, is there any special flag that I should give/or not give to build these static libraries?
Can someone please point me in right directions, as I am doing this for the first time? Any links to the steps will be really helpful.
Regards,
Prashant
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]