Bug 5657

Summary: libstdc++-v3: do_compile failed: fatal error: sys/sdt.h: No such file or directory
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: devtools / tool chainAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, meta.mr.watcher, meta.watcher, richard.purdie, sgw
Version: 1.6   
Target Milestone: 1.6 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2013-12-12 07:23:58 UTC
| In file included from /buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work-shared/gcc-4.8.1-r0/gcc-4.8.1/libstdc++-v3/libsupc++/eh_arm.cc:26:0:
| /buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work-shared/gcc-4.8.1-r0/gcc-4.8.1/libstdc++-v3/libsupc++/unwind-cxx.h:41:21: fatal error: sys/sdt.h: No such file or directory

We seldom can reproduce this error, RP had fix this issue for gcc, it seems that we also need the patch for libstdc++-v3:


Subject: [PATCH 31/35] Disable sdt.

We don't list dtrace in DEPENDS so we shouldn't be depending on this header.
It may or may not exist from preivous builds though. To be determinstic, disable
sdt.h usage always. This avoids build failures if the header is removed after configure
but before libgcc is compiled for example.

RP 2012/8/7

Signed-off-by: Khem Raj <raj.khem@gmail.com>

Upstream-Status: Inappropriate [hack]
---
 gcc/configure |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/configure b/gcc/configure
index d587993..8bc0c98 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -26792,12 +26792,12 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 
 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
 have_sys_sdt_h=no
-if test -f $target_header_dir/sys/sdt.h; then
-  have_sys_sdt_h=yes
-
-$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
-
-fi
+#if test -f $target_header_dir/sys/sdt.h; then
+#  have_sys_sdt_h=yes
+#
+#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
+#
+#fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 
 $as_echo "$have_sys_sdt_h" >&6; }


Will send the patch sooner.