linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Grant Carter <gcarter@eng.uct.ac.za>
To: linuxppc-dev@lists.linuxppc.org
Subject: Some Cross Compiling Questions
Date: Wed, 14 Jul 1999 17:41:33 +0200	[thread overview]
Message-ID: <378CAFAD.32A1660D@eng.uct.ac.za> (raw)


Hi all

I am very new at using the GNU tools and cross compilers etc and am
wanting to compile Linux for the RPXLite Board running a PowerPC 823. I
have gone throught the CrossGCC FAQ as well as a document on Cross
Development for Linux/PPC but I still have a few questions/problems
which I hope someone can help me with please.

I am running an i386-FreeBSD system and, as I said before, am wanting to
build a PowerPC-linux system. I have built binutils-2.9.1.0.25 and
egcs-1.1.2 successfully and have used that to build the LinuxPPC kernel
(2.2.5). Everything compiled fine but I want to know 2 things: I have
read about libgcc.o and was wondering if I had to provide my own one or
if gcc knew enough about the 823 to build its own. Secondly, how do I
get floating point emulation running as the 823 doesn't provide hardware
floating point. I saw a --nfp in the configuration options - should I
enable this?

Next I tried to compile both glibc which failed. The error message was
as follows:

../sysdeps/powerpc/s_isnan.c: In function `__isnan':
../sysdeps/powerpc/s_isnan.c:32: fixed or forbidden register 32 (0) was
spilled for class FLOAT_REGS. This may be due to a compiler bug or to
impossible asm statements or clauses.

Is this related to my needing the correct libgcc.o file so that the
assembler knows how to implement these functions or what?

I also tried newlib 1.8.1 and newlib 1.7.1. They were complaining about
crt1.0 and crt1.s respectively. I believe that I need one of these files
built for my target platform. Can someone provide me with one or do I
have to write my own? If so, can someone please point me in the
direction of some documentation about the contents of these files? 

Thanks in advance
Grant

-- 
Grant Carter                              gcarter@eng.uct.ac.za
Department of Electrical Engineering      University of Cape Town
Tel: +27 (0)21 650-3467                   Fax: +27 (0)21 650-3465
                     "Coffee not found - operator halted!"

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

             reply	other threads:[~1999-07-14 15:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-14 15:41 Grant Carter [this message]
1999-07-14 18:04 ` Some Cross Compiling Questions Daniel Jacobowitz
1999-07-15 10:12 ` Marcus Sundberg

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=378CAFAD.32A1660D@eng.uct.ac.za \
    --to=gcarter@eng.uct.ac.za \
    --cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).