Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

`__errno' in uClinux

Hi,

Does anyone know if I have to add some extra library for `__errno'? I am getting this compilation errors:

************************************************

mpeg2enc.bin(.text+0x16e3c): In function `log10':

/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libm/math/w_log10.c:104: undefined reference to `__errno'

mpeg2enc.bin(.text+0x16e4c):/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libm/math/w_log10.c:108: undefined reference to `__errno'

mpeg2enc.bin(.text+0x16e5c):/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libm/math/w_log10.c:94: undefined reference to `__errno'

mpeg2enc.bin(.text+0x16f88): In function `sqrt':

/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libm/math/w_sqrt.c:83: undefined reference to `__errno'

mpeg2enc.bin(.text+0x16f98):/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libm/math/w_sqrt.c:86: undefined reference to `__errno'

make: *** [mpeg2enc.gdb] Error 1

make: Target `all' not remade because of errors.

rm mpeg2enc.elf mpeg2enc.flt

**********************************************

Any help will be really appreciated.

Anika

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You use the wrong libraries. You have to use uClibc.

    Newlib does not support uClinux.