依次输入了
cd /home/book/100ask_stm32mp157_pro-sdk/
…/repo/repo sync -j4
cd /home/book/100ask_stm32mp157_pro-sdk/Buildroot_2020.02.x/
make clean
make 100ask_stm32mp157_pro_ddr512m_systemV_qt5_defconfig
make all -j32
最后经过较长时间后输出下列信息
In file included from include/lua_util.h:14,
** from bindings/lua_swupdate.c:10:**
…/…/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/lauxlib.h:125: note: this is the location of the previous definition
** #define luaL_newlib(L, l) (luaL_newlibtable(L, l), luaL_setfuncs(L, l, 0))**
** AR parser/lib.a**
** AR mongoose/lib.a**
** AR ipc/lib.a**
** LD bindings/built-in.o**
** AR corelib/lib.a**
handlers/rdiff_handler.c:15:10: fatal error: librsync.h: No such file or directory
** #include <librsync.h>**
** ^~~~~~~~~~~~**
compilation terminated.
scripts/Makefile.build:168: recipe for target ‘handlers/rdiff_handler.o’ failed
make[3]: *** [handlers/rdiff_handler.o] Error 1
Makefile:497: recipe for target ‘handlers’ failed
make[2]: *** [handlers] Error 2
make[2]: *** Waiting for unfinished jobs…
AR tools/lib.a
In file included from core/swupdate.c:39:
include/lua_util.h:27: warning: “luaL_newlib” redefined
#define luaL_newlib(L, l) (lua_newtable((L)),luaL_setfuncs((L), (l), 0))
In file included from include/lua_util.h:14,
from core/swupdate.c:39:
…/…/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/lauxlib.h:125: note: this is the location of the previous definition
#define luaL_newlib(L, l) (luaL_newlibtable(L, l), luaL_setfuncs(L, l, 0))
In file included from core/swupdate.c:30:
core/swupdate.c: In function ‘install_from_file’:
include/util.h:93:11: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘off_t’ {aka ‘long long int’} [-Wformat=]
"ERROR %s : %s : %d : " format,
^~~~~~~~~~~~~~~~~~~~~~~
include/util.h:111:2: note: in expansion of macro ‘swupdate_notify’
swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg)
^~~~~~~~~~~~~~~
core/swupdate.c:344:3: note: in expansion of macro ‘ERROR’
ERROR(“failed to scan for pos ‘%ld’!”, pos);
^~~~~
core/swupdate.c:344:36: note: format string is defined here
ERROR(“failed to scan for pos ‘%ld’!”, pos);
^~~~~~~~
%lld
In file included from core/swupdate.c:30:
include/util.h14: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘off_t’ {aka ‘long long int’} [-Wformat=]
"ERROR : " format, ## arg);
^
include/util.h:111:2: note: in expansion of macro ‘swupdate_notify’
swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg)
^~~~~~~~~~~~~~~
core/swupdate.c:344:3: note: in expansion of macro ‘ERROR’
ERROR(“failed to scan for pos ‘%ld’!”, pos);
^~~~~
core/swupdate.c:344:36: note: format string is defined here
ERROR(“failed to scan for pos ‘%ld’!”, pos);
^~~~~~~
%lld
In file included from core/swupdate.c:30:
include/util.h:104:13: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘off_t’ {aka ‘long long int’} [-Wformat=]
"[%s] : " format, func, ## arg);
^
include/util.h:111:2: note: in expansion of macro ‘swupdate_notify’
swupdate_notify(FAILURE, format, ERRORLEVEL, ## arg)
^~~~~~~~~~~~~~~
core/swupdate.c:344:3: note: in expansion of macro ‘ERROR’
ERROR(“failed to scan for pos ‘%ld’!”, pos);
^~~~~
core/swupdate.c:344:36: note: format string is defined here
ERROR(“failed to scan for pos ‘%ld’!”, pos);
~~^
%lld
LD core/built-in.o
package/pkg-generic.mk:266: recipe for target ‘/home/book/100ask_stm32mp157_pro-sdk/Buildroot_2020.02.x/output/build/swupdate-2019.11/.stamp_built’ failed
make[1]: *** [/home/book/100ask_stm32mp157_pro-sdk/Buildroot_2020.02.x/output/build/swupdate-2019.11/.stamp_built] Error 2
Makefile:84: recipe for target ‘_all’ failed
make: *** [_all] Error 2
后来经过GPT点播使用
make menuconfig
启用了librsync,编译通过,但是输出只有一个rootfs.tar文件,似乎和嵌入式Linux应用开发实验班的文档有些出入,这样是正常的吗,如果不正常应该是怎么样的呢,请老师给点播一下,万分感谢!