Topics

compile error for ARM build


Ravi Sahita <rsahita@...>
 

that worked - thanks Ben!

Ravi


Benjamin Walsh <benjamin.walsh@...>
 

Hi Ravi,

anyone else run into this error?
You probably built for one target, then built for a different one
without cleaning up the first build.

e.g.

$ make <- x86 by default
$ make BOARD=qemu_cortex_m3 <- bombs

Be default, the output goes into the 'outdir' directory, and the builds
cannot coexist in there. You can chose where the output goes via the O=
makefile variable.

e.g.

$ make O=out-x86
$ make O=out-arm BOARD=qemu_cortex_m3

Or you can clean by doing 'make pristine' between them.

Cheers,
Ben


thanks,
Ravi

rlsahita(a)ubuntu:~/zeph/zephyr-project/samples/hello_world/microkernel$ make BOARD=qemu_cortex_m3 ARCH=arm
make[1]: Entering directory `/home/rlsahita/zeph/zephyr-project'
make[2]: Entering directory `/home/rlsahita/zeph/zephyr-project/samples/hello_world/microkernel/outdir'
Using /home/rlsahita/zeph/zephyr-project as source for kernel
GEN ./Makefile
CHK include/generated/version.h
CHK misc/generated/configs.c
In file included from /home/rlsahita/zeph/zephyr-project/arch/arm/core/offsets/offsets.c:37:0:
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h: In function 'nanoArchInit':
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h:168:2: warning: implicit declaration of function '_InterruptStackSetup' [-Wimplicit-function-declaration]
_InterruptStackSetup();
^
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h:169:2: warning: implicit declaration of function '_ExcSetup' [-Wimplicit-function-declaration]
_ExcSetup();
^
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h: In function 'fiberRtnValueSet':
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h:192:6: error: dereferencing pointer to incomplete type 'tESF {aka struct __esf}'
pEsf->a1 = value;
^
In file included from /home/rlsahita/zeph/zephyr-project/include/toolchain.h:29:0,
from /home/rlsahita/zeph/zephyr-project/kernel/nanokernel/include/gen_offset.h:86,
from /home/rlsahita/zeph/zephyr-project/arch/arm/core/offsets/offsets.c:36:
/home/rlsahita/zeph/zephyr-project/arch/arm/core/offsets/offsets.c: In function '_OffsetAbsSyms':
/home/rlsahita/zeph/zephyr-project/arch/arm/core/offsets/offsets.c:67:40: error: invalid application of 'sizeof' to incomplete type 'tESF {aka struct __esf}'
GEN_ABSOLUTE_SYM(__tESF_SIZEOF, sizeof(tESF));
^
/home/rlsahita/zeph/zephyr-project/include/toolchain/gcc.h:272:43: note: in definition of macro 'GEN_ABSOLUTE_SYM'
"\n\t.type\t" #name ",@object" : : "n"(value))
^
make[3]: *** [arch/arm/core/offsets/offsets.o] Error 1
make[2]: *** [prepare] Error 2
make[2]: Leaving directory `/home/rlsahita/zeph/zephyr-project/samples/hello_world/microkernel/outdir'
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/rlsahita/zeph/zephyr-project'
make: *** [all] Error 2
rlsahita(a)ubuntu:~/zeph/zephyr-project/samples/hello_world/microkernel$
--
Benjamin Walsh, SMTS
Wind River Rocket
Zephyr kernel maintainer
zephyrproject.org
www.windriver.com


Ravi Sahita <rsahita@...>
 

anyone else run into this error?

thanks,
Ravi

rlsahita(a)ubuntu:~/zeph/zephyr-project/samples/hello_world/microkernel$ make BOARD=qemu_cortex_m3 ARCH=arm
make[1]: Entering directory `/home/rlsahita/zeph/zephyr-project'
make[2]: Entering directory `/home/rlsahita/zeph/zephyr-project/samples/hello_world/microkernel/outdir'
Using /home/rlsahita/zeph/zephyr-project as source for kernel
GEN ./Makefile
CHK include/generated/version.h
CHK misc/generated/configs.c
In file included from /home/rlsahita/zeph/zephyr-project/arch/arm/core/offsets/offsets.c:37:0:
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h: In function 'nanoArchInit':
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h:168:2: warning: implicit declaration of function '_InterruptStackSetup' [-Wimplicit-function-declaration]
_InterruptStackSetup();
^
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h:169:2: warning: implicit declaration of function '_ExcSetup' [-Wimplicit-function-declaration]
_ExcSetup();
^
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h: In function 'fiberRtnValueSet':
/home/rlsahita/zeph/zephyr-project/arch/arm/include/nano_private.h:192:6: error: dereferencing pointer to incomplete type 'tESF {aka struct __esf}'
pEsf->a1 = value;
^
In file included from /home/rlsahita/zeph/zephyr-project/include/toolchain.h:29:0,
from /home/rlsahita/zeph/zephyr-project/kernel/nanokernel/include/gen_offset.h:86,
from /home/rlsahita/zeph/zephyr-project/arch/arm/core/offsets/offsets.c:36:
/home/rlsahita/zeph/zephyr-project/arch/arm/core/offsets/offsets.c: In function '_OffsetAbsSyms':
/home/rlsahita/zeph/zephyr-project/arch/arm/core/offsets/offsets.c:67:40: error: invalid application of 'sizeof' to incomplete type 'tESF {aka struct __esf}'
GEN_ABSOLUTE_SYM(__tESF_SIZEOF, sizeof(tESF));
^
/home/rlsahita/zeph/zephyr-project/include/toolchain/gcc.h:272:43: note: in definition of macro 'GEN_ABSOLUTE_SYM'
"\n\t.type\t" #name ",@object" : : "n"(value))
^
make[3]: *** [arch/arm/core/offsets/offsets.o] Error 1
make[2]: *** [prepare] Error 2
make[2]: Leaving directory `/home/rlsahita/zeph/zephyr-project/samples/hello_world/microkernel/outdir'
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/rlsahita/zeph/zephyr-project'
make: *** [all] Error 2
rlsahita(a)ubuntu:~/zeph/zephyr-project/samples/hello_world/microkernel$