public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Santanu Chatterjee <thisissantanu@gmail.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] ecos for i386 target
Date: Sun, 17 Apr 2005 15:16:00 -0000	[thread overview]
Message-ID: <42b9a27d05041707083d1a0c4a@mail.gmail.com> (raw)

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

             reply	other threads:[~2005-04-17 14:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-17 15:16 Santanu Chatterjee [this message]
2005-04-17 15:38 ` Andrew Lunn
2005-04-18  7:29   ` Santanu Chatterjee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42b9a27d05041707083d1a0c4a@mail.gmail.com \
    --to=thisissantanu@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).