Wind River Support Network

HomeDefectsLIN8-4609
Fixed

LIN8-4609 : gcc-cross_5.2.bb, do_compile failed on a fedora24 host/container

Created: Aug 30, 2016    Updated: Dec 3, 2018
Resolved Date: Dec 21, 2016
Found In Version: 8.0.0.9
Fix Version: 8.0.0.13
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

Problem Description
======================
gcc-cross_5.2.bb, do_compile failed on a fedora24 host/container

Logs
======================
| /buildarea1/Workspace/LIN8-4391-new/bitbake_build/tmp/work-shared/gcc-5.2.0-r0/gcc-5.2.0/gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
|     fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
|                      ^
| /buildarea1/Workspace/LIN8-4391-new/bitbake_build/tmp/work-shared/gcc-5.2.0-r0/gcc-5.2.0/gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
|        fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
|                         ^
| In file included from ./tm.h:48:0,
|                  from /buildarea1/Workspace/LIN8-4391-new/bitbake_build/tmp/work-shared/gcc-5.2.0-r0/gcc-5.2.0/gcc/c/gccspec.c:23:
| ././defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
|        fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
|                         ^
| In file included from ./tm.h:48:0,
|                  from /buildarea1/Workspace/LIN8-4391-new/bitbake_build/tmp/work-shared/gcc-5.2.0-r0/gcc-5.2.0/gcc/c/gccspec.c:23:
| ././defaults.h:1374:0: warning: "STANDARD_STARTFILE_PREFIX_1" redefined
|  #define STANDARD_STARTFILE_PREFIX_1 "/lib64/"
|
| ././defaults.h:1367:0: note: this is the location of the previous definition
|  #define STANDARD_STARTFILE_PREFIX_1 "/lib/"
|
| ././defaults.h:1375:0: warning: "STANDARD_STARTFILE_PREFIX_2" redefined
|  #define STANDARD_STARTFILE_PREFIX_2 "/usr/lib64/"
|
| ././defaults.h:1370:0: note: this is the location of the previous definition
|  #define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/"
|
| <command-line>:0:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wpedantic]
| /buildarea1/Workspace/LIN8-4391-new/bitbake_build/tmp/work-shared/gcc-5.2.0-r0/gcc-5.2.0/gcc/gcc.c:1295:48: note: in expansion of macro 'STANDARD_STARTFILE_PREFIX'
|  static char *const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| make[1]: Leaving directory '/buildarea1/Workspace/LIN8-4391-new/bitbake_build/tmp/work/x86_64-linux/gcc-cross-x86_64/5.2.0-r0/gcc-5.2.0/build.x86_64-linux.x86_64-wrs-linux/gcc'
| Makefile:4132: recipe for target 'all-gcc' failed
| make: *** [all-gcc] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /buildarea1/Workspace/LIN8-4391-new/bitbake_build/tmp/work/x86_64-linux/gcc-cross-x86_64/5.2.0-r0/temp/do_compile/log.do_compile.32688)
ERROR: Task 99 (/buildarea1/Workspace/LIN8-4391-new/layers/oe-core/meta/recipes-devtools/gcc/gcc-cross_5.2.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 432 tasks of which 424 didn't need to be rerun and 1 failed.
NOTE: Build completion summary:
NOTE:   do_populate_sysroot: 0% sstate reuse (0 setscene, 1 scratch)
NOTE:   do_package: 0% sstate reuse (0 setscene, 2 scratch)
NOTE:   do_populate_lic: 0% sstate reuse (0 setscene, 1 scratch)
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
/buildarea1/Workspace/LIN8-4391-new/layers/oe-core/meta/recipes-devtools/gcc/gcc-cross_5.2.bb, do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
build/Makefile:201: recipe for target 'elfutils' failed
make: *** [elfutils] Error 1

Expected Behavior
======================
No fail exist.

Workaround

N/A

Steps to Reproduce

On host:
(1) # configure --enable-board=qemux86-64 --enable-rootfs=glibc-std --enable-kernel=standard
(2) # make elfutils

Other Downloads


Live chat
Online