bitbake build failed with exit code '1'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bitbake build failed with exit code '1'

247 Views
brijesh9
Contributor I

 

GETTING BELOW ERROR WHILE USING BITBAKE

followed below Steps

https://variwiki.com/index.php?title=Yocto_Toolchain_installation&release=mx8-yocto-mickledore-6.1.2...



In file included from ../config.h:125,
| from ../../elfutils-0.170/libelf/elf32_fsize.c:31:
| ../../elfutils-0.170/libelf/libelfP.h:47:30: error: ‘__elf32_msize’ specifies less restrictive attribute than its target ‘elf32_fsize’: ‘const’ [-Werror=missing-attributes]
| 47 | #define __elfw2_(Bits, Name) __elf##Bits##_##Name
| | ^~~~~
| ../../elfutils-0.170/lib/eu-config.h:60:26: note: in definition of macro ‘strong_alias’
| 60 | extern __typeof (name) aliasname __attribute__ ((alias (#name)));
| | ^~~~~~~~~
| ../../elfutils-0.170/libelf/elf32_fsize.c:68:1: note: in expansion of macro ‘local_strong_alias’
| 68 | local_strong_alias (elfw2(LIBELFBITS, fsize), __elfw2(LIBELFBITS, msize))
| | ^~~~~~~~~~~~~~~~~~
| ../../elfutils-0.170/libelf/libelfP.h:52:29: note: in expansion of macro ‘__elfw2_’
| 52 | #define __elfw2(Bits, Name) __elfw2_(Bits, Name)
| | ^~~~~~~~
| ../../elfutils-0.170/libelf/elf32_fsize.c:68:47: note: in expansion of macro ‘__elfw2’
| 68 | local_strong_alias (elfw2(LIBELFBITS, fsize), __elfw2(LIBELFBITS, msize))
| | ^~~~~~~
| gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/home/brijesh/var-fsl-yocto/build_xwayland/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/share/locale"' -I. -I../../elfutils-0.170/libelf -I.. -I. -I../../elfutils-0.170/libelf -I../../elfutils-0.170/lib -I.. -isystem/home/brijesh/var-fsl-yocto/build_xwayland/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -Wstack-usage=262144 -D_FORTIFY_SOURCE=2 -isystem/home/brijesh/var-fsl-yocto/build_xwayland/tmp/work/x86_64-linux/elfutils-native/0.170-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o elf32_getphdr.o ../../elfutils-0.170/libelf/elf32_getphdr.c
| In file included from ../../elfutils-0.170/libelf/elf32_fsize.c:35:
| ../../elfutils-0.170/libelf/libelfP.h:48:28: note: ‘__elf32_msize’ target declared here
| 48 | #define elfw2_(Bits, Name) elf##Bits##_##Name
| | ^~~
| ../../elfutils-0.170/libelf/libelfP.h:53:27: note: in expansion of macro ‘elfw2_’
| 53 | #define elfw2(Bits, Name) elfw2_(Bits, Name)
| | ^~~~~~
| ../../elfutils-0.170/libelf/elf32_fsize.c:43:1: note: in expansion of macro ‘elfw2’
| 43 | elfw2(LIBELFBITS, fsize) (Elf_Type type, size_t count, unsigned int version)
| | ^~~~~
| cc1: all warnings being treated as errors
| make[2]: *** [Makefile:712: elf64_fsize.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| cc1: all warnings being treated as errors
| make[2]: *** [Makefile:712: elf32_fsize.o] Error 1
| make[1]: *** [Makefile:478: all-recursive] Error 1
| make: *** [Makefile:394: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/brijesh/var-fsl-yocto/build_xwayland/tmp/work/x86_64-linux/elfutils-native/0.170-r0/temp/log.do_compile.145440)
ERROR: Task (virtual:native:/home/brijesh/var-fsl-yocto/sources/poky/meta/recipes-devtools/elfutils/elfutils_0.170.bb:do_compile) failed with exit code '1'

0 Kudos
1 Reply

217 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Maybe someone of @variscite can help you.

If you are on EVK form NXP please download the User guide:

https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

 

Regards

 

0 Kudos