This is the mail archive of the ecos-discuss@sourceware.cygnus.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]

build ecos for linux


Hello,

I am new to ecos development. I am configuring ecos on linux
to see how it works.  I configure it for the synthetic linux target as
follows:

tclsh ../pkgconf.tcl --target=i386 --platform=linux --startup=ram

I did a 'make' wich completed without error. When I do the 'make tests'
I get the following error:

i686-pc-linux-gnu-gcc  -c  -I/home/charlton/projects/eCos/ecos-1.2.1/packages/ecos-work/install/include -I. -I/home/charlton/projects/eCos/ecos-1.2.1/packages/ecos-work/../hal/common/v1_2_1/tests -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -ffunction-sections -fdata-sections -g -O2   -Wp,-MD,hal_intr.tmp -o hal_intr.o /home/charlton/projects/eCos/ecos-1.2.1/packages/ecos-work/../hal/common/v1_2_1/tests/intr.c 
i686-pc-linux-gnu-gcc -o /home/charlton/projects/eCos/ecos-1.2.1/packages/ecos-work/install/tests/hal/intr hal_intr.o  -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -ffunction-sections -fdata-sections -nostartfiles -nostdlib -Wl --gc-sections -g -O2 -L/home/charlton/projects/eCos/ecos-1.2.1/packages/ecos-work/install/lib -Ttarget.ld -nostdlib
/usr/local/i586-pc-linux-gnu/bin/ld: unrecognized option `--gc-sections'
collect2: ld returned 1 exit status
make[1]: *** [intr.stamp] Error 1

I am using redhat 6.0 with gcc and ld versions:
$ i686-pc-linux-gnu-gcc -v
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.1/specs
gcc version 2.95.1 19990816 (release)
$ i686-pc-linux-gnu-ld -v
GNU ld version 2.9.1 (with BFD 2.9.1)
$ 

Any help is appreciated.

--John



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