From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13834 invoked by alias); 7 Oct 2013 18:43:02 -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 13820 invoked by uid 89); 7 Oct 2013 18:43:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f172.google.com Received: from mail-wi0-f172.google.com (HELO mail-wi0-f172.google.com) (209.85.212.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 07 Oct 2013 18:43:00 +0000 Received: by mail-wi0-f172.google.com with SMTP id hn9so5313657wib.11 for ; Mon, 07 Oct 2013 11:42:57 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.76.205 with SMTP id m13mr20800405wiw.10.1381171377771; Mon, 07 Oct 2013 11:42:57 -0700 (PDT) Received: by 10.216.181.5 with HTTP; Mon, 7 Oct 2013 11:42:57 -0700 (PDT) In-Reply-To: References: Date: Mon, 07 Oct 2013 18:43:00 -0000 Message-ID: Subject: Re: build libgcc for i486 with msoft-float failed From: Reid M To: Ian Lance Taylor Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-10/txt/msg00007.txt.bz2 On Mon, Oct 7, 2013 at 8:54 AM, Ian Lance Taylor wrote: > On Sat, Oct 5, 2013 at 11:02 PM, Reid M wrote: >> I was trying to build cross gcc and libgcc based on gcc-4.8 for target >> i486 without floating point support. > Do you really have that hardware platform--80486 without 80487? >>> Yes, the hardware platform is a 486 core without fpu. >> 2. After I comment out the inline assembly to avoid error 1, I could >> get a libgcc for i486 version. There's some undefined soft-float >> function as the following. The source code of corresponding function >> are existed in libgcc but they aren't included in libgcc.a. >> out/target/product/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a(time.o): >> In function `clock_now': >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__floatsidf' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__floatsidf' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__muldf3' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__adddf3' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__fixdfsi' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__floatsidf' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__floatsidf' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__muldf3' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__adddf3' >> /home/reid/android/android-4.2.1_r1/bionic/libc/unistd/time.c:53: >> undefined reference to `__fixdfsi > You should try adding t-softfp to tmake_file in config.host. I don't know if that is all you will need but it will take you one step further. See the targets in config.host that use t-softfp. Note that you don't want i386/t-softfp, or at least not just that--that is just an RTEMS patch and doesn't do most of what is needed. >> I'll try it, thanks a lot. > Ian