This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: build libgcc for i486 with msoft-float failed
- From: Reid M <reid3759 at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 7 Oct 2013 11:42:57 -0700
- Subject: Re: build libgcc for i486 with msoft-float failed
- Authentication-results: sourceware.org; auth=none
- References: <CALe6A_-O=wV=qe=GeJbO+mPTCdg-1eDCTqG9avzWvnzrzp-EMg at mail dot gmail dot com> <CAKOQZ8ySW-mm0w2ab4yUarHd2ybjoF_0f66hD5KOqOvr9OAhfg at mail dot gmail dot com>
On Mon, Oct 7, 2013 at 8:54 AM, Ian Lance Taylor <iant@google.com> wrote:
> On Sat, Oct 5, 2013 at 11:02 PM, Reid M <reid3759@gmail.com> 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