This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: twothreads.c-error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]