This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: problems compiling host tools
- From: Aldo Dolfi <dolfi at nec-labs dot com>
- To: Jonathan Larmour <jifl at eCosCentric dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 05 Mar 2003 16:45:43 -0500
- Subject: Re: [ECOS] problems compiling host tools
- References: <3E5E595C.50103@nec-labs.com> <3E5E65B8.6060907@eCosCentric.com>
Thank you for the answer.
I made some tries, but I did not get what exactly you meant by starting
from 1.3.1 and upgrading to CVS.
If I run cvs checkout in the 1.3.1 tree I get errors that say a lot of
files are in the way. Updating is not possible either because that tree
has not CVS directories.
Anyway, I found out that the normal cvs co described in the site does
not check out the host directory. I had to check it out separately. I
was able to compile the host tools. Then, in a separate directory
(jessica) and I ran
ecosconfig new pc
ecosconfig tree
make
and this went on without pb.
In a new directory (jessica2) I tried to build the hello.c example. I did
SRCS=hello.c DST=hello ../ecos-cvs/examples/build_Makefile ../jessica
and then
make
and I got the linking errors in the attached file.
What's the problem here? It looks like the library does not define some
symbols.
Do you have any idea?
Thank yoy again
Aldo
Jonathan Larmour wrote:
Aldo Dolfi wrote:
Hi everybody,
I am just starting having a look to ecos, so bear with me if I am
missing something obvious.
I checked out the CVS version and followed the direction in the
README.host file: I ran configure in a separate dir and the ran make.
But I get the following error
You shouldn't need to build the host tools yourself. Start off by
downloading eCos 1.3.1 to get the basic stuff, and then immediately
upgrade to CVS from <http://sources.redhat.com/ecos/anoncvs.html>.
That page has prebuilts of updated host tools too.
Jifl
i386-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static -L/home/dolfi/ecos/jessica/install/lib -Ttarget.ld hello.o -o hello
/home/dolfi/ecos/jessica/install/lib/libtarget.a(kernel_thread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2b): In function `__static_initialization_and_destruction_0(int, int)':
/home/dolfi/ecos/jessica/install/include/cyg/kernel/thread.inl:254: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(kernel_thread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x37): In function `__static_initialization_and_destruction_0(int, int)':
/home/dolfi/ecos/jessica/install/include/cyg/kernel/smp.hxx:447: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(kernel_intr.o)(.text._Z41__static_initialization_and_destruction_0ii+0x1c): In function `__static_initialization_and_destruction_0':
/home/dolfi/ecos/ecos-cvs/packages/kernel/current/src/intr/intr.cxx:179: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(kernel_intr.o)(.text._Z41__static_initialization_and_destruction_0ii+0x32):/home/dolfi/ecos/ecos-cvs/packages/kernel/current/src/intr/intr.cxx:608: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(kernel_sched.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2b): In function `__static_initialization_and_destruction_0(int, int)':
/home/dolfi/ecos/ecos-cvs/packages/kernel/current/src/sched/sched.cxx:496: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(kernel_sched.o)(.text._Z41__static_initialization_and_destruction_0ii+0x37):/home/dolfi/ecos/ecos-cvs/packages/kernel/current/src/sched/sched.cxx:98: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_startup_mainthread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x41): In function `__static_initialization_and_destruction_0':
/home/dolfi/ecos/ecos-cvs/packages/language/c/libc/startup/current/src/mainthread.cxx:120: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_startup_mainthread.o)(.text._Z41__static_initialization_and_destruction_0ii+0x4d):/home/dolfi/ecos/ecos-cvs/packages/language/c/libc/startup/current/src/mainthread.cxx:120: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_stdio_stdout.o)(.text._Z41__static_initialization_and_destruction_0ii+0x60): In function `__static_initialization_and_destruction_0(int, int)':
/home/dolfi/ecos/jessica/install/include/cyg/libc/stdio/stream.inl:144: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_stdio_stdout.o)(.text._Z41__static_initialization_and_destruction_0ii+0x6c):/home/dolfi/ecos/jessica/install/include/cyg/libc/stdio/stream.inl:144: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(kernel_clock.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2b): In function `__static_initialization_and_destruction_0(int, int)':
/home/dolfi/ecos/ecos-cvs/packages/kernel/current/src/common/clock.cxx:656: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(kernel_clock.o)(.text._Z41__static_initialization_and_destruction_0ii+0x37):/home/dolfi/ecos/ecos-cvs/packages/kernel/current/src/common/clock.cxx:298: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(services_memalloc_common_heaps.o)(.text._Z41__static_initialization_and_destruction_0ii+0x45): In function `__static_initialization_and_destruction_0(int, int)':
/home/dolfi/ecos/jessica/services/memalloc/common/current/heaps.cxx:15: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(services_memalloc_common_heaps.o)(.text._Z41__static_initialization_and_destruction_0ii+0x51):/home/dolfi/ecos/jessica/services/memalloc/common/current/heaps.cxx:15: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_stdio_stderr.o)(.text._Z41__static_initialization_and_destruction_0ii+0x5d): In function `__static_initialization_and_destruction_0(int, int)':
/home/dolfi/ecos/jessica/install/include/cyg/libc/stdio/stream.inl:127: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_stdio_stderr.o)(.text._Z41__static_initialization_and_destruction_0ii+0x69):/home/dolfi/ecos/jessica/install/include/cyg/libc/stdio/stream.inl:144: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_stdio_stdin.o)(.text._Z41__static_initialization_and_destruction_0ii+0x60): In function `__static_initialization_and_destruction_0(int, int)':
/home/dolfi/ecos/jessica/install/include/cyg/libc/stdio/stream.inl:144: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_stdio_stdin.o)(.text._Z41__static_initialization_and_destruction_0ii+0x6c):/home/dolfi/ecos/jessica/install/include/cyg/libc/stdio/stream.inl:144: undefined reference to `__cxa_atexit'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_stdio_stdiofiles.o)(.text._Z41__static_initialization_and_destruction_0ii+0x2b): In function `__static_initialization_and_destruction_0':
/home/dolfi/ecos/ecos-cvs/packages/language/c/libc/stdio/current/src/common/stdiofiles.cxx:79: undefined reference to `__dso_handle'
/home/dolfi/ecos/jessica/install/lib/libtarget.a(language_c_libc_stdio_stdiofiles.o)(.text._Z41__static_initialization_and_destruction_0ii+0x37):/home/dolfi/ecos/ecos-cvs/packages/language/c/libc/stdio/current/src/common/stdiofiles.cxx:79: undefined reference to `__cxa_atexit'
collect2: ld returned 1 exit status
make: *** [hello] Error 1
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss