<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5657</bug_id>
          
          <creation_ts>2013-12-12 07:23:58 +0000</creation_ts>
          <short_desc>libstdc++-v3: do_compile failed: fatal error: sys/sdt.h: No such file or directory</short_desc>
          <delta_ts>2013-12-19 02:48:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39360</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-12-12 07:23:58 +0000</bug_when>
    <thetext>| 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&apos;t list dtrace in DEPENDS so we shouldn&apos;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 &lt;raj.khem@gmail.com&gt;

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 &quot;$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library&quot; &gt;&amp;5 
 $as_echo_n &quot;checking sys/sdt.h in the target C library... &quot; &gt;&amp;6; }
 have_sys_sdt_h=no
-if test -f $target_header_dir/sys/sdt.h; then
-  have_sys_sdt_h=yes
-
-$as_echo &quot;#define HAVE_SYS_SDT_H 1&quot; &gt;&gt;confdefs.h
-
-fi
+#if test -f $target_header_dir/sys/sdt.h; then
+#  have_sys_sdt_h=yes
+#
+#$as_echo &quot;#define HAVE_SYS_SDT_H 1&quot; &gt;&gt;confdefs.h
+#
+#fi
 { $as_echo &quot;$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h&quot; &gt;&amp;5 
 $as_echo &quot;$have_sys_sdt_h&quot; &gt;&amp;6; }


Will send the patch sooner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39485</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-12-19 02:48:27 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=fd0d15f0dcc047d7ffc7855f354467db669e5b84

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8a8a0c3a8311e6b8a5d4f228eb0d796c8ea46189</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>