public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] h8300 cannot find libgcc.a
@ 2009-07-21 14:08 m mariga
  2009-07-21 15:04 ` [ECOS] " John Dallaway
  0 siblings, 1 reply; 28+ messages in thread
From: m mariga @ 2009-07-21 14:08 UTC (permalink / raw)
  To: ecos-discuss

Hello everyone,

I installed h8300 toolchains in eCos 3.0 and tried to run application using
Akizuki H8/3068 Template on Akizuki Board.
But I was encountered by application's Make-error and in a deadlock
predicament.
Would you please help me and rescue me out ?

I used next sources.
binutils-2.19.1.tar.bz2
gcc-4.4.0.tar.bz2
newlib-1.17.0.tar.gz

As I said, I succeeded to install h8300 toolchains in /gnutools directory
and succeeded to install RedBoot in Akizuki Board.
Next I decided to run eCos-bundled nc_test_slave.c and tried to build
libtarget.a.
In order to build libtarget.a, I selected Akizuki H8/3068 Template and "net"
package.
Here, I've met a serious error problem.

/opt/ecos/ecos-3.0/packages/language/c/libm/v3_0/src/mathincl/fdlibm.h:78:3:
error: #error IEEE-style 64-bit doubles are required to use the math library

Here're extracts from original fdlibm.h.
---
// SANITY CHECKS
// Just check that we support IEEE-style 64-bit doubles. If not, this
// math library will not work
// This check will go away when support for single-precision alternatives
are
// provided

#if DBL_MAX_EXP != 1024
# error IEEE-style 64-bit doubles are required to use the math library
#endif // if DBL_MAX_EXP == 1024
---

Tell the truth I didn't understand but when I searched DBL_MAX_EXP in .c and
.h files couldn't find it, so I escaped by next simplistic evasion.
---
#define DBL_MAX_EXP 1024
#if DBL_MAX_EXP != 1024
# error IEEE-style 64-bit doubles are required to use the math library
#endif // if DBL_MAX_EXP == 1024
---
I inserted #define DBL_MAX_EXP 1024 !!
I could see your scolding faces but I needed to make it,so let me continue
my story.

Anyway I succeeded to make libtarget.a,so next I continued to make
application.
And I've run across next linking error.

$ make
h8300-elf-gcc -c -o
nc_test_slave.o -mh -mint32 -g -Wall -I/home/link/aki-net-0717/untitled_install/include
 -ffunction-s
ections -fdata-sections nc_test_slave.c
nc_test_slave.c: In function 'do_udp_test':
nc_test_slave.c:215: warning: format '%x' expects type 'unsigned int', but
argument 2 has type 'long int'
nc_test_slave.c:215: warning: format '%x' expects type 'unsigned int', but
argument 3 has type 'long int'
nc_test_slave.c: In function 'do_tcp_test':
nc_test_slave.c:391: warning: format '%x' expects type 'unsigned int', but
argument 2 has type 'long int'
nc_test_slave.c:391: warning: format '%x' expects type 'unsigned int', but
argument 3 has type 'long int'
h8300-elf-gcc -nostartfiles -L/home/link/aki-net-0717/untitled_install/lib -Wl,--gc-sections
 -Wl,--Map -Wl,nc_test_slave
.map -o nc_test_slave nc_test_slave.o -Ttarget.ld -nostdlib
/gnutools/lib/gcc/h8300-elf/4.4.0/../../../../h8300-elf/bin/ld: skipping
incompatible /gnutools/lib/gcc/h8300-elf/4.4.0/
libgcc.a when searching for libgcc.a
/gnutools/lib/gcc/h8300-elf/4.4.0/../../../../h8300-elf/bin/ld: cannot find
libgcc.a
collect2: ld returned 1 exit status
make: *** [nc_test_slave] Error 1

I confirmed there is libgcc.a in /gnutools/lib/gcc/h8300-elf/4.4.0/.
I do not know it is directly related to my botched evasion.
Please show me the correct way.

By the way,please let me use an assumed name.Recently I discovered my
original name is used by spams.
May be punished the spam builders !

Thank you in advance for your help.

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

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: [ECOS] How to connect RedBoot via Telnet running application
@ 2009-10-16 15:50 m mariga
  2009-10-21  0:10 ` Jonathan Larmour
  0 siblings, 1 reply; 28+ messages in thread
From: m mariga @ 2009-10-16 15:50 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

Hello,Gary,and everyone,

I am sorry I forgot ecos-discuss ,so I resend almost same mail.

Gary wrote
>> I'd like to connect to RedBoot via Telnet during target's running net
>> application.
>> I tried to run nc_test_slave program as application and connect to
>> RedBoot via Telnet from host's cygwin.
>> The result is below.
>>
>> $ telnet 172.16.1.200 9000
>> Trying 172.16.1.200...
>> telnet: Unable to connect to remote host: Connection refused
>   <...snip>
>
> Once your application is started, RedBoot is no longer available.
>
> Why are you trying to do this?
>

 I would like to load new application object to target using RedBoot via 
Telnet from host PC during target's application running.

I also like to use RedBoot' monitor functions like "dump".

Is it impossible ?
I got an impression from Anthony J. Massa's book that if setted two
 different IP addresses between RedBoot and application,I could connect to
 RedBoot via Telnet during application running. Am I mistaken ?

 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

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

end of thread, other threads:[~2009-10-21  0:10 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-21 14:08 [ECOS] h8300 cannot find libgcc.a m mariga
2009-07-21 15:04 ` [ECOS] " John Dallaway
2009-07-22 12:28   ` m mariga
2009-07-22 13:58     ` John Dallaway
2009-07-23 21:32       ` m mariga
2009-07-24  8:34         ` John Dallaway
2009-07-28 14:40           ` m mariga
2009-08-09 23:11             ` m mariga
2009-08-17  7:42               ` John Dallaway
2009-09-04  5:54               ` [ECOS] How to set GDB Stub Options in order to run insight ? m mariga
2009-09-04  9:38                 ` [ECOS] " John Dallaway
2009-09-04 18:33                   ` m mariga
2009-09-07  9:40                     ` m mariga
2009-09-07 11:31                       ` John Dallaway
2009-09-07 16:10                         ` [ECOS] cyg_scheduler_lock and DSR's Jim Bradleigh
2009-09-11 20:37                           ` Bart Veer
2009-09-08 10:15                         ` [ECOS] Re: How to set GDB Stub Options in order to run insight ? m mariga
2009-09-28  9:54                           ` [ECOS] About h8000 eCos GDB-Stub m mariga
2009-09-30 10:06                             ` m mariga
2009-10-16 14:34                               ` [ECOS] How to connect RedBoot via Telnet running application m mariga
2009-10-16 14:42                                 ` Gary Thomas
     [not found]                                   ` <6FC88324D6C144EFB39FFE3CBF0E5B8D@masahiro>
2009-10-16 15:40                                     ` Gary Thomas
2009-10-16 16:11                                       ` m mariga
2009-10-16 16:43                                       ` m mariga
2009-10-16 16:54                                         ` Gary Thomas
2009-09-19  1:51                         ` [ECOS] Re: How to set GDB Stub Options in order to run insight ? m mariga
2009-10-16 15:50 [ECOS] How to connect RedBoot via Telnet running application m mariga
2009-10-21  0:10 ` 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).