<?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>2464</bug_id>
          
          <creation_ts>2012-05-16 17:10:50 +0000</creation_ts>
          <short_desc>gst-ffmpeg do_configure fails with &quot;C compiler test failed&quot;</short_desc>
          <delta_ts>2012-12-06 15:43:37 +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>multimedia</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mihai.lindner</cc>
    
    <cc>nitin.a.kamble</cc>
    
    <cc>radu.moisan</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>scott.a.garman</cc>
    
    <cc>sgw</cc>
    
    <cc>shane.wang</cc>
    
    <cc>song.liu</cc>
    
    <cc>valentin.popa</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21378</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-16 17:10:50 +0000</bug_when>
    <thetext>Autobuilder build 128:
http://autobuilder.yoctoproject.org:8010/builders/crownbay/builds/128

shell_34 Building crownbay core-image-lsb core-image-lsb-sdk failed
http://autobuilder.yoctoproject.org:8010/builders/crownbay/builds/128/steps/shell_34/logs/stdio

...

Build Configuration:
BB_VERSION        = &quot;1.15.2&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;crownbay&quot;
DISTRO            = &quot;poky-lsb&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20120515&quot;
TUNE_FEATURES     = &quot;m32 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        = &quot;master:12b4543ac9f54c0db0ee4a7ee546a71946a051f8&quot;
meta-intel        
meta-crownbay     
meta-tlk          = &quot;master:96df30005bbc8095713d03956e7f9058a2e97561&quot;
meta-qt3          = &quot;master:f8475d5c5935695d4d1dfff1d7be30f49e162094&quot;

...

gst-ffmpeg_0.10.13.bb, do_configure:

...

| Configuring included Libav instance with args --prefix=/usr
--disable-ffserver --disable-ffplay        --disable-ffmpeg
--disable-ffprobe --enable-static --enable-pic 	--disable-encoder=flac
--disable-decoder=cavs --disable-protocols --disable-devices
--disable-network --disable-hwaccels --disable-filters --disable-doc
--enable-optimizations --enable-postproc         --enable-gpl
--disable-yasm --enable-cross-compile         --target-os=linux
--arch=i586 --cross-prefix=i586-poky-linux- --target-os=linux
| i586-poky-linux-gcc is unable to create an executable file.
| C compiler test failed.
|
| If you think configure made a mistake, make sure you are using the latest
| version from Git.  If the latest version fails, report the problem to the
| libav-user@libav.org mailing list or IRC #libav on irc.freenode.net.
| Include the log file &quot;config.log&quot; produced by configure as this will help
| solving the problem.
| config.status: error: Failed to configure embedded Libav tree
| ERROR: oe_runconf failed
NOTE: package gst-ffmpeg-0.10.13-r3: task do_configure: Failed
ERROR: Task 5131
(/srv/home/pokybuild/yocto-autobuilder/yocto-slave/crownbay/build/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb,
do_configure) failed with exit code &apos;1&apos;

Nitin commented, &quot;I have seen similar failures with specific toolchain tunes. This is probably missing parameters observed by configure in CC or CFLAGS.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22006</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-06-11 19:21:54 +0000</bug_when>
    <thetext>*** Bug 2562 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22041</commentid>
    <comment_count>2</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2012-06-12 12:32:33 +0000</bug_when>
    <thetext> Anyone know how to reproduce this on a localmachine?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22175</commentid>
    <comment_count>3</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-06-14 06:25:27 +0000</bug_when>
    <thetext>I can&apos;t reproduce the failure.
Host: ubuntu 11.10 x86-64
meta-oe: 7f017cab0b3e4d5a4fc356eccd8eb8429b0531d0
meta-intel: bd00e28dd54b06a1f01f186be168d3af872f96d4

gst-ffmpeg do configure successfully.
Log:
-----------
...
Configuring included Libav instance with args --prefix=/usr --disable-ffserver --disable-ffplay        --disable-ffmpeg --disable-ffprobe --enable-static --enable-pic  --disable-encoder=flac --disable-decoder=cavs --disable-protocols --disable-devices     --disable-network --disable-hwaccels --disable-filters --disable-doc    --enable-optimizations --enable-postproc         --enable-gpl --disable-yasm --enable-cross-compile         --target-os=linux --arch=i586 --cross-prefix=i586-poky-linux- --target-os=linux
install prefix            /usr
source path               /mnt/sda8/poky-neil/build-crownbay/tmp/work/core2-poky-linux/gst-ffmpeg-0.10.13-r3/gst-ffmpeg-0.10.13/gst-libs/ext/libav                                                            
C compiler                i586-poky-linux-gcc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     no
yasm                      no
...
--------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22201</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-06-14 16:29:07 +0000</bug_when>
    <thetext>I&apos;ll try and reproduce in my environment today. If I can&apos;t, we may just have to close and open again if it comes back.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22282</commentid>
    <comment_count>5</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2012-06-18 12:39:14 +0000</bug_when>
    <thetext>@Darren: if you reproduce it, please reopen it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22329</commentid>
    <comment_count>6</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-06-19 10:16:51 +0000</bug_when>
    <thetext>Verified</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22407</commentid>
    <comment_count>7</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-06-20 11:22:36 +0000</bug_when>
    <thetext>this may be related to https://bugzilla.yoctoproject.org/show_bug.cgi?id=2496 I found there on and off reproducible usecases which lead me to belive that we may be dealing with a build system problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23029</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-07-12 07:14:02 +0000</bug_when>
    <thetext>This appeared on the autobuilder again. This time we have the config.log information which noted that the failure in the compiler generated the error:

| i586-poky-linux-gcc -O2 -pipe -g -feliminate-unused-debug-types -c -o /tmp/ffconf.UxFeMSHM.o /tmp/ffconf.LWWLpXcj.c
| i586-poky-linux-gcc -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o /tmp/ffconf.3lsoKUyC /tmp/ffconf.UxFeMSHM.o
| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/crownbay/build/build/tmp/sysroots/x86_64-linux/usr/bin/core2-poky-linux/../../libexec/core2-poky-linux/gcc/i586-poky-linux/4.7.2/ld: cannot find crtbegin.o: No such file or directory
| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/crownbay/build/build/tmp/sysroots/x86_64-linux/usr/bin/core2-poky-linux/../../libexec/core2-poky-linux/gcc/i586-poky-linux/4.7.2/ld: cannot find -lgcc
| collect2: error: ld returned 1 exit status

(from http://autobuilder.yoctoproject.org:8010/builders/crownbay/builds/168/steps/shell_48/logs/stdio)

so this looks like something removed some file from the sysroot that the configure script expected to be there. crtbegin.o is installed as part of libgcc which in this log was installed from sstate. Nothing ran between the start of gst-ffmpeg do_configure and the end of it which would account for libgcc being uninstalled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23030</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-07-12 07:27:02 +0000</bug_when>
    <thetext>Looking at the failed commandline, this is a sysroot relocation issue. There is no --sysroot option passed to the compiler commandline and there should be. I&apos;m guessing this is why this is failing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26190</commentid>
    <comment_count>10</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2012-10-04 06:31:14 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26231</commentid>
    <comment_count>11</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2012-10-04 14:28:48 +0000</bug_when>
    <thetext>Tested in the following configuration:

ubik@sentry:/mnt/Yo/yoctoproject/build$ bitbake gst-ffmpeg
Loading cache: 100% |########################################################################################################################################################################| ETA:  00:00:00
Loaded 1131 entries from dependency cache.

Build Configuration:
BB_VERSION        = &quot;1.16.0&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20121004&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:09aaad16be178bd675750aa6cfe7a373d7c9a8a6&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1362 tasks of which 1350 didn&apos;t need to be rerun and all succeeded.

Tested as a part of a core-image-lsb also.

No issues.

do_configure task is executed correctly.

Same on qemux86-64 machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26420</commentid>
    <comment_count>12</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-09 12:44:07 +0000</bug_when>
    <thetext>verified with: 

Build Configuration:
BB_VERSION        = &quot;1.16.0&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;crownbay&quot;
DISTRO            = &quot;poky-lsb&quot;
DISTRO_VERSION    = &quot;1.3&quot;
TUNE_FEATURES     = &quot;m32 core2&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;&lt;unknown&gt;:&lt;unknown&gt;&quot;
meta-qt3          = &quot;master:c86fb1727ae09526c442ec29fffde3f010aa70eb&quot;
meta-intel
meta-crownbay     = &quot;master:2bd31135bdcdda19dabdf69706d9a38d5872e1fe&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28055</commentid>
    <comment_count>13</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-06 15:43:37 +0000</bug_when>
    <thetext>*** Bug 3536 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>