public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] Running/building ecosconfig on latest Cygwin
@ 2006-02-21 20:47 Moseley, Drew
  2006-02-23 17:16 ` Bart Veer
  2006-07-11 10:15 ` [ECOS] New eCos host tool executables for Cygwin 1.5.20 John Dallaway
  0 siblings, 2 replies; 9+ messages in thread
From: Moseley, Drew @ 2006-02-21 20:47 UTC (permalink / raw)
  To: Bart Veer; +Cc: ecos-discuss

Just any default config that include hal_verde.cdl; eg "ecosconfig new
iq80321"

When run with the snapshotted version, ecos.ecc is created just fine.
When run with my recently built version, no ecos.ecc file is created.

At one point I inserted some debug code into ecosconfig and confirmed
that it is a divide-by-zero but I was unable to determine when or why
the value was being set to zero.

Drew 

-----Original Message-----
From: Bart Veer [mailto:bartv@ecoscentric.com] 
Sent: Tuesday, February 21, 2006 1:41 PM
To: Moseley, Drew
Cc: ecos-discuss@sourceware.org
Subject: Re: [ECOS] Running/building ecosconfig on latest Cygwin

>>>>> "Drew" == Moseley, Drew <drew.moseley@intel.com> writes:

    Drew> Has anyone built ecosconfig under Cygwin recently? The
    Drew> latest cygwin1.dll apparently causes some issues with
    Drew> "calculated" values. I am getting divide-by-zero errors in
    Drew> the definition of CYGNUM_HAL_RTC_PERIOD in
    Drew> packages/hal/arm/xscale/verde/current/cdl/hal_verde.cdl. The
    Drew> version posted on http://www.ecoscentric.com/snapshots/ does
    Drew> not appear to suffer from this but presumably that
    Drew> executable is statically linked.
    Drew> 
    Drew> Any ideas?

I have not tried to rebuild under cygwin recently, there has not been
any need. However it looks like I should investigate. Does the problem
occur with just the default configuration, or do you need to change
specific options?

Bart

-- 
Bart Veer                       eCos Configuration Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts

--
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] 9+ messages in thread

* Re: [ECOS] Running/building ecosconfig on latest Cygwin
  2006-02-21 20:47 [ECOS] Running/building ecosconfig on latest Cygwin Moseley, Drew
@ 2006-02-23 17:16 ` Bart Veer
  2006-07-11 10:15 ` [ECOS] New eCos host tool executables for Cygwin 1.5.20 John Dallaway
  1 sibling, 0 replies; 9+ messages in thread
From: Bart Veer @ 2006-02-23 17:16 UTC (permalink / raw)
  To: drew.moseley; +Cc: ecos-discuss

>>>>> "Drew" == Moseley, Drew <drew.moseley@intel.com> writes:

    Drew> Just any default config that include hal_verde.cdl; eg
    Drew> "ecosconfig new iq80321"

    Drew> When run with the snapshotted version, ecos.ecc is created
    Drew> just fine. When run with my recently built version, no
    Drew> ecos.ecc file is created.

    Drew> At one point I inserted some debug code into ecosconfig and
    Drew> confirmed that it is a divide-by-zero but I was unable to
    Drew> determine when or why the value was being set to zero.

Initial investigation suggests this is a problem with cygwin/g++
rather than with libcdl. The issue arises with

        cdl_option CYGNUM_HAL_RTC_PERIOD {
            default_value 1000000/CYGNUM_HAL_RTC_DENOMINATOR
        }

It so happens that libcdl is evaluating the default_value for
CYGNUM_HAL_RTC_PERIOD before that of CYGNUM_HAL_RTC_DENOMINATOR. Hence
the value lookup code returns 0 for DENOMINATOR and the expression
evaluation code throws a C++ exception for an illegal expression. This
should get caught a bit higher up in the call chain and the property
marked accordingly. Then later on DENOMINATOR's default_value gets
evaluated, causing CYGNUM_HAL_RTC_PERIOD's default_value expression to
be marked as in need of an update. The second time around the
expression evaluates fine and everything is happy.

Granted, the current behaviour is not quite optimal. Expressions could
be sorted in various ways to avoid unnecessary reevaluations. But
typical configurations are not complicated enough to make that sort of
thing worthwhile,  The simple approach generally works fine.

Unfortunately throwing the C++ exception causes things to go wrong.
The backtrace is somewhat bogus. I can see apparently valid stack
frames for __cxa_throw(), check_exception_spec(), globals_key(), and
then it ends up in the cygwin pthread support code before SEGV'ing. I
do not know enough about cygwin or g++ exception internals to debug
this, and unfortunately I have not managed to produce a simple
testcase. You may want to ask on an appropriate cygwin list whether
there any known issues with C++ exceptions using the current
combination of g++ and cygwin.

Bart

-- 
Bart Veer                       eCos Configuration Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
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] 9+ messages in thread

* [ECOS] New eCos host tool executables for Cygwin 1.5.20
  2006-02-21 20:47 [ECOS] Running/building ecosconfig on latest Cygwin Moseley, Drew
  2006-02-23 17:16 ` Bart Veer
@ 2006-07-11 10:15 ` John Dallaway
  2006-07-11 20:31   ` [ECOS] eCos on MOAB Development Board Evgeny Belyanco
  1 sibling, 1 reply; 9+ messages in thread
From: John Dallaway @ 2006-07-11 10:15 UTC (permalink / raw)
  To: ecos-discuss; +Cc: Drew Moseley

I have generated new snapshot builds of the eCos Configuration Tool and
ecosconfig command-line tool against Cygwin 1.5.20. These builds
incorporate Bart Veer's workaround for the C++ exception handling issue
discussed in the appended mail. You can download the executable files at:

    http://www.ecoscentric.com/devzone/configtool.shtml

If you are using Cygwin 1.5.18 or earlier, you do not need these new
snapshot builds.

John Dallaway
eCosCentric Limited

> -----Original Message-----
> From: Bart Veer [mailto:bartv@ecoscentric.com] 
> Sent: Tuesday, February 21, 2006 1:41 PM
> To: Moseley, Drew
> Cc: ecos-discuss@sourceware.org
> Subject: Re: [ECOS] Running/building ecosconfig on latest Cygwin
> 
>>>>>> "Drew" == Moseley, Drew <drew.moseley@intel.com> writes:
> 
>     Drew> Has anyone built ecosconfig under Cygwin recently? The
>     Drew> latest cygwin1.dll apparently causes some issues with
>     Drew> "calculated" values. I am getting divide-by-zero errors in
>     Drew> the definition of CYGNUM_HAL_RTC_PERIOD in
>     Drew> packages/hal/arm/xscale/verde/current/cdl/hal_verde.cdl. The
>     Drew> version posted on http://www.ecoscentric.com/snapshots/ does
>     Drew> not appear to suffer from this but presumably that
>     Drew> executable is statically linked.
>     Drew> 
>     Drew> Any ideas?
> 
> I have not tried to rebuild under cygwin recently, there has not been
> any need. However it looks like I should investigate. Does the problem
> occur with just the default configuration, or do you need to change
> specific options?

-- 
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] 9+ messages in thread

* [ECOS] eCos on MOAB Development Board
  2006-07-11 10:15 ` [ECOS] New eCos host tool executables for Cygwin 1.5.20 John Dallaway
@ 2006-07-11 20:31   ` Evgeny Belyanco
  2006-07-12 13:57     ` Gary Thomas
  2006-07-13 23:12     ` [ECOS] eCos on PSIM Evgeny Belyanco
  0 siblings, 2 replies; 9+ messages in thread
From: Evgeny Belyanco @ 2006-07-11 20:31 UTC (permalink / raw)
  To: ecos-discuss

Hi!

eCos is ported to MOAB Development Board. This is cool!
http://ecos.sourceware.org/ecos/boards/moab.html

1. Is GDB debug over Ethernet supported for this port? Manufacturer's
doc describes only serial debug - that is strange...
http://www.tamsinc.com/3011/support/MOAB.tutorial.Rev4.pdf

2. I found only this version of GNU tools for PowerPC powerpc-eabi
ftp://ecos.sourceware.org/pub/ecos/gnutools/cygwin/ecoscentric-gnutools-powerpc-eabi-1.4-2.cygwin.tar.bz2
ftp://ecos.sourceware.org/pub/ecos/gnutools/i386linux/ecoscentric-gnutools-powerpc-eabi-1.4-2.i386linux.tar.bz2 

They are dated Feb 2003. Is it any fresh tools available?

Can I use this tools with modern CygWin release 1.5.20-1 (with proper config tools),
http://www.ecoscentric.com/devzone/configtool.shtml
or I must use old Cygwin from 2003?

Evgeny Belyanko
**********************************
* E-mail: ea@kbkcc.ru
**********************************


-- 
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] 9+ messages in thread

* Re: [ECOS] eCos on MOAB Development Board
  2006-07-11 20:31   ` [ECOS] eCos on MOAB Development Board Evgeny Belyanco
@ 2006-07-12 13:57     ` Gary Thomas
  2006-07-12 14:24       ` Re[2]: " Evgeny Belyanco
  2006-07-13 23:12     ` [ECOS] eCos on PSIM Evgeny Belyanco
  1 sibling, 1 reply; 9+ messages in thread
From: Gary Thomas @ 2006-07-12 13:57 UTC (permalink / raw)
  To: Evgeny Belyanco; +Cc: ecos-discuss

Evgeny Belyanco wrote:
> Hi!
> 
> eCos is ported to MOAB Development Board. This is cool!
> http://ecos.sourceware.org/ecos/boards/moab.html

As it has been for many years now :-)  Be sure and use the latest CVS sources!

> 1. Is GDB debug over Ethernet supported for this port? Manufacturer's
> doc describes only serial debug - that is strange...
> http://www.tamsinc.com/3011/support/MOAB.tutorial.Rev4.pdf

Of course network debug is supported.

> 2. I found only this version of GNU tools for PowerPC powerpc-eabi
> ftp://ecos.sourceware.org/pub/ecos/gnutools/cygwin/ecoscentric-gnutools-powerpc-eabi-1.4-2.cygwin.tar.bz2
> ftp://ecos.sourceware.org/pub/ecos/gnutools/i386linux/ecoscentric-gnutools-powerpc-eabi-1.4-2.i386linux.tar.bz2 
> 
> They are dated Feb 2003. Is it any fresh tools available?
> 
> Can I use this tools with modern CygWin release 1.5.20-1 (with proper config tools),
> http://www.ecoscentric.com/devzone/configtool.shtml
> or I must use old Cygwin from 2003?

The latest tools should work fine.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
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] 9+ messages in thread

* Re[2]: [ECOS] eCos on MOAB Development Board
  2006-07-12 13:57     ` Gary Thomas
@ 2006-07-12 14:24       ` Evgeny Belyanco
  2006-07-12 14:31         ` Gary Thomas
  0 siblings, 1 reply; 9+ messages in thread
From: Evgeny Belyanco @ 2006-07-12 14:24 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

Wednesday, July 12, 2006, 5:57:18 PM, you wrote:

>> 2. I found only this version of GNU tools for PowerPC powerpc-eabi
>> ftp://ecos.sourceware.org/pub/ecos/gnutools/cygwin/ecoscentric-gnutools-powerpc-eabi-1.4-2.cygwin.tar.bz2
>> ftp://ecos.sourceware.org/pub/ecos/gnutools/i386linux/ecoscentric-gnutools-powerpc-eabi-1.4-2.i386linux.tar.bz2 
>> 
>> They are dated Feb 2003. Is it any fresh tools available?
>> 
>> Can I use this tools with modern CygWin release 1.5.20-1 (with proper config tools),
>> http://www.ecoscentric.com/devzone/configtool.shtml
>> or I must use old Cygwin from 2003?

GT> The latest tools should work fine.

Ok. And were I can found latest powerpc-eabi tools for Cygwin?  Or you
tells, that  powerpc-eabi-1.4-2 works fine with CygWin 1.5.20-1?

Thank you for answer!

Evgeny Belyanko
**********************************
* E-mail: ea@kbkcc.ru
**********************************


-- 
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] 9+ messages in thread

* Re: [ECOS] eCos on MOAB Development Board
  2006-07-12 14:24       ` Re[2]: " Evgeny Belyanco
@ 2006-07-12 14:31         ` Gary Thomas
  2006-07-12 14:38           ` Re[2]: " Evgeny Belyanco
  0 siblings, 1 reply; 9+ messages in thread
From: Gary Thomas @ 2006-07-12 14:31 UTC (permalink / raw)
  To: Evgeny Belyanco; +Cc: ecos-discuss

Evgeny Belyanco wrote:
> Wednesday, July 12, 2006, 5:57:18 PM, you wrote:
> 
>>> 2. I found only this version of GNU tools for PowerPC powerpc-eabi
>>> ftp://ecos.sourceware.org/pub/ecos/gnutools/cygwin/ecoscentric-gnutools-powerpc-eabi-1.4-2.cygwin.tar.bz2
>>> ftp://ecos.sourceware.org/pub/ecos/gnutools/i386linux/ecoscentric-gnutools-powerpc-eabi-1.4-2.i386linux.tar.bz2 
>>>
>>> They are dated Feb 2003. Is it any fresh tools available?
>>>
>>> Can I use this tools with modern CygWin release 1.5.20-1 (with proper config tools),
>>> http://www.ecoscentric.com/devzone/configtool.shtml
>>> or I must use old Cygwin from 2003?
> 
> GT> The latest tools should work fine.
> 
> Ok. And were I can found latest powerpc-eabi tools for Cygwin?  Or you
> tells, that  powerpc-eabi-1.4-2 works fine with CygWin 1.5.20-1?

Have you tried them?  I've no idea, as I don't use CygWin :-(, but
I suspect that the old compiler tools still work (the CygWin related
problems have all been with ecosconfig/configtool)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
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] 9+ messages in thread

* Re[2]: [ECOS] eCos on MOAB Development Board
  2006-07-12 14:31         ` Gary Thomas
@ 2006-07-12 14:38           ` Evgeny Belyanco
  0 siblings, 0 replies; 9+ messages in thread
From: Evgeny Belyanco @ 2006-07-12 14:38 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

Wednesday, July 12, 2006, 6:31:10 PM, you wrote:
>> GT> The latest tools should work fine.
>> 
>> Ok. And were I can found latest powerpc-eabi tools for Cygwin?  Or you
>> tells, that  powerpc-eabi-1.4-2 works fine with CygWin 1.5.20-1?

GT> Have you tried them?

Not yet. I am preparing to experiment - so that I am asking for :)

GT> I've no idea, as I don't use CygWin :-(, but I suspect that the
GT> old compiler tools still work (the CygWin related problems have
GT> all been with ecosconfig/configtool)

Ok. Thank you!

Evgeny Belyanko
**********************************
* E-mail: ea@kbkcc.ru
**********************************


-- 
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] 9+ messages in thread

* [ECOS] eCos on PSIM
  2006-07-11 20:31   ` [ECOS] eCos on MOAB Development Board Evgeny Belyanco
  2006-07-12 13:57     ` Gary Thomas
@ 2006-07-13 23:12     ` Evgeny Belyanco
  1 sibling, 0 replies; 9+ messages in thread
From: Evgeny Belyanco @ 2006-07-13 23:12 UTC (permalink / raw)
  To: ecos-discuss

Wednesday, July 12, 2006, 12:29:22 AM, you wrote:
EB> 2. I found only this version of GNU tools for PowerPC powerpc-eabi
EB> ftp://ecos.sourceware.org/pub/ecos/gnutools/cygwin/ecoscentric-gnutools-powerpc-eabi-1.4-2.cygwin.tar.bz2
EB> ftp://ecos.sourceware.org/pub/ecos/gnutools/i386linux/ecoscentric-gnutools-powerpc-eabi-1.4-2.i386linux.tar.bz2 

EB> They are dated Feb 2003. Is it any fresh tools available?

EB> Can I use this tools with modern CygWin release 1.5.20-1 (with proper config tools),
EB> http://www.ecoscentric.com/devzone/configtool.shtml
EB> or I must use old Cygwin from 2003?

I confirm:
ecoscentric-gnutools-powerpc-eabi-1.4-2.cygwin.tar.bz2
& modern config tools works fine under CygWin 1.5.20.

eCos + basic tests works fine on PSIM!


Evgeny Belyanko
**********************************
* E-mail: ea@kbkcc.ru
**********************************


-- 
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] 9+ messages in thread

end of thread, other threads:[~2006-07-13 23:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-21 20:47 [ECOS] Running/building ecosconfig on latest Cygwin Moseley, Drew
2006-02-23 17:16 ` Bart Veer
2006-07-11 10:15 ` [ECOS] New eCos host tool executables for Cygwin 1.5.20 John Dallaway
2006-07-11 20:31   ` [ECOS] eCos on MOAB Development Board Evgeny Belyanco
2006-07-12 13:57     ` Gary Thomas
2006-07-12 14:24       ` Re[2]: " Evgeny Belyanco
2006-07-12 14:31         ` Gary Thomas
2006-07-12 14:38           ` Re[2]: " Evgeny Belyanco
2006-07-13 23:12     ` [ECOS] eCos on PSIM Evgeny Belyanco

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