DEBUG: Executing shell function do_compile
NOTE: make -j 96 -l 144.0
gcc -Wall -DLINUX_PPDEV -o am29f800.o -c am29f800.c
gcc -Wall -DLINUX_PPDEV -o jtag.o -c jtag.c
gcc -Wall -DLINUX_PPDEV -o k9s1208.o -c k9s1208.c
gcc -Wall -DLINUX_PPDEV -o mem_rdwr.o -c mem_rdwr.c
gcc -Wall -DLINUX_PPDEV -o pin2410.o -c pin2410.c
gcc -Wall -DLINUX_PPDEV -o sjf2410.o -c sjf2410.c
gcc -Wall -DLINUX_PPDEV -o strata32.o -c strata32.c
gcc -Wall -DLINUX_PPDEV -o ppt.o -c ppt.c
strata32.c: In function ‘Program28F128J3A’:
strata32.c:119:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
srcAddr=(U32)malloc(targetSize+4);
^
strata32.c:122:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
LoadImageFile((U8 *)srcAddr,targetSize);
^
strata32.c:126:58: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Strata_ProgFlash(i+targetAddress+targetOffset, *((U32 *)(srcAddr+i)));
^
am29f800.c: In function ‘ProgramAM29F800’:
strata32.c:61:9: warning: unused variable ‘temp’ [-Wunused-variable]
U32 temp;
^~~~
am29f800.c:71:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
srcAddress=(U32)malloc(targetSize+4);
^
am29f800.c:73:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
LoadImageFile((U8 *)srcAddress,targetSize);
^
mem_rdwr.c: In function ‘MRW_Menu’:
mem_rdwr.c:142:14: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘unsigned char *’ [-Wformat=]
scanf("%x %x",&addr,&dataByte);
~^ ~~~~~~~~~
%hhx
am29f800.c:97:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
AM29F800_ProgFlash(targetAddress+sectorOffset+i,*( (U16 *)(srcAddress+srcOffset+i) ) );
^
strata32.c: In function ‘Strata_ClearBlockLock’:
strata32.c:200:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
mem_rdwr.c:153:14: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘short unsigned int *’ [-Wformat=]
scanf("%x %x",&addr,&dataHW);
~^ ~~~~~~~
%hx
strata32.c: In function ‘Strata_ProgFlash’:
strata32.c:274:19: warning: unused variable ‘bSR7_2’ [-Wunused-variable]
unsigned long bSR7_2; // Write State Machine Status, higher 16bit, 8MB Intel Strate Flash ROM
^~~~~~
strata32.c:273:19: warning: unused variable ‘bSR7’ [-Wunused-variable]
unsigned long bSR7; // Write State Machine Status, lower 16bit, 8MB Intel Strate Flash ROM
^~~~
strata32.c:272:19: warning: unused variable ‘bSR4_2’ [-Wunused-variable]
unsigned long bSR4_2; // Erase and Clear Lock-bits Status, higher 16bit, 8MB Intel Strate Flash ROM
^~~~~~
strata32.c:271:19: warning: unused variable ‘bSR4’ [-Wunused-variable]
unsigned long bSR4; // Erase and Clear Lock-bits Status, lower 16bit, 8MB Intel Strate Flash ROM
^~~~
strata32.c:270:19: warning: unused variable ‘ReadStatus’ [-Wunused-variable]
unsigned long ReadStatus;
^~~~~~~~~~
strata32.c:269:19: warning: unused variable ‘ptargetAddr’ [-Wunused-variable]
volatile U32 *ptargetAddr;
^~~~~~~~~~~
am29f800.c: At top level:
strata32.c: At top level:
strata32.c:47:13: warning: ‘_WAIT’ declared ‘static’ but never defined [-Wunused-function]
static int _WAIT(void);
^~~~~
am29f800.c:24:12: warning: ‘BlankCheck’ declared ‘static’ but never defined [-Wunused-function]
static int BlankCheck(int targetAddr,int targetSize);
^~~~~~~~~~
k9s1208.c:49:1: warning: missing braces around initializer [-Wmissing-braces]
{
^
(void *)K9S1208_Program, "K9S1208 Program ",
{ }
(void *)K9S1208_PrintBlock, "K9S1208 Pr BlkPage ",
{ }
(void *)K9S1208_Read, "K9S1208 Read Flash ",
{ }
(void *)1, "Exit ",
{ }
0,0
{
};
}
k9s1208.c: In function ‘K9S1208_Menu’:
k9s1208.c:84:19: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘void *’ [-Wformat=]
printf("%2d:%s",i,function[i][1]);
~^ ~~~~~~~~~~~~~~
%p
k9s1208.c:86:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if((int)(function[i][0])==0)
^
strata32.c:251:5: warning: ‘Strata_BlankCheck’ defined but not used [-Wunused-function]
int Strata_BlankCheck(int targetAddr,int targetSize)
^~~~~~~~~~~~~~~~~
strata32.c:175:5: warning: ‘Strata_CheckBlockLock’ defined but not used [-Wunused-function]
int Strata_CheckBlockLock(int targetAddr)
^~~~~~~~~~~~~~~~~~~~~
strata32.c:37:12: warning: ‘error_program’ defined but not used [-Wunused-variable]
static int error_program=0; // Read Status Register, SR.4
^~~~~~~~~~~~~
k9s1208.c: In function ‘K9S1208_Program’:
k9s1208.c:112:8: warning: unused variable ‘spareBuf’ [-Wunused-variable]
U8 spareBuf[16]=
^~~~~~~~
sjf2410.c:71:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main(int argc,char *argv[])
^~~~
sjf2410.c: In function ‘main’:
sjf2410.c:115:15: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘void *’ [-Wformat=]
printf("%2d:%s",i,function[i]);
~^ ~~~~~~~~~~~
%p
sjf2410.c:117:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if((int)(function[i])==0)
^
sjf2410.c:73:10: warning: unused variable ‘num’ [-Wunused-variable]
char num=0;
^~~
ppt.c:8:10: fatal error: sys/io.h: No such file or directory
#include <sys/io.h>
^~~~~~~~~~
compilation terminated.
Makefile:12: recipe for target 'ppt.o' failed
make: *** [ppt.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed
WARNING: TOPDIR/build/tmp/work/aarch64-linux/sjf2410-linux-native/0.1+svnr4268-r1/temp/run.do_compile.45921:1 exit 1 from 'exit 1'
ERROR: Function failed: do_compile (log file is located at TOPDIR/build/tmp/work/aarch64-linux/sjf2410-linux-native/0.1+svnr4268-r1/temp/log.do_compile.45921)