g++ compilation terminated with error on Linaro-openembedded lamp image

Bug #1192953 reported by Soumya Basak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
In Progress
Undecided
Yvan Roux
Linaro OpenEmbedded
Fix Released
High
Andrew McDermott

Bug Description

on Linaro-openembedded lamp images:

http://snapshots.linaro.org/openembedded/pre-built/vexpress64/368

lamp builds: http://snapshots.linaro.org/openembedded/pre-built/vexpress64/368/vexpress64-openembedded_lamp-armv8_20130616-368.img.gz

the test suites validation of the c++ compiler :

https://wiki.linaro.org/Platform/QA/TestCases/OpenEmbedded#C.2B-.2B-_Compiler_in_SDK_Image

the compiler terminated with error:

the issue from the log report:

root@genericarmv8:~# g++ hello.cc -o hello
hello.cc:1:20: fatal error: iostream: No such file or directory
 #include <iostream>
                    ^
compilation terminated.
root@genericarmv8:~#

the issue reproduced with builds

Foundation image: http://snapshots.linaro.org/openembedded/pre-built/vexpress64/376/img-foundation.axf
Target image: http://snapshots.linaro.org/openembedded/pre-built/vexpress64/376/vexpress64-openembedded_lamp-armv8_20130623-376.img.gz

summary: - g++ compilation terminated with error on Linaro-openembedded with lamp
- image
+ g++ compilation terminated with error on Linaro-openembedded lamp image
Fathi Boudra (fboudra)
Changed in linaro-oe:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Andrew McDermott (frobware)
milestone: none → 13.06
Revision history for this message
Andrew McDermott (frobware) wrote :
Download full text (4.0 KiB)

If you look through the full output below you'll see that a leading '/' appears to be missing for the #include search paths.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "usr/include/c++/"
ignoring nonexistent directory "usr/include/c++//aarch64-oe-linux"
ignoring nonexistent directory "usr/include/c++//backward"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/aarch64-oe-linux/4.8.2/../../../../aarch64-oe-linux/include"

--------------------------------------------------------
Here's the full output from:

$ g++ -v -c hello.cc

Using built-in specs.
COLLECT_GCC=g++
Target: aarch64-oe-linux
Configured with: /scratch/java-benchmark/jenkins-setup/build/tmp-eglibc/work-shared/gcc-linaro-4.8-r2013.06/gcc-linaro-4.8-2013.06/configure --build=x86_64-linux --host=aarch64-oe-linux --target=aarch64-oe-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/gcc --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/scratch/java-benchmark/jenkins-setup/build/tmp-eglibc/sysroots/genericarmv8 --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=aarch64-oe-linux- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-sysroot=/ --with-build-sysroot=/scratch/java-benchmark/jenkins-setup/build/tmp-eglibc/sysroots/genericarmv8 --with-native-system-header-dir=/scratch/java-benchmark/jenkins-setup/build/tmp-eglibc/sysroots/genericarmv8/usr/include --with-gxx-include-dir=/usr/include/c++/ --enable-dependency-tracking --enable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.8.2 20130603 (prerelease) (Linaro GCC 4.8-2013.06-0~dev)
COLLECT_GCC_OPTIONS='-v' '-c' '-shared-libgcc'
 /usr/lib/gcc/gcc/aarch64-oe-linux/4.8.2/cc1plus -quiet -v -D_GNU_SOURCE hello.cc -quiet -dumpbase hello.cc -auxbase hello -version -o /tmp/ccdaZdX4.s
GNU C++ (Linaro GCC 4.8-2013.06-0~dev) version 4.8.2 20130603 (prerelease) (aarch64-oe-linux)
 compiled by GNU C version 4.8.2 20130603 (prerelease), GMP version 5.1.1, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "usr/include/c++/"
ignoring nonexistent directory "usr/include/c++//aarch64-oe-linux"
ignoring nonexistent directory "usr/include/c++//backward"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/aarch64-oe-linux/4.8.2/../../../../aarch64-oe-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/aarch64-oe-l...

Read more...

Revision history for this message
Fathi Boudra (fboudra) wrote :
Changed in linaro-oe:
status: Triaged → Fix Committed
Fathi Boudra (fboudra)
Changed in gcc-linaro:
assignee: nobody → Yvan Roux (yvan-roux)
description: updated
Revision history for this message
Yvan Roux (yvan-roux) wrote :

Issue raised upstream with an attached fix in February 2012 by Matthias klose :

http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00320.html

mailing list pinged...

Fathi Boudra (fboudra)
Changed in linaro-oe:
milestone: 13.06 → 13.07
Changed in linaro-oe:
status: Fix Committed → Fix Released
Yvan Roux (yvan-roux)
Changed in gcc-linaro:
status: New → In Progress
Revision history for this message
Yvan Roux (yvan-roux) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.