On Mon, 2020-07-27 at 06:16 -0700, ithi...@gmail.com wrote: > Hi, > > I am trying to build openjdk-8-native, however its icedtea7 dependency > fails to build. > The error is a little hard to parse but it appears to be due to warnings > being treated as errors. > There are a lot of logs like the following: > > | In function ‘int fprintf(FILE*, const char*, ...)’, > | inlined from ‘void ADLParser::frame_parse()’ at > .../build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea- > 2.1.3/build/openjdk-boot/hotspot/src/share/vm/adlc/adlparse.cpp:1118:34: > | /usr/include/x86_64-linux-gnu/bits/stdio2.h:100:24: error: ‘%s’ > directive argument is null [-Werror=format-overflow=] > | 100 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, > __fmt, > | | > ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > | 101 | __va_arg_pack ()); > | | ~~~~~~~~~~~~~~~~~ > | cc1plus: all warnings being treated as errors > | make[7]: *** [.../build/tmp/work/x86_64-linux/icedtea7-native/2.1.3- > r1.0/icedtea-2.1.3/build/openjdk- > boot/hotspot/make/linux/makefiles/adlc.make:207: > ../generated/adfiles/adlparse.o] Error 1 > | make[7]: *** Waiting for unfinished jobs.... > | cc1plus: all warnings being treated as errors > > I am using the following bblayers: > * poky/meta > * poky/meta-poky > * meta-openembedded/meta-oe > * meta-java > > All layers are from the dunfell branch of their respective repositories > and are up to date. > > Can anybody offer any advice on how to successfully build the openjdk-8- > native recipe ? Anybody have it working themselves ? > > Cheers > Jeff >
I had the same problem about a month ago. My quick fix was to create an icedtea7-native_%.bbappend in my own layer to disable turning that warning into an error: CFLAGS_append = " -Wno-error=format-overflow" I assume it's due to the compiler on your build machine being newer (or at least different) than what the recipe is expecting. Robert
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50105): https://lists.yoctoproject.org/g/yocto/message/50105 Mute This Topic: https://lists.yoctoproject.org/mt/75821964/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-