public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] what's wrong the compile error
@ 2000-09-13 18:26 장원호
  2000-09-14  8:26 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: 장원호 @ 2000-09-13 18:26 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2322 bytes --]




Hi
 
 
What's the wrong?  Following the compile error 
message.
 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
powerpc-eabi-gcc -c 
-I//C/PROGRA~1/REDHAT~1/eCos/packages/mypkg/v1_0/src   
-I//C/My_eCos/jwh_test/test6_install/include 
-I//C/PROGRA~1/REDHAT~1/eCos/packages/mypkg/v1_0 
-I//C/PROGRA~1/REDHAT~1/eCos/packages/mypkg/v1_0/src 
-I//C/PROGRA~1/REDHAT~1/eCos/packages/mypkg/v1_0/tests -I. -msoft-float 
-mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef 
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti 
-fno-exceptions -fvtable-gc -finit-priority -o src/twothreads.o 
//C/PROGRA~1/REDHAT~1/eCos/packages/mypkg/v1_0/src/twothreads.c
powerpc-eabi-gcc -msoft-float -mcpu=860 -g 
--nostdlib -Wl,--gc-sections -Wl,-static 
-L//C/My_eCos/jwh_test/test6_install/lib -Ttarget.ld -o 
//C/My_eCos/jwh_test/test6_install/bin/ecos.elf src/hello.o 
src/twothreads.o
//C/My_eCos/jwh_test/test6_install/lib/libtarget.a(hal_powerpc_arch_hal_misc.o): 
In function `hal_null_call':
//C/PROGRA~1/REDHAT~1/eCos/packages/hal/powerpc/arch/v1_3_1/src/hal_misc.c:314: 
multiple definition of `__eabi'
/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/nof/libgcc.a(eabi.o)(.text+0x4): 
first defined here
/tools/H-i686-pc-cygwin/powerpc-eabi/bin/ld: 
Warning: size of symbol `__eabi' changed from 196 to 4 in 
hal_powerpc_arch_hal_misc.o
/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/nof/libgcc.a(eabi.o)(.got2+0x1c): 
undefined reference to `__GOT_START__'
/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/nof/libgcc.a(eabi-ctors.o)(.sdata+0x0): 
undefined reference to `__init'
/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/nof/libgcc.a(eabi-ctors.o): 
In function `__do_global_ctors':
/tmp/build/gcc/gcc/eabi-ctors.c(.sdata+0x4): 
undefined reference to `__fini'
collect2: ld returned 1 exit 
status
make[1]: *** 
[//C/My_eCos/jwh_test/test6_install/bin/ecos.elf] Error 1
make[1]: Leaving directory 
`/cygdrive/c/My_eCos/jwh_test/test6_build/mypkg/v1_0'
make: *** [build] Error 2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] what's wrong the compile error
  2000-09-13 18:26 [ECOS] what's wrong the compile error 장원호
@ 2000-09-14  8:26 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-09-14  8:26 UTC (permalink / raw)
  To: Àå¿øÈ£
  Cc: ecos-discuss

> This is a multi-part message in MIME format.
>  
> ------=_NextPart_000_000A_01C01E34.3C57E5E0
> Content-Type: text/plain;
>         charset="ks_c_5601-1987"
> Content-Transfer-Encoding: base64
>  
> SGkNCg0KDQpXaGF0J3MgdGhlIHdyb25nPyAgRm9sbG93aW5nIHRoZSBjb21waWxlIGVycm9yIG1l
> c3NhZ2UuDQogDQorKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr
> KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr                 

Firstly, please don't post MIME base64 encoded mails. It's antisocial and
will only lead to your posts being ignored.

To answer your question, I believe the answer is that in your command-line:

> powerpc-eabi-gcc -msoft-float -mcpu=860 -g --nostdlib -Wl,--gc-sections -Wl,-static -L//C/My_eCos/jwh_test/test6_install/lib -Ttarget.ld -o
//C/My_eCos/jwh_test/test6_install/bin/ecos.elf src/hello.o
src/twothreads.o

It should be -nostdlib with a single hyphen, not --nostdlib, and (just in
case) try placing it after the -Ttarget.ld.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-09-14  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-13 18:26 [ECOS] what's wrong the compile error 장원호
2000-09-14  8:26 ` Jonathan Larmour

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).