building core-image-minimal for t1042d4rdb* fails building hypervisor
to make a long story (hopefully) short, i was trying to build both
the 32- and 64-bit versions of t1042d4rdb, and both failed in exactly the same place, trying to build the hypervisor recipe, so i'm open to suggestions (this is on a fully-updated fedora system):
Loading cache...done.
Loaded 2259 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.34.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "powerpc64-poky-linux" MACHINE = "t1042d4rdb-64b" DISTRO = "poky" DISTRO_VERSION = "2.3" TUNE_FEATURES = "m64 fpu-hard e5500" TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "master:754c03006943a219ffd417c36ab909b464f57f67"
meta-freescale = "master:bb7d8463edfa8e51c22170ecd6fd13d6c88f4aa9"
Initialising tasks...done.
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 448 of 479 (/home/rpjday/oe/dist/layers/meta-freescale/recipes-virtualization/hypervisor/hypervisor_git.bb:do_compile)
NOTE: recipe hypervisor-git-r3: task do_compile: Started
ERROR: hypervisor-git-r3 do_compile: oe_runmake failed
ERROR: hypervisor-git-r3 do_compile: Function failed: do_compile (log file is located at /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/temp/log.do_compile.18035)
ERROR: Logfile of failure stored in: /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/temp/log.do_compile.18035
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 CROSS_COMPILE=powerpc64-poky-linux- CC=powerpc64-poky-linux-gcc --sysroot=/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/recipe-sysroot HOSTCC=gcc O=output64
| make[1]: Entering directory '/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/output64'
| build: libos/lib/sprintf.c
| build: src/debug-stub.c
| build: src/gdb-stub.c
| build: src/shell.c
| echo "const unsigned char build_config_data[] = {" >bin/bld_cfg.c
| build: src/pamu.c
| build: src/ns16550.c
| od -txC -v .config | sed -e "s/^[0-9]*//" -e "s/ \([0-9a-f][0-9a-f]\)/0x\1,/g" -e "\$d" | sed -e "\$s/,$/,0x00};/" >>bin/bld_cfg.c
| build: src/pm.c
| mkdep: src/zlib.c
| build: bin/bld_cfg.c
| build: src/zlib.c
| /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c: In function 'sprintf':
| /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c:459:6: error: specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=format-truncation=]
| int ret = vsnprintf(buf, ULONG_MAX, str, args);
| ^~~
| cc1: all warnings being treated as errors
| /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/Makefile.libos:110: recipe for target 'bin/libos/sprintf.o' failed
| make[1]: *** [bin/libos/sprintf.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: Leaving directory '/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/output64'
| Makefile:75: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/temp/run.do_compile.18035:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/temp/log.do_compile.18035)NOTE: recipe hypervisor-git-r3: task do_compile: Failed
ERROR: Task (/home/rpjday/oe/dist/layers/meta-freescale/recipes-virtualization/hypervisor/hypervisor_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 471 tasks of which 470 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/rpjday/oe/dist/layers/meta-freescale/recipes-virtualization/hypervisor/hypervisor_git.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Re: building core-image-minimal fort1042d4rdb* failsbuilding hypervisor
Robert,
Quoted 11 lines
to make a long story (hopefully) short, i was trying to build both
the 32- and 64-bit versions of t1042d4rdb, and both failed in exactly the same place, trying to build the hypervisor recipe, so i'm open to suggestions (this is on a fully-updated fedora system):[...truncated...]
| /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c: In function 'sprintf': | /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c:459:6: error: specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=format-truncation=] | int ret = vsnprintf(buf, ULONG_MAX, str, args); | ^~~ | cc1: all warnings being treated as errors
I think gcc is complaining about ULONG_MAX being the size argument. Since vsnprintf() returns int, it can print at most LONG_MAX characters to the buffer. I'd probably just change that argument to LONG_MAX.
I believe the format-truncation flag is a gcc 7 thing.
Re: building core-image-minimal fort1042d4rdb* failsbuilding hypervisor
Quoted 14 lines · Kursad Oney CW
Robert,
Quoted 11 lines
to make a long story (hopefully) short, i was trying to build both
the 32- and 64-bit versions of t1042d4rdb, and both failed in exactly the same place, trying to build the hypervisor recipe, so i'm open to suggestions (this is on a fully-updated fedora system):[...truncated...]
| /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c: In function 'sprintf': | /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c:459:6: error: specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=format-truncation=] | int ret = vsnprintf(buf, ULONG_MAX, str, args); | ^~~ | cc1: all warnings being treated as errors
Quoted 5 lines
I think gcc is complaining about
ULONG_MAXbeing the size argument. Sincevsnprintf()returns int, it can print at mostLONG_MAXcharacters to the buffer. I'd probably just change that argument toLONG_MAX.I believe the format-truncation flag is a gcc 7 thing.
i suspected as much, but i'm curious as to why this error still
exists, and wasn't flagged by regular build testing. i don't just want to hack the code without hearing from others as to why this issue exists.
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Re: building core-image-minimalfort1042d4rdb*failsbuilding hypervisor
Robert,
Quoted 19 lines
Quoted 19 lines
Robert,
Quoted 11 lines
to make a long story (hopefully) short, i was trying to build both
the 32- and 64-bit versions of t1042d4rdb, and both failed in exactly the same place, trying to build the hypervisor recipe, so i'm open to suggestions (this is on a fully-updated fedora system):[...truncated...]
| /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c: In function 'sprintf': | /home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-linux/hypervisor/git-r3/git/libos/lib/sprintf.c:459:6: error: specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=format-truncation=] | int ret = vsnprintf(buf, ULONG_MAX, str, args); | ^~~ | cc1: all warnings being treated as errorsI think gcc is complaining about
ULONG_MAXbeing the size argument. Sincevsnprintf()returns int, it can print at mostLONG_MAXcharacters to the buffer. I'd probably just change that argument toLONG_MAX.
Quoted 6 lines
Quoted 1 line
I believe the format-truncation flag is a gcc 7 thing.
i suspected as much, but i'm curious as to why this error still
exists, and wasn't flagged by regular build testing. i don't just want to hack the code without hearing from others as to why this issue exists.
To take a wild guess, I would say the yocto version you are using probably upgraded to gcc 7 where this new flag became a default for -Werror. If you try an older branch or just use the recipe for gcc 6, the warning might go away.
That said the DNG team at NXP would be the definite authority on this.
Re: building core-image-minimalfort1042d4rdb*failsbuilding hypervisor
Hi all,
We will take a look the issue and fix it ASAP.
Best Regards,
Zhenhua
Quoted 52 lines
-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Kursad Oney CW
Sent: Sunday, July 09, 2017 11:24 PM
To: Robert P. J. Day <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] building core-image- minimalfort1042d4rdb*failsbuilding hypervisorRobert,
Quoted 10 lines
Quoted 10 lines
Robert,
Quoted 7 lines
to make a long story (hopefully) short, i was trying to build
both the 32- and 64-bit versions of t1042d4rdb, and both failed in exactly the same place, trying to build the hypervisor recipe, so i'm open to suggestions (this is on a fully-updated fedora system):[...truncated...]
|/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-
linux/hypervisor/git-r3/git/libos/lib/sprintf.c: In function 'sprintf':Quoted 1 line
Quoted 1 line
Quoted 1 line
|
/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-
linux/hypervisor/git-r3/git/libos/lib/sprintf.c:459:6: error: specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=format-truncation=]Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
| int ret = vsnprintf(buf, ULONG_MAX, str, args); | ^~~ | cc1: all warnings being treated as errorsI think gcc is complaining about
ULONG_MAXbeing the size argument. Sincevsnprintf()returns int, it can print at mostLONG_MAXcharacters to the buffer. I'd probably just change that argument to
LONG_MAX.Quoted 7 lines
Quoted 2 lines
I believe the format-truncation flag is a gcc 7 thing.
i suspected as much, but i'm curious as to why this error still
exists, and wasn't flagged by regular build testing. i don't just want to hack the code without hearing from others as to why this issue exists.To take a wild guess, I would say the yocto version you are using probably upgraded to gcc 7 where this new flag became a default for -Werror. If you try an older branch or just use the recipe for gcc 6, the warning might go away.
That said the DNG team at NXP would be the definite authority on this. --
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Re: building core-image-minimalfort1042d4rdb*failsbuilding hypervisor
Quoted 56 lines · Zhenhua Luo
Hi all,
We will take a look the issue and fix it ASAP.
Best Regards,
Zhenhua
Quoted 47 lines
-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Kursad Oney CW
Sent: Sunday, July 09, 2017 11:24 PM
To: Robert P. J. Day <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] building core-image- minimalfort1042d4rdb*failsbuilding hypervisorRobert,
Quoted 10 lines
Quoted 10 lines
Robert,
Quoted 7 lines
to make a long story (hopefully) short, i was trying to build
both the 32- and 64-bit versions of t1042d4rdb, and both failed in exactly the same place, trying to build the hypervisor recipe, so i'm open to suggestions (this is on a fully-updated fedora system):[...truncated...]
|/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-
linux/hypervisor/git-r3/git/libos/lib/sprintf.c: In function 'sprintf':Quoted 1 line
Quoted 1 line
Quoted 1 line
|
/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-poky-
linux/hypervisor/git-r3/git/libos/lib/sprintf.c:459:6: error: specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=format-truncation=]Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
| int ret = vsnprintf(buf, ULONG_MAX, str, args); | ^~~ | cc1: all warnings being treated as errorsI think gcc is complaining about
ULONG_MAXbeing the size argument. Sincevsnprintf()returns int, it can print at mostLONG_MAXcharacters to the buffer. I'd probably just change that argument to
LONG_MAX.Quoted 7 lines
Quoted 2 lines
I believe the format-truncation flag is a gcc 7 thing.
i suspected as much, but i'm curious as to why this error still
exists, and wasn't flagged by regular build testing. i don't just want to hack the code without hearing from others as to why this issue exists.To take a wild guess, I would say the yocto version you are using probably upgraded to gcc 7 where this new flag became a default for -Werror. If you try an older branch or just use the recipe for gcc 6, the warning might go away.
That said the DNG team at NXP would be the definite authority on this.
while fixing that hypervisor compile error, here's probably a dumb
question ... what do i need the hypervisor for, anyway? since it's listed in EXTRA_IMAGEDEPENDS, i can clearly temporarily remove it to get a build. as i'm new to this target and processor, what's it for?
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Re: building core-image-minimalfort1042d4rdb*failsbuilding hypervisor
Hi Robert,
The patch is submitted to fix the hypervisor build issue. https://patchwork.openembedded.org/patch/141881/.
The hypervisor is a layer of software that enables the efficient and secure partitioning of a multicore system. A system's CPUs, memory, and I/O devices can be divided into groupings or partitions, as shown in the figure below. Each partition is capable of executing a guest operating system. For more details, you can refer to the QorIQ SDK document which is available in http://tinyurl.com/ya57eeol.
Best Regards,
Zhenhua
Quoted 94 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Thursday, July 13, 2017 5:48 AM
To: Zhenhua Luo <[email protected]>
Cc: Kursad Oney CW <[email protected]>; [email protected]; C.r. Guo <[email protected]>
Subject: RE: [meta-freescale] building core-image- minimalfort1042d4rdb*failsbuilding hypervisorQuoted 28 lines · Zhenhua Luo
Hi all,
We will take a look the issue and fix it ASAP.
Best Regards,
Zhenhua
Quoted 19 lines
-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Kursad Oney CW
Sent: Sunday, July 09, 2017 11:24 PM
To: Robert P. J. Day <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] building core-image- minimalfort1042d4rdb*failsbuilding hypervisorRobert,
Quoted 7 lines
Quoted 7 lines
Robert,
Quoted 4 lines
to make a long story (hopefully) short, i was trying to
build both the 32- and 64-bit versions of t1042d4rdb, and both failed in exactly the same place, trying to build the hypervisor recipe, so i'm open to suggestions (this is on a fully-updatedfedora system):
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
[...truncated...]
|/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-po| ky-
linux/hypervisor/git-r3/git/libos/lib/sprintf.c: In function 'sprintf':Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
|
/home/rpjday/oe/builds/t1042d4rdb-64b/tmp/work/ppc64e5500-po| ky-
linux/hypervisor/git-r3/git/libos/lib/sprintf.c:459:6: error:
specified bound
18446744073709551615 exceeds maximum object size9223372036854775807
Quoted 13 lines
Quoted 13 lines
[-Werror=format-truncation=]
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
| int ret = vsnprintf(buf, ULONG_MAX, str, args); | ^~~ | cc1: all warnings being treated as errorsI think gcc is complaining about
ULONG_MAXbeing the size argument. Sincevsnprintf()returns int, it can print at mostLONG_MAXcharacters to the buffer. I'd probably just change that argument to
LONG_MAX.Quoted 3 lines
Quoted 2 lines
I believe the format-truncation flag is a gcc 7 thing.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
i suspected as much, but i'm curious as to why this error still
exists, and wasn't flagged by regular build testing. i don't just want to hack the code without hearing from others as to why this issue exists.To take a wild guess, I would say the yocto version you are using probably upgraded to gcc 7 where this new flag became a default for -Werror. If you try an older branch or just use the recipe for gcc 6, the
warning might go away.
Quoted 2 lines
Quoted 2 lines
That said the DNG team at NXP would be the definite authority on this.
while fixing that hypervisor compile error, here's probably a dumb question ...
what do i need the hypervisor for, anyway? since it's listed inEXTRA_IMAGEDEPENDS, i can clearly temporarily remove it to get a build. as i'm new to this target and processor, what's it for?rday
--
=================================================================
=======
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caTwitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday=================================================================
=======
Re: building core-image-minimalfort1042d4rdb*failsbuilding hypervisor
Quoted 11 lines · Zhenhua Luo
Hi Robert,
The patch is submitted to fix the hypervisor build issue.
https://patchwork.openembedded.org/patch/141881/.The hypervisor is a layer of software that enables the efficient and secure partitioning of a multicore system. A system's CPUs, memory, and I/O devices can be divided into groupings or partitions, as shown in the figure below. Each partition is capable of executing a guest operating system. For more details, you can refer to the QorIQ SDK document which is available in http://tinyurl.com/ya57eeol.
oh, i know what a hypervisor *is*, i'm just asking whether it's
*necessary* to simply get a bootable system for a t1042d4rdb target. since it's selected via EXTRA_IMAGEDEPENDS, the impression i get is that it's optional. or am i misunderstanding something?
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Re: building core-image-minimalfort1042d4rdb*failsbuilding hypervisor
Hypervisor is not necessary to boot the t1042d4rdb board.
Best Regards,
Zhenhua
Quoted 41 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Friday, July 14, 2017 2:41 AM
To: Zhenhua Luo <[email protected]>
Cc: Kursad Oney CW <[email protected]>; [email protected]; C.r. Guo <[email protected]>
Subject: RE: [meta-freescale] building core-image- minimalfort1042d4rdb*failsbuilding hypervisorQuoted 11 lines · Zhenhua Luo
Hi Robert,
The patch is submitted to fix the hypervisor build issue.
https://patchwork.openembedded.org/patch/141881/.The hypervisor is a layer of software that enables the efficient and secure partitioning of a multicore system. A system's CPUs, memory, and I/O devices can be divided into groupings or partitions, as shown in the figure below. Each partition is capable of executing a guest operating system. For more details, you can refer to the QorIQ SDK document which is available in http://tinyurl.com/ya57eeol.
oh, i know what a hypervisor *is*, i'm just asking whether it's
*necessary* to simply get a bootable system for a t1042d4rdb target. since it's selected viaEXTRA_IMAGEDEPENDS, the impression i get is that it's optional. or am i misunderstanding something?rday
--
=================================================================
=======
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caTwitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday=================================================================
=======