[ECOS] linking problem

Andrew Lunn andrew@lunn.ch
Tue Dec 30 11:22:00 GMT 2003


> ./install/lib/libtarget.a(infra_diag.o): In function `.LM38':
> infra_diag.o(.text+0x233): undefined reference to `___umoddi3'
> ./install/lib/libtarget.a(infra_diag.o): In function `.LM40':
> infra_diag.o(.text+0x27d): undefined reference to `___udivdi3'
> ./install/lib/libtarget.a(infra_diag.o): In function `.LM65':
> infra_diag.o(.text+0x437): undefined reference to `___umoddi3'
> ./install/lib/libtarget.a(infra_diag.o): In function `.LM66':
> infra_diag.o(.text+0x47d): undefined reference to `___udivdi3'
> ./install/lib/libtarget.a(infra_diag.o): In function `.LM141':
> infra_diag.o(.text+0x8ef): undefined reference to `___ashrdi3'
> ./install/lib/libtarget.a(infra_diag.o): In function `.LM162':
> infra_diag.o(.text+0xa4b): undefined reference to `___negdi2'
> collect2: ld returned 1 exit status
> 
> What could be the wrong?

These functions are in libgcc.a, which is part of the
toolchain. Normally the target.ld will pull this is, but maybe nobody
has used gcc3 on your particular target.

Look at how other targets build there target.ld

     Andrew

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