public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Cristiano Ligieri Pereira <cpereira@ics.uci.edu>
To: sid@sources.redhat.com
Subject: Re: Running the hello.c example
Date: Wed, 17 Oct 2001 11:07:00 -0000	[thread overview]
Message-ID: <Pine.SOL.4.20.0111181415450.10222-100000@washoe.ics.uci.edu> (raw)
In-Reply-To: <Pine.SOL.4.20.0111181056060.10134-100000@washoe.ics.uci.edu>


Hi again,

Ok. I kind of worked out my problem but I'm still not successfully. I
compiled newlib version 1.8.0 and installed it so that now I have crt0.o
(for arm-elf target) on my /tools/arm-elf/lib directory. Now I can compile
my application and generate an executable with the following command line:

arm-elf-gcc -L/tools/arm-elf/lib -I/tools/arm-elf/include hello.c -o hello.x

Actually this was still complaining about the crt0.o file not found. I
worked it around copying the file from /tools/arm-elf/lib to my current
directory.

When I start arm-elf-sid, though, I get the following error:

% arm-elf-sid hello.x
Fault (software, 0x69) pc=0x8764

If I try to run it through gdb I get nothing on my console:

% arm-elf-sid --gdb=2000 -EL &
[1] 3554
% arm-elf-gdb hello.x
GNU gdb 5.0.92
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(gdb) target remote localhost:2000
Remote debugging using localhost:2000
(gdb) load
(gdb) cont
Continuing.
(gdb)

Shouldn't I see "Hello world!" printed on my console?

Cristiano.

PS: I'm doing all this on my RedHat Linux 7.1.

------------------------------------------------------------
Cristiano Ligieri Pereira - http://www.ics.uci.edu/~cpereira

On Sun, 18 Nov 2001, Cristiano Ligieri Pereira wrote:

> 
> Hi all,
> 
> First of all I've got really impressed when I saw this tools avaiable on
> RedHat website. Such thing to explore different design choices for
> embedded systems is very much valuable for both industry and academic
> (where I am in) environments.
> 
> Second of all, I've downloaded the source code using cvs and compiled it
> successfully. As a starting point I'm trying to execute the simple hello.c
> example described in the FAQ webpage and I'm facing some problems as
> follows.
> 
> If I try to execute exacly as described in the website I get the following
> errors:
> 
> % arm-elf-gcc -EL hello.c -o hello.x
> 
> arm-elf-gcc: unrecognized option `-EL'
> /tools/H-i686-pc-linux-gnu/arm-elf/bin/ld: cannot open crt0.o: No such
> file or directory
> collect2: ld returned 1 exit status
> 
> If I remove the 'L' option and add -I/usr/include and execute the command
> as follows:
> 
> % arm-elf-gcc -I/usr/include -E hello.c -o hello.x
> 
> it works fine and generate the hello.x file, which is post-preprocessing
> version of the file hello.c (which I thought it was weird since as far as
> I understood I need the executatble version, isn't it?).
> 
> Anyways, It turns out to does not work. When trying arm-elf-sid I get the
> following:
> 
> % arm-elf-sid hello.x
> loader: error loading hello.x
> 
> What am I missing?
> 
> My main goal is to be able to execute RedHat eCos. Any pointers in this
> direction?
> 
> Thanks a lot,
> Cristiano.
> 
> ------------------------------------------------------------
> Cristiano Ligieri Pereira - http://www.ics.uci.edu/~cpereira
> 
> 


  reply	other threads:[~2001-11-18 22:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16 15:18 Cristiano Ligieri Pereira
2001-10-17 11:07 ` Cristiano Ligieri Pereira [this message]
2001-11-10  7:38   ` Ben Elliston
2001-11-10 11:10     ` Cristiano Ligieri Pereira
2001-11-10 16:07       ` Ben Elliston
2001-11-12 19:29         ` Cristiano Ligieri Pereira
2001-11-18 17:22           ` Cristiano Ligieri Pereira
2001-11-12 20:03         ` Cristiano Ligieri Pereira
2001-11-13 11:30           ` J. Johnston
2001-11-13 13:12             ` Cristiano Ligieri Pereira
2001-11-19 13:17               ` Cristiano Ligieri Pereira
2001-11-19 10:58             ` J. Johnston
2001-11-18 19:11           ` Cristiano Ligieri Pereira
2001-10-31 15:31 ` Ben Elliston

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=Pine.SOL.4.20.0111181415450.10222-100000@washoe.ics.uci.edu \
    --to=cpereira@ics.uci.edu \
    --cc=sid@sources.redhat.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).