public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] error with __cxa_atexit and __dso_handle
@ 2007-09-14 15:16 Santiago Lafon - Controles S.A.
  2007-09-14 20:54 ` Brian Clausing
  2007-09-20 12:04 ` Alexey Shusharin
  0 siblings, 2 replies; 4+ messages in thread
From: Santiago Lafon - Controles S.A. @ 2007-09-14 15:16 UTC (permalink / raw)
  To: ecos-discuss

I want to upgrade my arm-alf toolchan to the latest GNU tools

Some time ago, i made a toolchain with:
     binutils 2.14
     gcc-core 3.3.1
     gcc-g++  3.3.1
     newlib   1.11.0
     insight  5.3

Now i made a new one with
     binutils 2.18
     gcc    4.2.1
     newlib    1.15.0
     insight    6.6

I can build ecos without apparent problems (i'm working with a simple 
eb40a target).

Then, when i try to make a simple application (or if i try to make ecos 
tests), it's when my problems appears.

I get lots of errors like this:

work/eCos/lib/eb40a/rom/eb40a_rom_sin_net_v00.20_install/lib/extras.o: 
In function `__static_initialization_and_destruction_0':
/opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:105: 
undefined reference to `__cxa_atexit'

/opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:125: 
undefined reference to `__cxa_atexit'
/opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:532: 
undefined reference to `__dso_handle'

Could someone help me?

Thanks
     Santiago Lafon

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

* Re: [ECOS] error with __cxa_atexit and __dso_handle
  2007-09-14 15:16 [ECOS] error with __cxa_atexit and __dso_handle Santiago Lafon - Controles S.A.
@ 2007-09-14 20:54 ` Brian Clausing
  2007-09-20 12:04 ` Alexey Shusharin
  1 sibling, 0 replies; 4+ messages in thread
From: Brian Clausing @ 2007-09-14 20:54 UTC (permalink / raw)
  To: Santiago Lafon - Controles S.A.; +Cc: ecos-discuss

On Fri, 2007-09-14 at 12:16 -0300, Santiago Lafon - Controles S.A.
wrote:
> I want to upgrade my arm-alf toolchan to the latest GNU tools
> 
> Some time ago, i made a toolchain with:
>      binutils 2.14
>      gcc-core 3.3.1
>      gcc-g++  3.3.1
>      newlib   1.11.0
>      insight  5.3
> 
> Now i made a new one with
>      binutils 2.18
>      gcc    4.2.1
>      newlib    1.15.0
>      insight    6.6
> 
> I can build ecos without apparent problems (i'm working with a simple 
> eb40a target).
> 
> Then, when i try to make a simple application (or if i try to make ecos 
> tests), it's when my problems appears.
> 
> I get lots of errors like this:
> 
> work/eCos/lib/eb40a/rom/eb40a_rom_sin_net_v00.20_install/lib/extras.o: 
> In function `__static_initialization_and_destruction_0':
> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:105: 
> undefined reference to `__cxa_atexit'
> 
> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:125: 
> undefined reference to `__cxa_atexit'
> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:532: 
> undefined reference to `__dso_handle'
> 
> Could someone help me?
> 
> Thanks
>      Santiago Lafon

The libraries you are using may not be compatible.  Not long ago the
latest version of gcc on x86 would not work (for me) with the latest
version of binutils.  Check the installation notes for gcc.

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

* Re: [ECOS] error with __cxa_atexit and __dso_handle
  2007-09-14 15:16 [ECOS] error with __cxa_atexit and __dso_handle Santiago Lafon - Controles S.A.
  2007-09-14 20:54 ` Brian Clausing
@ 2007-09-20 12:04 ` Alexey Shusharin
  2007-09-21 18:32   ` Santiago Lafon
  1 sibling, 1 reply; 4+ messages in thread
From: Alexey Shusharin @ 2007-09-20 12:04 UTC (permalink / raw)
  To: Santiago Lafon - Controles S.A.; +Cc: ecos-discuss

В Птн, 14/09/2007 в 12:16 -0300, Santiago Lafon - Controles S.A. пишет:
> I want to upgrade my arm-alf toolchan to the latest GNU tools
> 
> Some time ago, i made a toolchain with:
>      binutils 2.14
>      gcc-core 3.3.1
>      gcc-g++  3.3.1
>      newlib   1.11.0
>      insight  5.3
> 
> Now i made a new one with
>      binutils 2.18
>      gcc    4.2.1
>      newlib    1.15.0
>      insight    6.6
> 
> I can build ecos without apparent problems (i'm working with a simple 
> eb40a target).
> 
> Then, when i try to make a simple application (or if i try to make ecos 
> tests), it's when my problems appears.
> 
> I get lots of errors like this:
> 
> work/eCos/lib/eb40a/rom/eb40a_rom_sin_net_v00.20_install/lib/extras.o: 
> In function `__static_initialization_and_destruction_0':
> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:105: 
> undefined reference to `__cxa_atexit'
> 
> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:125: 
> undefined reference to `__cxa_atexit'
> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:532: 
> undefined reference to `__dso_handle'
> 
> Could someone help me?
> 
> Thanks
>      Santiago Lafon
> 

Hi

The solution is using '--disable-__cxa_atexit' configure option when
you're building gcc. This option is enabled by default in gcc 4.2.1, but
it can be used only with glibc (not with newlib).

Best regards
Alexey Shusharin



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

* Re: [ECOS] error with __cxa_atexit and __dso_handle
  2007-09-20 12:04 ` Alexey Shusharin
@ 2007-09-21 18:32   ` Santiago Lafon
  0 siblings, 0 replies; 4+ messages in thread
From: Santiago Lafon @ 2007-09-21 18:32 UTC (permalink / raw)
  To: Alexey Shusharin; +Cc: ecos-discuss

It works! Thank you very much.

     Santiago Lafon

Alexey Shusharin escribió:
> В Птн, 14/09/2007 в 12:16 -0300, Santiago Lafon - Controles S.A. пишет:
>> I want to upgrade my arm-alf toolchan to the latest GNU tools
>>
>> Some time ago, i made a toolchain with:
>>      binutils 2.14
>>      gcc-core 3.3.1
>>      gcc-g++  3.3.1
>>      newlib   1.11.0
>>      insight  5.3
>>
>> Now i made a new one with
>>      binutils 2.18
>>      gcc    4.2.1
>>      newlib    1.15.0
>>      insight    6.6
>>
>> I can build ecos without apparent problems (i'm working with a simple 
>> eb40a target).
>>
>> Then, when i try to make a simple application (or if i try to make ecos 
>> tests), it's when my problems appears.
>>
>> I get lots of errors like this:
>>
>> work/eCos/lib/eb40a/rom/eb40a_rom_sin_net_v00.20_install/lib/extras.o: 
>> In function `__static_initialization_and_destruction_0':
>> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:105: 
>> undefined reference to `__cxa_atexit'
>>
>> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:125: 
>> undefined reference to `__cxa_atexit'
>> /opt/ecos-snap-2007-09-09/packages/io/fileio/current/src/misc.cxx:532: 
>> undefined reference to `__dso_handle'
>>
>> Could someone help me?
>>
>> Thanks
>>      Santiago Lafon
>>
> 
> Hi
> 
> The solution is using '--disable-__cxa_atexit' configure option when
> you're building gcc. This option is enabled by default in gcc 4.2.1, but
> it can be used only with glibc (not with newlib).
> 
> Best regards
> Alexey Shusharin
> 
> 
> 

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

end of thread, other threads:[~2007-09-21 18:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-14 15:16 [ECOS] error with __cxa_atexit and __dso_handle Santiago Lafon - Controles S.A.
2007-09-14 20:54 ` Brian Clausing
2007-09-20 12:04 ` Alexey Shusharin
2007-09-21 18:32   ` Santiago Lafon

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