OpenWrt Forum Archive

Topic: AT91 trunk compile failure

The content of this topic has been archived on 27 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi

I've been trying to compile trunk on a Ubuntu 8.04 based machine with an AT91 target but whatever I do it fails as follows:

main.c: In function 'AT91F_DisplayMenu':
main.c:202: warning: implicit declaration of function 'AT91F_MCI_Init'
main.c: In function 'main':
main.c:600: warning: passing argument 4 of 'svcBootTempo.Start' from incompatible pointer type
arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -Os -Wall -Iinclude -c -o objs/asm_isr.o        asm_isr.S
arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -Os -Wall -Iinclude -c -o objs/asm_mci_isr.o        asm_mci_isr.S
arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -Os -Wall -Iinclude -c -o objs/mci_device.o        mci_device.c
arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -Os -Wall -Iinclude -c -o objs/jump.o        jump.S
arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -Os -Wall -Iinclude -c -o objs/_udivsi3.o        _udivsi3.S
arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -Os -Wall -Iinclude -c -o objs/_umodsi3.o         _umodsi3.S
arm-openwrt-linux-uclibcgnueabi-ld -T elf32-littlearm.lds -Ttext 0 -n -o dfboot.out objs/cstartup_ram.o objs/at45.o objs/com.o objs/dataflash.o objs/div0.o objs/init.o objs/main.o objs/asm_isr.o objs/asm_mci_isr.o objs/mci_device.o objs/jump.o objs/_udivsi3.o objs/_umodsi3.o
objs/at45.o: In function `AT91F_DataFlashSendCommand':
at45.c:(.text+0x178): undefined reference to `__aeabi_uidiv'
at45.c:(.text+0x18c): undefined reference to `__aeabi_uidivmod'
objs/at45.o: In function `AT91F_PartialPageWrite':
at45.c:(.text+0x4a8): undefined reference to `__aeabi_uidiv'
at45.c:(.text+0x4f8): undefined reference to `__aeabi_uidivmod'
objs/at45.o: In function `AT91F_DataFlashWrite':
at45.c:(.text+0x5b8): undefined reference to `__aeabi_uidivmod'
at45.c:(.text+0x628): undefined reference to `__aeabi_uidiv'
objs/com.o: In function `number':
com.c:(.text+0x268): undefined reference to `__aeabi_uidiv'
com.c:(.text+0x27c): undefined reference to `__aeabi_uidivmod'
objs/mci_device.o: In function `AT91F_MCI_ReadBlock':
mci_device.c:(.text+0x200): undefined reference to `__aeabi_uidivmod'
make[7]: *** [dfboot] Error 1

It would appear a library is not visible to the linker.

I would be very grateful for help

Many thanks

PD

I have same experience at91 build dont compile after revision 14900....

I tested last working successfull compilation revision is 14800.  svn up -r 14800

Any suggestion?

The discussion might have continued from here.