* [ECOS] Build problem
@ 2001-08-02 3:22 Y.P.Liu.
2001-08-03 13:54 ` [ECOS] Build problem "Hellow world " in i386& win2000 Y.P.Liu.
0 siblings, 1 reply; 3+ messages in thread
From: Y.P.Liu. @ 2001-08-02 3:22 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
install 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 the file : "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 "
but I can't finish it.
This is the error message .
--------------------------------------------------------------------------------
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
ain':
/C/Program Files/Red Hat/eCos/examples/hello.c:5: undefined reference to
\x1f_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 \x1fumoddi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/v1_3_1/src/stdio/output/vfnp
rintf.cxx:933: undefined reference to \x1fudivdi3'
/ework/ework_install/lib/libtarget.a(kernel_clock.o): In function
\aLOBAL_.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 \x1fudivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811:
unde
fined reference to \x1fudivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811:
unde
fined reference to \x1fudivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811:
unde
fined reference to \x1fudivdi3'
/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 \x1f
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] 3+ messages in thread
* Re: [ECOS] Build problem "Hellow world " in i386& win2000
2001-08-02 3:22 [ECOS] Build problem Y.P.Liu.
@ 2001-08-03 13:54 ` Y.P.Liu.
2001-08-03 14:00 ` Jonathan Larmour
0 siblings, 1 reply; 3+ messages in thread
From: Y.P.Liu. @ 2001-08-03 13:54 UTC (permalink / raw)
To: ecos-discuss
Thanks with your help.
I use the step which you tell me
-----------------
type i386-elf-gcc -g -I/ework/ework_install/include hello.c
-L/ework/ework_install/lib -Ttarget.ld -nostdlib
-----------------
but I still can't work it correctly.
ps. this is my error message
----------------------------------
bash.exe-2.05$ i386-elf-gcc -g -I/ework/ework_install/include hello.c -L/ework/
ework_install/lib -Ttarget.ld -nostdlib
In file included from /ework/ework_install/include/stdio.h:56,
from hello.c:2:
/ework/ework_install/include/cyg/infra/cyg_type.h:160: parse error before `__tmp
1'
/ework/ework_install/include/cyg/infra/cyg_type.h:160: `_name_' undeclared here
(not in a function)
/ework/ework_install/include/cyg/infra/cyg_type.h:160: warning: data definition
has no type or storage class
/ework/ework_install/include/cyg/infra/cyg_type.h:161: parse error before `__tmp
2'
/ework/ework_install/include/cyg/infra/cyg_type.h:161: initializer element is no
t constant
/ework/ework_install/include/cyg/infra/cyg_type.h:161: warning: data definition
has no type or storage class
/ework/ework_install/include/cyg/infra/cyg_type.h:162: redefinition of `__tmp1'
/ework/ework_install/include/cyg/infra/cyg_type.h:160: `__tmp1' previously defin
ed here
/ework/ework_install/include/cyg/infra/cyg_type.h:162: initializer element is no
t constant
/ework/ework_install/include/cyg/infra/cyg_type.h:162: warning: data definition
has no type or storage class
/ework/ework_install/include/cyg/infra/cyg_type.h:163: parse error before `}'
/ework/ework_install/include/cyg/infra/cyg_type.h:223: parse error before `CYG_B
YTE'
/ework/ework_install/include/cyg/infra/cyg_type.h:223: warning: data definition
has no type or storage class
/ework/ework_install/include/cyg/infra/cyg_type.h:282: parse error before `#'
/ework/ework_install/include/cyg/infra/cyg_type.h:317: stray '\' in program
/ework/ework_install/include/cyg/infra/cyg_type.h:341: warning: This file contai
ns more `}'s than `{'s.
In file included from /ework/ework_install/include/stdio.h:58,
from hello.c:2:
/tools/H-i686-pc-cygwin/lib/gcc-lib/i386-elf/2.95.2/include/stdarg.h:99: warning
: parameter names (without types) in function declaration
/tools/H-i686-pc-cygwin/lib/gcc-lib/i386-elf/2.95.2/include/stdarg.h:188: parse
error before `va_list'
/tools/H-i686-pc-cygwin/lib/gcc-lib/i386-elf/2.95.2/include/stdarg.h:188: warnin
g: data definition has no type or storage class
In file included from hello.c:2:
/ework/ework_install/include/stdio.h:174: parse error before `va_list'
/ework/ework_install/include/stdio.h:177: parse error before `va_list'
/ework/ework_install/include/stdio.h:181: parse error before `va_list'
/ework/ework_install/include/stdio.h:270: parse error before `va_list'
/ework/ework_install/include/stdio.h:274: parse error before `va_list'
/ework/ework_install/include/stdio.h:277: parse error before `va_list'
/ework/ework_install/include/stdio.h:281: parse error before `va_list'
/ework/ework_install/include/stdio.h:285: parse error before `va_list'
In file included from /ework/ework_install/include/stdio.h:291,
from hello.c:2:
/ework/ework_install/include/stdio.inl:88: parse error before `va_list'
/ework/ework_install/include/stdio.inl: In function `vfprintf':
/ework/ework_install/include/stdio.inl:90: `stream' undeclared (first use in thi
s function)
/ework/ework_install/include/stdio.inl:90: (Each undeclared identifier is report
ed only once
/ework/ework_install/include/stdio.inl:90: for each function it appears in.)
/ework/ework_install/include/stdio.inl:90: `format' undeclared (first use in thi
s function)
/ework/ework_install/include/stdio.inl:90: `arg' undeclared (first use in this f
unction)
/ework/ework_install/include/stdio.inl: At top level:
/ework/ework_install/include/stdio.inl:95: parse error before `va_list'
/ework/ework_install/include/stdio.inl: In function `vprintf':
/ework/ework_install/include/stdio.inl:97: `format' undeclared (first use in thi
s function)
/ework/ework_install/include/stdio.inl:97: `arg' undeclared (first use in this f
unction)
/ework/ework_install/include/stdio.inl: At top level:
/ework/ework_install/include/stdio.inl:102: parse error before `va_list'
/ework/ework_install/include/stdio.inl: In function `vsprintf':
/ework/ework_install/include/stdio.inl:104: `s' undeclared (first use in this fu
nction)
/ework/ework_install/include/stdio.inl:104: `format' undeclared (first use in th
is function)
/ework/ework_install/include/stdio.inl:104: `arg' undeclared (first use in this
function)
/ework/ework_install/include/stdio.inl: At top level:
/ework/ework_install/include/stdio.inl:145: parse error before `va_list'
/ework/ework_install/include/stdio.inl: In function `vscanf':
/ework/ework_install/include/stdio.inl:147: `format' undeclared (first use in th
is function)
/ework/ework_install/include/stdio.inl:147: `arg' undeclared (first use in this
function)
In file included from hello.c:2:
hello.c: At top level:
/ework/ework_install/include/stdio.h:299: warning: This file contains more `}'s
than `{'s.
bash.exe-2.05$
-------------------------------------
Is there any problem ?
--
Y.P.Liu. <u6321019@ncnu.edu.tw>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] Build problem "Hellow world " in i386& win2000
2001-08-03 13:54 ` [ECOS] Build problem "Hellow world " in i386& win2000 Y.P.Liu.
@ 2001-08-03 14:00 ` Jonathan Larmour
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2001-08-03 14:00 UTC (permalink / raw)
To: Y.P.Liu.; +Cc: ecos-discuss
"Y.P.Liu." wrote:
>
> Thanks with your help.
> I use the step which you tell me
> -----------------
> type i386-elf-gcc -g -I/ework/ework_install/include hello.c
> -L/ework/ework_install/lib -Ttarget.ld -nostdlib
> -----------------
> but I still can't work it correctly.
>
> ps. this is my error message
> ----------------------------------
> bash.exe-2.05$ i386-elf-gcc -g -I/ework/ework_install/include hello.c -L/ework/
> ework_install/lib -Ttarget.ld -nostdlib
> In file included from /ework/ework_install/include/stdio.h:56,
> from hello.c:2:
> /ework/ework_install/include/cyg/infra/cyg_type.h:160: parse error before `__tmp
> 1'
This looks a lot like a line ending problem. Make sure your /ework tree is
mounted with a text mode mount point in cygwin. Type "mount" to see your
current mounts and "mount --help" in cygwin for help.
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] 3+ messages in thread
end of thread, other threads:[~2001-08-03 14:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-02 3:22 [ECOS] Build problem Y.P.Liu.
2001-08-03 13:54 ` [ECOS] Build problem "Hellow world " in i386& win2000 Y.P.Liu.
2001-08-03 14:00 ` 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).