[ECOS] problems compiling host tools

Aldo Dolfi dolfi@nec-labs.com
Thu Mar 6 14:32:00 GMT 2003

Thanks, Jonathan,

>> and I got the linking errors in the attached file. [snip]
> > 
> /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'
> This is odd. This implies eCos was built without "-fno-exceptions 
> -fno-rtti". But unless you changed the configuration to use different 
> flags (as the commands you wrote above indicate) that really shouldn't 
> happen.
> How did you build the i386-elf-gcc? Or where did you get it from? 

Ops, I simply thought I would not need a cross compiler, because host 
and target are on the same arch, so I simply created symlinks to the 
system provided tools... Is this wrong?

> dolfi@milan:~/ecos/jessica2$ i386-elf-gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.3/specs
> Configured with: ../src/configure -v 
> --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr 
> --mandir=/usr/share/man --infodir=/usr/share/info 
> --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared 
> --with-system-zlib --enable-nls --without-included-gettext 
> --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm 
> --enable-objc-gc i386-linux
> Thread model: posix
> gcc version 3.2.3 20030221 (Debian prerelease)


Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list