Fixed
Created: Jun 15, 2016
Updated: Sep 8, 2018
Resolved Date: Oct 10, 2016
Found In Version: 7.0.0.16
Fix Version: 7.0.0.22
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace
So after updating my wrlx7 installation to rcpl16 I've tried to build the lsi-acp34xx bsp.
My configure line is:
{INSTALL_PATH}/wrlinux-7/wrlinux/configure --enable-board=lsi-acp34xx --enable-kernel=preempt-rt --enable-rootfs=glibc_std --enable-parallel-pkgbuilds=6 --enable-jobs=6
After that I did a 'make fs' and build is failing with the following error:
| In file included from /buildtmp/bitbake_build/tmp/work/ppc476-nf-wrs-linux/db/6.0.30-r0/db-6.0.30/lang/cxx/cxx_channel.cpp:13:0:
| ./db_cxx.h:59:22: fatal error: iostream.h: No such file or directory
| #include <iostream.h>
| ^
| compilation terminated.
| Makefile:2458: recipe for target 'cxx_channel.lo' failed
| make: *** [cxx_channel.lo] Error 1
| make: *** Waiting for unfinished jobs....
| libtool: compile: powerpc-wrs-linux-gcc -m32 -msoft-float -tppc476 --sysroot=/buildtmp/bitbake_build/tmp/sysroots/lsi-acp34xx -c -I. -I/buildtmp/bitbake_build/tmp/work/ppc476-nf-wrs-linux/db/6.0.30-r0/db-6.0.30/src -D_GNU_SOURCE -D_REENTRANT -O2 -pipe -g /buildtmp/bitbake_build/tmp/work/ppc476-nf-wrs-linux/db/6.0.30-r0/db-6.0.30/src/xa/xa.c -o xa.o >/dev/null 2>&1
| In file included from /buildtmp/bitbake_build/tmp/work/ppc476-nf-wrs-linux/db/6.0.30-r0/db-6.0.30/lang/cxx/cxx_db.cpp:13:0:
| ./db_cxx.h:59:22: fatal error: iostream.h: No such file or directory
| #include <iostream.h>
| ^
| compilation terminated.
| Makefile:2460: recipe for target 'cxx_db.lo' failed
| make: *** [cxx_db.lo] Error 1
| ERROR: oe_runmake failed
| WARNING: /buildtmp/bitbake_build/tmp/work/ppc476-nf-wrs-linux/db/6.0.30-r0/temp/do_compile/run.do_compile.25954:1 exit 1 from
| exit 1
| ERROR: Function failed: do_compile (log file is located at /buildtmp/bitbake_build/tmp/work/ppc476-nf-wrs-linux/db/6.0.30-r0/temp/do_compile/log.do_compile.25954)
ERROR: Task 1241 (/buildtmp/layers/oe-core/meta/recipes-support/db/db_6.0.30.bb, do_compile) failed with exit code '1'
Apply the following change to wr-sdk-toolchain layer.
diff --git a/conf/machine/include/tune-ppc476.inc b/conf/machine/include/tune-ppc476.inc
index 4965fed..7f82090 100644
--- a/conf/machine/include/tune-ppc476.inc
+++ b/conf/machine/include/tune-ppc476.inc
@@ -28,4 +28,5 @@ PACKAGE_EXTRA_ARCHS_tune-ppc476-nf = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppc
# glibc configure options to get 476 specific library (for sqrt)
GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc476", "-with-cpu=476", "", d)}"
-
+export CPLUS_INCLUDE_PATH ?= "${STAGING_DIR_TARGET}/usr/include/c++/4.9.1/powerpc${TARGET_VENDOR}-linux"
+OE_TERMINAL_EXPORTS += "CPLUS_INCLUDE_PATH"