Bug 5657 - libstdc++-v3: do_compile failed: fatal error: sys/sdt.h: No such file or directory
Summary: libstdc++-v3: do_compile failed: fatal error: sys/sdt.h: No such file or dire...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M2
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-12-12 07:23 UTC by Robert Yang
Modified: 2013-12-19 02:48 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.