This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: twothreads.c-error
- From: Gary Thomas <gary at chez-thomas dot org>
- To: arun at anwsi dot com
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 18 Jul 2002 07:45:26 -0600
- Subject: Re: [ECOS] twothreads.c-error
- References: <232810-220027418113811955@M2W054.mail2web.com>
On Thu, 2002-07-18 at 05:38, arun%anwsi.com@mail3.srivari.net wrote:
> hello friends
>
> when i was executing the example program hello.c and twothreads.c
> there was some errors
>
> 1) i edited the makefile
>
> 2) gcc -g -I/user/cvs-1.11/packages/install/include/ hello.c \
> < -L/user/cvs-1.11/packages/install/lib -Ttarget.ld -nostdlib
>
> there was an error
> " collct2: ls terminated with signal 11 [segmentation fault ]"
>
> 3)but after executing "gcc -g -I/user/cvs-1.11/packages/install/include/
> hello.c" alone
> i got a.out file
>
This would be a native file - not an eCos program.
> 4) but when executing "gcc -g -I/user/cvs-1.11/packages/install/include/
> pthreads.c \
> < -L/user/cvs-1.11/packages/install/lib -Ttarget.ld -nostdlib
>
> i got the same "segmentation fault "
>
> can i know the reason for this error
This is a problem with the tools, not eCos. The failure is happening
with the linker while it's trying to build the eCos application.
* What tools are you running?
* What's the host?
* Have you followed [to the letter] the install instructions from
our web site?
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss