From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64991 invoked by alias); 31 Jul 2015 19:17:56 -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 64975 invoked by uid 89); 31 Jul 2015 19:17:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: zm.isi.edu Received: from zm.isi.edu (HELO zm.isi.edu) (128.9.152.101) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 Jul 2015 19:17:54 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by zm.isi.edu (Postfix) with ESMTP id DC54E15BF0167 for ; Fri, 31 Jul 2015 12:17:52 -0700 (PDT) Received: from zm.isi.edu ([127.0.0.1]) by localhost (zm.isi.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ORt69KBth3eV for ; Fri, 31 Jul 2015 12:17:48 -0700 (PDT) Received: from zm.isi.edu (localhost.localdomain [127.0.0.1]) by zm.isi.edu (Postfix) with ESMTP id 230C215BF0185 for ; Fri, 31 Jul 2015 12:17:48 -0700 (PDT) Date: Fri, 31 Jul 2015 19:17:00 -0000 From: David Kang To: gcc-help@gcc.gnu.org Message-ID: <1584390641.19967.1438370268066.JavaMail.root@zm.isi.edu> Subject: How to build stand-alone (statically linked) gcc? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00162.txt.bz2 Hi, I am building gcc as a cross compiler. I'm building it on Ubuntu 14.04, but I want to use the gcc binaries on older CentOS machines. So, far gcc complains that it cannot find proper glibc on the older CentOS machines. gcc: /lib64/libc.so.6: version `GLIBC_2.8' not found (required by /tmp/gcc) gcc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/gcc) gcc: /lib64/libc.so.6: version `GLIBC_2.11' not found (required by /tmp/gcc) Is there a way to build gcc itself such that gcc doesn't need dynamic library for maximum portability? I'll appreciate any help. David -- ---------------------- Dr. Dong-In "David" Kang Computer Scientist USC/ISI