All of lore.kernel.org
 help / color / mirror / Atom feed
* Errors Building openjdk-8 on dunfell
@ 2020-06-30  5:13 Robert Joslyn
  2020-06-30 21:47 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Joslyn @ 2020-06-30  5:13 UTC (permalink / raw)
  To: Yocto discussion list

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'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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [yocto] Errors Building openjdk-8 on dunfell
  2020-06-30  5:13 Errors Building openjdk-8 on dunfell Robert Joslyn
@ 2020-06-30 21:47 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2020-06-30 21:47 UTC (permalink / raw)
  To: Robert Joslyn, Yocto discussion list



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
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-30 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30  5:13 Errors Building openjdk-8 on dunfell Robert Joslyn
2020-06-30 21:47 ` [yocto] " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.