public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] ecos for i386 target
@ 2005-04-17 15:16 Santanu Chatterjee
  2005-04-17 15:38 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Santanu Chatterjee @ 2005-04-17 15:16 UTC (permalink / raw)
  To: ecos-discuss

Hello everybody,

I was trying to compile ecos-2.0 for the i386 pc target. The building of the 
libraries went smoothly. No errors.
However, when I tried to run make on the example programs, I got the 
following errors :
---------------------------------------------------
gcc -nostartfiles -L../untitled_install//lib -Ttarget.ld -g -nostdlib
-Wl,--gc-sections -Wl,-static -o hello hello.o
../untitled_install//lib/libtarget.a(kernel_thread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2d):
In function `__static_initialization_and_destruction_0(int, int)':
/home/santanu/eCos-Project/ecos-work/untitled_install/include/cyg/kernel/thread.inl:243:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(kernel_thread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x3c):/home/santanu/eCos-Project/ecos-work/untitled_install/include/cyg/kernel/thread.inl:82:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(kernel_intr.o)(.text._Z41__static_initialization_and_destruction_0ii+0x23):
In function `__static_initialization_and_destruction_0':
/home/santanu/eCos-Project/ecos-2.0/packages/kernel/v2_0/src/intr/intr.cxx:181:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(kernel_intr.o)(.text._Z41__static_initialization_and_destruction_0ii+0x38):/home/santanu/eCos-Project/ecos-2.0/packages/kernel/v2_0/src/intr/intr.cxx:255:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(kernel_sched.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2d):
In function `__static_initialization_and_destruction_0(int, int)':
/home/santanu/eCos-Project/ecos-2.0/packages/kernel/v2_0/src/sched/sched.cxx:384:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(kernel_sched.o)(.text._Z41__static_initialization_and_destruction_0ii+0x3c):
In function `__static_initialization_and_destruction_0(int, int)':
/home/santanu/eCos-Project/ecos-work/untitled_install/include/cyg/infra/clist.hxx:137:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(language_c_libc_startup_mainthread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x60):
In function `__static_initialization_and_destruction_0':
/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/startup/v2_0/src/mainthread.cxx:120:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(language_c_libc_startup_mainthread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x6f):/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/startup/v2_0/src/mainthread.cxx:120:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(language_c_libc_stdio_stdout.o)(.text._Z41__static_initialization_and_destruction_0ii+0x8d):
In function `__static_initialization_and_destruction_0':
/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/common/stdout.cxx:84:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(language_c_libc_stdio_stdout.o)(.text._Z41__static_initialization_and_destruction_0ii+0x9a):/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/common/stdout.cxx:84:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(kernel_clock.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2d):
In function `__static_initialization_and_destruction_0(int, int)':
/home/santanu/eCos-Project/ecos-work/untitled_install/include/cyg/infra/clist.hxx:137:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(kernel_clock.o)(.text._Z41__static_initialization_and_destruction_0ii+0x3c):
In function `__static_initialization_and_destruction_0(int, int)':
/home/santanu/eCos-Project/ecos-work/untitled_install/include/cyg/kernel/sched.inl:101:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(services_memalloc_common_heaps.o)(.text._Z41__static_initialization_and_destruction_0ii+0x51):
In function `__static_initialization_and_destruction_0(int, int)':
/home/santanu/eCos-Project/ecos-work/untitled_install/include/cyg/infra/clist.hxx:192:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(services_memalloc_common_heaps.o)(.text._Z41__static_initialization_and_destruction_0ii+0x60):/home/santanu/eCos-Project/ecos-work/untitled_install/include/cyg/infra/clist.hxx:138:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(language_c_libc_stdio_stderr.o)(.text._Z41__static_initialization_and_destruction_0ii+0x8a):
In function `__static_initialization_and_destruction_0':
/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/common/stderr.cxx:84:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(language_c_libc_stdio_stderr.o)(.text._Z41__static_initialization_and_destruction_0ii+0x97):/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/common/stderr.cxx:84:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(language_c_libc_stdio_stdin.o)(.text._Z41__static_initialization_and_destruction_0ii+0x87):
In function `__static_initialization_and_destruction_0':
/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/common/stdin.cxx:84:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(language_c_libc_stdio_stdin.o)(.text._Z41__static_initialization_and_destruction_0ii+0x94):/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/common/stdin.cxx:84:
undefined reference to `__cxa_atexit'
../untitled_install//lib/libtarget.a(language_c_libc_stdio_stdiofiles.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2d):
In function `__static_initialization_and_destruction_0':
/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/common/stdiofiles.cxx:79:
undefined reference to `__dso_handle'
../untitled_install//lib/libtarget.a(language_c_libc_stdio_stdiofiles.o)(.text._Z41__static_initialization_and_destruction_0ii+0x3c):/home/santanu/eCos-Project/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/common/stdiofiles.cxx:79:
undefined reference to `__cxa_atexit'
collect2: ld returned 1 exit status
make: *** [hello] Error 1
----------------------------------------------------

It seems like somekind of error related to the linker, but I can't figure out
what it is or how to fix it (I'm still very much a newbie to ecos). 

I downloaded the latest ecos sources from anoncvs and tried the same, 
but I get the same errors. I'm using gcc-3.3 (I'm using the same, without
any prefix to gcc for the i386 target as well) on Ubuntu Warty.

Also, the above procedure worked well for the linux synthetic target, but
it is not working for i386 target.

Can anyone from this list please provide some guidelines as to how to
fix this error. My present intention is to boot ecos from a floppy using redboot
and then run a sample program with no other OS running, so that I can 
see the thread switching timings using an oscillator.

Thank you in advance.

Regards,
Santanu

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

* Re: [ECOS] ecos for i386 target
  2005-04-17 15:16 [ECOS] ecos for i386 target Santanu Chatterjee
@ 2005-04-17 15:38 ` Andrew Lunn
  2005-04-18  7:29   ` Santanu Chatterjee
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2005-04-17 15:38 UTC (permalink / raw)
  To: Santanu Chatterjee; +Cc: ecos-discuss

> I downloaded the latest ecos sources from anoncvs and tried the same, 
> but I get the same errors. I'm using gcc-3.3 (I'm using the same, without
> any prefix to gcc for the i386 target as well) on Ubuntu Warty.

Use the i386 toolchain available from
http://ecos.sourceware.org/getstart.html.

The toolchain you are using generates calls to libc which eCos does
not use. The older toolchain does not have this problem.

        Andrew

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

* Re: [ECOS] ecos for i386 target
  2005-04-17 15:38 ` Andrew Lunn
@ 2005-04-18  7:29   ` Santanu Chatterjee
  0 siblings, 0 replies; 3+ messages in thread
From: Santanu Chatterjee @ 2005-04-18  7:29 UTC (permalink / raw)
  To: Santanu Chatterjee, ecos-discuss

Thanks.
I will do as you suggested. Will post back if I face any problems.

Regards,
Santanu

On 4/17/05, Andrew Lunn <andrew@lunn.ch> wrote:
> > I downloaded the latest ecos sources from anoncvs and tried the same,
> > but I get the same errors. I'm using gcc-3.3 (I'm using the same, without
> > any prefix to gcc for the i386 target as well) on Ubuntu Warty.
> 
> Use the i386 toolchain available from
> http://ecos.sourceware.org/getstart.html.
> 
> The toolchain you are using generates calls to libc which eCos does
> not use. The older toolchain does not have this problem.
> 
>         Andrew
>

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

end of thread, other threads:[~2005-04-17 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-17 15:16 [ECOS] ecos for i386 target Santanu Chatterjee
2005-04-17 15:38 ` Andrew Lunn
2005-04-18  7:29   ` Santanu Chatterjee

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