This is the mail archive of the ecos-discuss@sourceware.org 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: New User Question


On Tue, 21 Dec 2010, Peter Smith wrote:

> Having discovered eCos I thought I would try to build and run the
> examples on the synthetic linux target.
> 
> I created the build tree using ecosconfig new linux followed by
> ecosconfig tree.
> 
> I then built the tree without errors.
> 
> My problem came when attempting to build the examples as shown below.
> 
> psmith@ubuntu:~/examples$ make INSTALL_DIR=$HOME/linux/install
> gcc -c -o hello.o -I/home/psmith/linux/install/include -Wall
> -Wpointer-arith -Wstrict-prototypes -Wundef -Woverloaded-virtual
> -Wno-write-strings -g -O2 -ffunction-sections -fdata-sections
> -fno-rtti -fno-exceptions hello.c
> cc1: warning: command line option "-Woverloaded-virtual" is valid for
> C++/ObjC++ but not for C
> cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++
> but not for C
> gcc -nostartfiles -L/home/psmith/linux/install/lib -Ttarget.ld -g
> -nostdlib -Wl,--gc-sections -Wl,-static -o hello hello.o
> target.ld:33 cannot move location counter backwards (from
> 000000000200cd10 to 00000000007f32f0)
> collect2: ld returned 1 exit status
> make: *** [hello] Error 1
> 
> I am using Ubuntu 10.10 by the way

Hi Peter,

if your host is x86_64 you can try some from recipes which you can find
on the list

http://sourceware.org/cgi-bin/search.cgi?q=eCos+AND+synthetic+AND+x86_64

Sergei

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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