Closed lxwinspur closed 1 year ago
It seems that elfutils_0.185 seems to have an error. When I replace it with elfutils_0.187, the compilation passes.
elfutils_0.185
elfutils_0.187
| gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/media/georgeliu/inspur/work/lxwinspur/openbmc_1030.ips/build/p10bmc/tmp/work/x86_64-linux/elfutils-native/0.185-r1/recipe-sysroot-native/usr/share/locale"' -DDEBUGPRED=0 -DSRCDIR=\"/media/georgeliu/inspur/work/lxwinspur/openbmc_1030.ips/build/p10bmc/tmp/work/x86_64-linux/elfutils-native/0.185-r1/elfutils-0.185/src\" -DOBJDIR=\"/media/georgeliu/inspur/work/lxwinspur/openbmc_1030.ips/build/p10bmc/tmp/work/x86_64-linux/elfutils-native/0.185-r1/build/src\" -I. -I../../elfutils-0.185/src -I.. -I. -I../../elfutils-0.185/src -I../../elfutils-0.185/lib -I.. -I../../elfutils-0.185/src/../libelf -I../../elfutils-0.185/src/../libebl -I../../elfutils-0.185/src/../libdw -I../../elfutils-0.185/src/../libdwelf -I../../elfutils-0.185/src/../libdwfl -I../../elfutils-0.185/src/../libasm -isystem/media/georgeliu/inspur/work/lxwinspur/openbmc_1030.ips/build/p10bmc/tmp/work/x86_64-linux/elfutils-native/0.185-r1/recipe-sysroot-native/usr/include -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -D_FORTIFY_SOURCE=2 -isystem/media/georgeliu/inspur/work/lxwinspur/openbmc_1030.ips/build/p10bmc/tmp/work/x86_64-linux/elfutils-native/0.185-r1/recipe-sysroot-native/usr/include -O2 -pipe -c -o elflint.o ../../elfutils-0.185/src/elflint.c | ../../elfutils-0.185/src/elflint.c: In function ‘check_sections’: | ../../elfutils-0.185/src/elflint.c:4105:48: error: null pointer dereference [-Werror=null-dereference] | 4105 | idx < databits->d_size && ! bad; | | ~~~~~~~~^~~~~~~~ | cc1: all warnings being treated as errors | make[2]: *** [Makefile:801: elflint.o] Error 1 | make[1]: *** [Makefile:525: all-recursive] Error 1 | make: *** [Makefile:441: all] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. ERROR: Task (virtual:native:/media/georgeliu/inspur/work/lxwinspur/openbmc_1030.ips/meta/recipes-devtools/elfutils/elfutils_0.185.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 404 tasks of which 387 didn't need to be rerun and 1 failed.
@anoo1 @geissonator @mzipse FYI
Oops, It may be a problem with my compiling machine, please ignore this issue.
It seems that
elfutils_0.185
seems to have an error. When I replace it withelfutils_0.187
, the compilation passes.