Yocto Project Discussions
 help / color / mirror / Atom feed
From: "Khem Raj" <raj.khem@gmail.com>
To: Robert Joslyn <robert.joslyn@redrectangle.org>,
	Yocto discussion list <yocto@yoctoproject.org>
Subject: Re: [yocto] Errors Building openjdk-8 on dunfell
Date: Tue, 30 Jun 2020 14:47:55 -0700	[thread overview]
Message-ID: <0bcecd8a-589a-41b8-bdcb-3fa62b57d874@gmail.com> (raw)
In-Reply-To: <0e53cff2f343fe6bd08ec502376ad1910b1d8039.camel@redrectangle.org>



On 6/29/20 10:13 PM, Robert Joslyn wrote:
> I'm trying to build openjdk-8 on dunfull and am getting some build errors.
> Using an Ubuntu 18.04 host, I get an error building the openjdk-8 recipe:
> 
> | g++: error: unrecognized command line option ‘-fmacro-prefix-
> map=/mnt/yocto/bionic/poky/build/tmp/work/core2-64-poky-linux/openjdk-
> 8/252-r0=/usr/src/debug/openjdk-8/252-r0’
> 
> This seems to imply I need a newer gcc which supports the -fmacro-prefix-
> map option. The README says I need gcc 6 or later on the host, but 18.04
> has gcc 7.5.0. Maybe the README is outdated?
> 
> I then tried building in an Ubuntu 20.04 container to see if that makes
> any difference. It fails in a different way while building icedtea7-
> native:
> 
> | /usr/include/x86_64-linux-gnu/bits/stdio2.h:100:24: error: ‘%s’
> directive argument is null [-Werror=format-overflow=]

I guess compiler on your host is too new for openjdk-8, perhaps you 
might get through by disabling Werror option to host cflags. You might 
have to dig the appropriate place to stick the option in.

> 
> I'm doing clean builds with both my 18.04 and 20.04 setups starting with
> separate, empty sstate-cache directories. Both builds are using poky
> defaults:
> 
> Build Configuration:
> BB_VERSION           = "1.46.0"
> BUILD_SYS            = "x86_64-linux"
> NATIVELSBSTRING      = "universal"
> TARGET_SYS           = "x86_64-poky-linux"
> MACHINE              = "qemux86-64"
> DISTRO               = "poky"
> DISTRO_VERSION       = "3.1.1"
> TUNE_FEATURES        = "m64 core2"
> TARGET_FPU           = ""
> meta
> meta-poky
> meta-yocto-bsp       = "dunfell:93ef4736915090ac9a2402916df8924ac4439490"
> meta-oe              = "dunfell:8a72d29e0876830ffd96b85d7d0308302eb07a5d"
> meta-java            = "dunfell:cf9604a4789801d9dfb0cb8ca134ff04b42ae161"
> 
> Is there some trick I'm missing to get clean builds out of the box? I can
> fix the 20.04 build by adding -Wno-error for that specific warning (and
> can send a patch if desired), but has anyone else had these issues? Any
> thoughts would be appreciated.
> 
> Thanks,
> Robert
> 
> 
> 
> 

      reply	other threads:[~2020-06-30 21:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-30  5:13 Errors Building openjdk-8 on dunfell Robert Joslyn
2020-06-30 21:47 ` Khem Raj [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0bcecd8a-589a-41b8-bdcb-3fa62b57d874@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=robert.joslyn@redrectangle.org \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox