error building sandbox with debug on
my src is f9df22b002af99532b66360e08128e
now config it:
CROSS_COMPILE= ARCH=sandbox make sandbox_defconfig
Then add the the flowwing line in front of include/common.h
#define DEBUG
and run "CROSS_COMPILE= ARCH=sandbox make", this command output the flowwing message:
--------------------------------------
CC common/meminfo.ocommon/meminfo.c: In function 'display_meminfo':common/meminfo.c:12:49: error: '_stext' undeclared (first use in this function) common/meminfo.c:12:49: note: each undeclared identifier is reported only once for each function it appears in common/meminfo.c:12:57: error: '_etext' undeclared (first use in this function) common/meminfo.c:13:49: error: '__bss_start' undeclared (first use in this function) common/meminfo.c:13:62: error: '__bss_stop' undeclared (first use in this function)
make[1]: *** [common/meminfo.o] Error 1
make: *** [common] Error 2
--------------------------------------
is this a bug?
Signature · 9 lines
Best Regards, zzs _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 12 lines · zzs
my src is
f9df22b002af99532b66360e08128enow config it:
CROSS_COMPILE= ARCH=sandbox makesandbox_defconfigThen add the the flowwing line in front of
include/common.h#define DEBUGand run "CROSS_COMPILE= ARCH=sandbox make", this command output the flowwing message:
Quoted 10 lines
--------------------------------------
CCcommon/meminfo.ocommon/meminfo.c: In function 'display_meminfo':common/meminfo.c:12:49: error: '_stext' undeclared (first use in this function)common/meminfo.c:12:49: note: each undeclared identifier is reported only once for each function it appears incommon/meminfo.c:12:57: error: '_etext' undeclared (first use in this function)common/meminfo.c:13:49: error: '__bss_start' undeclared (first use in this function)common/meminfo.c:13:62: error: '__bss_stop' undeclared (first use in this function)
make[1]: *** [common/meminfo.o] Error 1
make: *** [common] Error 2
This is because ./arch/sandbox/board/barebox.lds.S is missing these variables. I don't know how much sense it makes to add these. You could just try and add them as done in the other linker scripts.
This is a bug in the sense that you should be able to compile with DEBUG defined, but otherwise you can just comment the lines out and ignore this. It will have no bad effect on the resulting binary.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 24 lines · Sascha Hauer
Quoted 12 lines · zzs
my src is
f9df22b002af99532b66360e08128enow config it:
CROSS_COMPILE= ARCH=sandbox makesandbox_defconfigThen add the the flowwing line in front of
include/common.h#define DEBUGand run "CROSS_COMPILE= ARCH=sandbox make", this command output the flowwing message:
Quoted 10 lines
--------------------------------------
CCcommon/meminfo.ocommon/meminfo.c: In function 'display_meminfo':common/meminfo.c:12:49: error: '_stext' undeclared (first use in this function)common/meminfo.c:12:49: note: each undeclared identifier is reported only once for each function it appears incommon/meminfo.c:12:57: error: '_etext' undeclared (first use in this function)common/meminfo.c:13:49: error: '__bss_start' undeclared (first use in this function)common/meminfo.c:13:62: error: '__bss_stop' undeclared (first use in this function)
make[1]: *** [common/meminfo.o] Error 1
make: *** [common] Error 2
Quoted 7 lines
This is because
./arch/sandbox/board/barebox.lds.Sis missing these variables. I don't know how much sense it makes to add these. You could just try and add them as done in the other linker scripts.This is a bug in the sense that you should be able to compile with DEBUG defined, but otherwise you can just comment the lines out and ignore this. It will have no bad effect on the resulting binary
on sandbox we should ignore this as the lds is based on the gcc one and we just insert section inside
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox