This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Re: Re: Can not compile API file


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


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