AnsweredAssumed Answered

ATK Tool compilation error

Question asked by Arumugam Ramasamy on Feb 26, 2013

Hi,

I am trying to compile the ATK tool source under ubuntu using the same tool chain which I am using for LTIB. When I run the make file as mentioned in the application note AN3985, I am facing an error as attached. The log file is attached for better undersatnding. Need help to resolve this compilation error.

 

Thanks,

Arumugam R

 

arumugam@arumugam-laptop:~/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program$ make clean

make -C ram_kernel/ clean

make[1]: Entering directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/ram_kernel'

make[1]: Leaving directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/ram_kernel'

make -C fuse/ clean

make[1]: Entering directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/fuse'

make[1]: Leaving directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/fuse'

make -C flash/ clean

make[1]: Entering directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/flash'

make[1]: Leaving directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/flash'

make -C init/ clean

make[1]: Entering directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/init'

rm -rf *.o

make[1]: Leaving directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/init'

rm -f bin/*.elf

rm -f bin/*.map

arumugam@arumugam-laptop:~/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program$ make MCU=mx25 FLASH_TYPE=nand

start building ...

 

[Building initial ...]

make -C init/

make[1]: Entering directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/init'

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -o init.o init.s

make[1]: Leaving directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/init'

 

[Building RAM Kernel ...]

make -C ram_kernel/ all

make[1]: Entering directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/ram_kernel'

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc -o src/platform/mx25/src/bl_transreceiver.o src/platform/mx25/src/bl_transreceiver.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'src/platform/mx25/src/bl_transreceiver.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc src/platform/mx25/src/bl_transreceiver.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc -o src/platform/mx25/src/channel.o src/platform/mx25/src/channel.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'src/platform/mx25/src/channel.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc src/platform/mx25/src/channel.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc -o src/platform/mx25/src/platform.o src/platform/mx25/src/platform.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'src/platform/mx25/src/platform.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc src/platform/mx25/src/platform.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc -o src/platform/mx25/src/serial_downloader.o src/platform/mx25/src/serial_downloader.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'src/platform/mx25/src/serial_downloader.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc src/platform/mx25/src/serial_downloader.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc -o src/platform/mx25/src/usb_hwinterface_layer.o src/platform/mx25/src/usb_hwinterface_layer.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'src/platform/mx25/src/usb_hwinterface_layer.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc src/platform/mx25/src/usb_hwinterface_layer.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc -o src/platform/mx25/src/usb_transaction_layer.o src/platform/mx25/src/usb_transaction_layer.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'src/platform/mx25/src/usb_transaction_layer.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc src/platform/mx25/src/usb_transaction_layer.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc -o src/main.o src/main.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'src/main.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DREV_ -Isrc/platform/mx25/inc/ -I../global_inc src/main.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld  -r -o ramkernel.o  src/platform/mx25/src/bl_transreceiver.o  src/platform/mx25/src/channel.o  src/platform/mx25/src/platform.o  src/platform/mx25/src/serial_downloader.o  src/platform/mx25/src/usb_hwinterface_layer.o  src/platform/mx25/src/usb_transaction_layer.o src/main.o

make[1]: Leaving directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/ram_kernel'

 

[Building Flash Library ...]

make -C flash/ all

make[1]: Entering directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/flash'

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc -o nand_flash/src/flash_lib.o nand_flash/src/flash_lib.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'nand_flash/src/flash_lib.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc nand_flash/src/flash_lib.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc -o nand_flash/src/nand_bbt.o nand_flash/src/nand_bbt.c

nand_flash/src/nand_bbt.c: In function 'mark_bbt_region':

nand_flash/src/nand_bbt.c:760: warning: implicit declaration of function 'nand_update_bbt'

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'nand_flash/src/nand_bbt.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc nand_flash/src/nand_bbt.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc -o nand_flash/src/nand_device_info.o nand_flash/src/nand_device_info.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'nand_flash/src/nand_device_info.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc nand_flash/src/nand_device_info.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc -o nand_flash/src/nand_flash.o nand_flash/src/nand_flash.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'nand_flash/src/nand_flash.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc nand_flash/src/nand_flash.c >> .depend

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -c -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc -o nand_flash/src/nfc_base.o nand_flash/src/nfc_base.c

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -MM -MT 'nand_flash/src/nfc_base.o' -Wall -Wstrict-prototypes -Wno-trigraphs  -nostartfiles -O0  -nostdlib -static -feliminate-unused-debug-symbols -fno-strict-aliasing -fno-common -pipe -fno-builtin  -g -mapcs -mlittle-endian -msoft-float -mfpu=fpa -mcpu=arm926ej-s -DMCU_MX25 -DREV_ -Inand_flash/inc/  -I../global_inc nand_flash/src/nfc_base.c >> .depend

Start

nand_flash

nand_flash

End

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld  -r -o flashlib.o  nand_flash/src/flash_lib.o  nand_flash/src/nand_bbt.o  nand_flash/src/nand_device_info.o  nand_flash/src/nand_flash.o  nand_flash/src/nfc_base.o

make[1]: Leaving directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/flash'

 

[Building Fuse Library ...]

make -C fuse/ all

make[1]: Entering directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/fuse'

make[1]: *** No rule to make target `fuse_lib.o', needed by `all'.  Stop.

make[1]: Leaving directory `/home/arumugam/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program/fuse'

make: *** [all] Error 2

arumugam@arumugam-laptop:~/ATK_Tool/AdvancedToolKit1.71_Source_STD/device_program$

 


Original Attachment has been moved to: ATKTool_Compilation_log.zip

Outcomes