From: "m mariga" <ma_ariga@yahoo.co.jp>
To: "Ross Younger" <wry@ecoscentric.com>,
<ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] Re: Can not compile API file
Date: Mon, 14 Dec 2009 12:38:00 -0000 [thread overview]
Message-ID: <8519914C2AA0492782C5C727AD2028AD@masahiro> (raw)
In-Reply-To: <7A992480DB6B4AAFA3432643677980B1@masahiro>
Hello everyone,
I am very very sorry to inform you that my last reported error was not
concerned with installing USB driver.
As I ported eCos to my sh7705 target,I proceeded to includ functions step by
step.
First I included TCP/IP package,then implemented USB driver.
My only-TCP/IP-implemented version caused the same error so I knew I have
not correctly implemented TCP/IP package.
But I do not know why those errors occure.
I re-append making errors below.Please teach me what caused these errors.
I relate what I have done.
I previously succeeded to port eCos2.0(CVS current) on SH7709 board with
TCP/IP package.
I copied this package source into my new target package.And I developed new
target on eCos 3.0.
All errosr are related to macros(like INT_MAX).
For example support.c's 620 line is next.
if (ticks > INT_MAX)
Are these errors relateted to the difference between eCos 2.0 and eCos 3.0 ?
Would you please help me out of predicament ?
-- below are making errors
$ make
sh-elf-gcc -c -o
usb_prt_test.o -g -Wall -I/home/link/lanboard-net-test-20091217
/untitled_install/include -ffunction-sections -fdata-sections usb_prt_test.c
sh-elf-gcc -nostartfiles -L/home/link/lanboard-net-test-20091217/untitled_instal
l/lib -Wl,--gc-sections -Wl,--Map -Wl,usb_prt_test.map -o usb_prt_test
usb_prt_t
est.o -Ttarget.ld -nostdlib
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_support.o):
In function `cyg_tvtohz':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/ecos/support.c:620:
undefined reference to `___udivsi3_i4i'
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/ecos/support.c:620:
undefined reference to `___sdivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_ip_output.o):
In function `cyg_ip_output':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/ip_output.c:435:undefined
reference to `___udivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_uipc_socket.o):
In function `cyg_sogetopt':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/kern/uipc_socket.c:1365:undefined
reference to `___sdivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_uipc_socket.o):
In function `cyg_sosetopt':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/kern/uipc_socket.c:1234:undefined
reference to `___sdivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_uipc_socket2.o):
In function `cyg_sodropablereq':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/kern/uipc_socket2.c:213:undefined
reference to `___udivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_igmp.o):
In function `cyg_igmp_input':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/igmp.c:355:
undefined reference to `___sdivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_tcp_input.o):
In function `cyg_tcp_mss':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/tcp_input.c:2880:
undefined reference to `___sdivsi3_i4i'
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/tcp_input.c:2880:
undefined reference to `___udivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_tcp_input.o):
In function `tcp_newreno':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/tcp_input.c:2951:
undefined reference to `___udivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_tcp_input.o):
In function `cyg_tcp_input':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/tcp_input.c:2015:
undefined reference to `___udivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_tcp_timer.o):
In function `cyg_tcp_timer_rexmt':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/tcp_timer.c:520:undefined
reference to `___udivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_tcp_subr.o):
In function `cyg_tcp_new_isn':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/tcp_subr.c:1123:undefined
reference to `___sdivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(net_bsd_tcpip_tcp_subr.o):
In function `cyg_tcp_close':
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/tcp_subr.c:746:
undefined reference to `___sdivsi3_i4i'
/opt/ecos/ecos-3.0/packages/net/bsd_tcpip/v3_0/src/sys/netinet/tcp_subr.c:746:
undefined reference to `___udivsi3_i4i'
/home/link/lanboard-net-test-20091217/untitled_install/lib/libtarget.a(services_memalloc_common_memfixed.o):
In function `Cyg_Mempolt2':
/home/link/lanboard-net-test-20091217/untitled_install/include/cyg/memalloc/mempolt2.inl:74:
undefined reference to `___sdivsi3_i4i'
collect2: ld returned 1 exit status
make: *** [usb_prt_test] Error 1
m mariga
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2009-12-14 12:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-09 9:32 m mariga
2009-12-09 9:47 ` Ross Younger
2009-12-11 10:28 ` [ECOS] Does eCOS 2.0/3.0 support CFI ? Ramgopal Kota
2009-12-11 22:51 ` [ECOS] Re: Can not compile API file m mariga
2009-12-14 12:38 ` m mariga [this message]
2009-12-14 12:49 ` Edgar Grimberg
2009-12-15 12:47 ` m mariga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8519914C2AA0492782C5C727AD2028AD@masahiro \
--to=ma_ariga@yahoo.co.jp \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=wry@ecoscentric.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).