public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Сергей Миронов" <ierton@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] sparcv8 gcc
Date: Tue, 23 Jun 2009 16:40:35 +0400	[thread overview]
Message-ID: <aa09d86e0906230540u64c3bdb7i4168dc545376d0c2@mail.gmail.com> (raw)
In-Reply-To: <aa09d86e0906200251l7f41f99bu6752fc5a07cd4aa5@mail.gmail.com>

>> http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/SPARC-Options.html#SPARC-Options
>> You'll need to use -mno-fpu on the CFLAGS. And again, the -softfloat-
>> thing on the CHOST is gentoo-specific and only applies to ARM.
>>
>>
>
> Thanks! i'll try it as soon as i can.

Hi.
man gcc says about -mno-fpu in SPARC section that  "... you need to
compile libgcc.a, the library that comes with GCC, with -msoft-float
in order for this to work". So i try that:

$ export CFLAGS="-msoft-float"
$ crossdev sparc-module2-linux-gnu

Unfortunately, binutils fails to build with link-time errors:

../bfd/.libs/libbfd.so: undefined reference to `__floatsidf'
../bfd/.libs/libbfd.so: undefined reference to `__adddf3'
../bfd/.libs/libbfd.so: undefined reference to `__divdf3'

I found, that these functions are gcc floating point implementation.
But binutils should be built before gcc... So i think, that i am
trying to do something wrong again. Could you help?

Note, that without export CFLAGS="-msoft-float", crossdev successfully
builds development tree, but i can't use -mno-fpu in it's CFLAGS (same
errors).

Thanks!
Sergey



  reply	other threads:[~2009-06-23 12:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19  6:13 [gentoo-embedded] sparcv8 gcc Сергей Миронов
2009-06-20  9:20 ` Raúl Porcel
2009-06-20  9:24   ` Сергей Миронов
2009-06-20  9:31     ` Raúl Porcel
2009-06-20  9:51       ` Сергей Миронов
2009-06-23 12:40         ` Сергей Миронов [this message]
2009-06-23 14:06           ` wireless
2009-06-24 12:30             ` Сергей Миронов
2009-06-24 16:13               ` Peter Stuge
2009-07-01  8:40                 ` Сергей Миронов
2009-07-19 18:18                   ` Mike Frysinger
2009-07-20 19:33                     ` Peter Stuge
2009-07-20 21:32                       ` Сергей Миронов
2009-07-20 22:00                         ` Peter Stuge
2009-07-25  5:53                           ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa09d86e0906230540u64c3bdb7i4168dc545376d0c2@mail.gmail.com \
    --to=ierton@gmail.com \
    --cc=gentoo-embedded@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox