On Tue, 2020-07-28 at 08:30 +0200, Jeff Ithier wrote:
> Hi Robert,
> 
> Thanks for the tip, it seems to have worked and I've gotten past the 
> compilation step.
> 
> Unfortunately, now the build seems to be failing the do_package_rpm
> task 
> with the following error:
> 
> Exception: bb.process.ExecutionError: Execution of 
> '../build/tmp/work/aarch64-poky-linux/icedtea7-native/%-
> r0/temp/run.BUILDSPEC.153296' 
> failed with exit code 127:
> ../build/tmp/work/aarch64-poky-linux/icedtea7-native/%-
> r0/temp/run.BUILDSPEC.153296: 
> 106: rpmbuild: not found
> WARNING: exit code 127 from a shell command.
> 
> Did you also encounter this ?

My builds normally use ipk, but I tried rpm on one and did not see this
error when building icedtea7-native. Sorry!

Thanks,
Robert

> Cheers
> Jeff
> 
> On 7/28/20 5:28 AM, Robert Joslyn wrote:
> > 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 (#50181): https://lists.yoctoproject.org/g/yocto/message/50181
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]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to