public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] build "Hello world"
@ 2001-08-02  3:34 Y.P.Liu.
  2001-08-02  5:31 ` Jesper Skov
  2001-08-06 19:32 ` [ECOS] writting ethernet driver for ecos Yong
  0 siblings, 2 replies; 5+ messages in thread
From: Y.P.Liu. @ 2001-08-02  3:34 UTC (permalink / raw)
  To: ecos-discuss

Please help me ... I can's build the "Hello world" program .
the list is my environment .
-------
i386 & windows 2000
directory :
eCos : C:\Program Files\Red Hat\eCos
cygwin : c:\cygwin

The library I build which I use eCos Configuration Tool were build in
C:\cygwin\ework\ework.ecc

I edit C:\Program Files\Red Hat\eCos\examples\Makefile
....
.... PKG_INSTALL_DIR = //c/cygwin/ework_install
....
.....XCC = i386-elf-gcc
....

in C:\Program Files\Red Hat\eCos\examples\
I type "gcc -g -I/ework/ework_install/include hello.c
-L/ework/ework_install/lib -Ttarget.ld -nostdlib "

--------------------------------------------------------------------------------
bash.exe-2.05$ gcc -g -I/ework/ework_install/include hello.c -L/ework/ework_ins
tall/lib -Ttarget.ld -nostdlib
/c/Temp/cc4Trl66.o: In function `main':
/C/Program Files/Red Hat/eCos/examples/hello.c:5: undefined reference to `__main
'
/ework/ework_install/lib/libtarget.a(language_c_libc_vfnprintf.o): In function `
cvt(double, int, int, char *, int, char *, char *)':
//C/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/v1_3_1/src/stdio/output/vfnp
rintf.cxx:933: undefined reference to `_umoddi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/v1_3_1/src/stdio/output/vfnp
rintf.cxx:933: undefined reference to `_udivdi3'
/ework/ework_install/lib/libtarget.a(kernel_clock.o): In function `GLOBAL_.D.140
00._9Cyg_Clock.real_time_clock':
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811: unde
fined reference to `_udivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811: unde
fined reference to `_udivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811: unde
fined reference to `_udivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811: unde
fined reference to `_udivdi3'
/ework/ework_install/lib/libtarget.a(kernel_clock.o)://C/PROGRA~1/REDHAT~1/eCos/
packages/kernel/v1_3_1/src/common/clock.cxx:811: more undefined references to `_
udivdi3' follow
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/../../../../i686-pc-cygwin/bin/ld: bfd
assertion fail /cygnus/netrel/src/binutils-20010425-2/bfd/stabs.c:600
collect2: ld returned 1 exit status
bash.exe-2.05$
---------------------------------------------------------------------------------
Please tell me , what's wronging ? 
-- 
Y.P.Liu. <u6321019@ncnu.edu.tw>

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

* Re: [ECOS] build "Hello world"
  2001-08-02  3:34 [ECOS] build "Hello world" Y.P.Liu.
@ 2001-08-02  5:31 ` Jesper Skov
  2001-08-02 10:29   ` Jonathan Larmour
       [not found]   ` <001401c11be8$3fbf7880$fca210ac@utszrtsurveyl>
  2001-08-06 19:32 ` [ECOS] writting ethernet driver for ecos Yong
  1 sibling, 2 replies; 5+ messages in thread
From: Jesper Skov @ 2001-08-02  5:31 UTC (permalink / raw)
  To: Y.P.Liu.; +Cc: ecos-discuss

>>>>> "Y" == Y P Liu <86321019@stu.csie.ncnu.edu.tw> writes:

Y> Please help me ... I can's build the "Hello world" program .  the
Y> list is my environment 

Get the latest eCos from CVS. Version 1.3.1 is obsolete.

Jesper

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

* Re: [ECOS] build "Hello world"
  2001-08-02  5:31 ` Jesper Skov
@ 2001-08-02 10:29   ` Jonathan Larmour
       [not found]   ` <001401c11be8$3fbf7880$fca210ac@utszrtsurveyl>
  1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Larmour @ 2001-08-02 10:29 UTC (permalink / raw)
  To: Jesper Skov; +Cc: Y.P.Liu., ecos-discuss

Jesper Skov wrote:
> 
> >>>>> "Y" == Y P Liu <86321019@stu.csie.ncnu.edu.tw> writes:
> 
> Y> Please help me ... I can's build the "Hello world" program .  the
> Y> list is my environment
> 
> Get the latest eCos from CVS. Version 1.3.1 is obsolete.

That's not the problem here. This is a tools issue:

> .....XCC = i386-elf-gcc
> ....
> 
> in C:\Program Files\Red Hat\eCos\examples\
> I type "gcc -g -I/ework/ework_install/include hello.c
> -L/ework/ework_install/lib -Ttarget.ld -nostdlib "


No, you should type i386-elf-gcc -g -I/ework/ework_install/include hello.c
 -L/ework/ework_install/lib -Ttarget.ld -nostdlib

Using "gcc" is wrong because that is your native gcc, in your case for
cygwin.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

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

* Re: [ECOS]Build Redboot for i386 target.
       [not found]   ` <001401c11be8$3fbf7880$fca210ac@utszrtsurveyl>
@ 2001-08-03  0:05     ` Jesper Skov
  0 siblings, 0 replies; 5+ messages in thread
From: Jesper Skov @ 2001-08-03  0:05 UTC (permalink / raw)
  To: survey liu; +Cc: Jesper Skov, ecos-discuss

>>>>> "survey" == survey liu <liuxw@263.net> writes:

survey> Hi, Thank you for the help. I am now working on rebuilding the
survey> RedBoot of i386.

survey> 1. I selected the templete of Redboot/i386 and built lib, It
survey> does produce a redboot.bin(32.6KB size).  2. I 'dd' this image
survey> to a floppy, restart my target. the floppy can't boot my
survey> target to 'Redboot>'. It print nothing but halt with a blcak
survey> screen.

You also need to import the redboot_FLOPPY.ecm configuration.
I don't know if you need to do anything else - follow the instructions
in the RedBoot documentation.

Jesper

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

* [ECOS] writting ethernet driver for ecos
  2001-08-02  3:34 [ECOS] build "Hello world" Y.P.Liu.
  2001-08-02  5:31 ` Jesper Skov
@ 2001-08-06 19:32 ` Yong
  1 sibling, 0 replies; 5+ messages in thread
From: Yong @ 2001-08-06 19:32 UTC (permalink / raw)
  To: ecos-discuss

I am planning to write driver for 3com 3cxe589et pc card ethernet driver ,
i don't know if it is already available or some similar models I can refer to
or is linux version available ? can anyone give me some related infomation on
it ?

thanks a lot .
  
______________________________________________________
Get your free email address at http://mail.fm365.com

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

end of thread, other threads:[~2001-08-06 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-02  3:34 [ECOS] build "Hello world" Y.P.Liu.
2001-08-02  5:31 ` Jesper Skov
2001-08-02 10:29   ` Jonathan Larmour
     [not found]   ` <001401c11be8$3fbf7880$fca210ac@utszrtsurveyl>
2001-08-03  0:05     ` [ECOS]Build Redboot for i386 target Jesper Skov
2001-08-06 19:32 ` [ECOS] writting ethernet driver for ecos Yong

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