<?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>6821</bug_id>
          
          <creation_ts>2014-10-09 19:32:47 +0000</creation_ts>
          <short_desc>alsa-utils fails to crosscompile</short_desc>
          <delta_ts>2014-10-30 11:00:48 +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>core</component>
          <version>1.6.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</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.7.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Petr Baudis">pasky</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>46251</commentid>
    <comment_count>0</comment_count>
    <who name="Petr Baudis">pasky</who>
    <bug_when>2014-10-09 19:32:47 +0000</bug_when>
    <thetext>I&apos;m trying to build the atmel-xplained-demo-image bitbake target, but this fails
through some dependencies on alsa-utils.

The surface failure is:

    ERROR: Task 2030 (/home/morix/devel/yocto/poky/meta/recipes-multimedia/alsa/alsa-utils_1.0.28.bb, do_configure) failed with exit code &apos;1&apos;

In the log file, the failure is...

checking for new_panel in -lpanelw... no
configure: error: panelw library not found

...and in more detail:

configure:8717: checking for new_panel in -lpanelw
configure:8742: arm-poky-linux-gnueabi-gcc  -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mtune=cortex-a5 --sysroot=/home/pasky/byz/pubnub-embeddedapi/atmel-sama5d3/poky/poky/build-atmel/tmp/sysroots/sama5d3xek -o conftest  -O2 -pipe -g -feliminate-unused-debug-types -I/home/pasky/byz/pubnub-embeddedapi/atmel-sama5d3/poky/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/include/ncursesw -I/home/pasky/byz/pubnub-embeddedapi/atmel-sama5d3/poky/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/include  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -L/home/pasky/byz/pubnub-embeddedapi/atmel-sama5d3/poky/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/lib conftest.c -lpanelw  -lncursesw -ltinfo -lasound -lm -ldl -lpthread &gt;&amp;5
/home/pasky/byz/pubnub-embeddedapi/atmel-sama5d3/poky/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/lib/libpanelw.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status

So the problem seems to be that arm (target) gcc is trying to link against x86_64 (host) libpanelw library... It seems to me it&apos;s correct to use the target gcc but I don&apos;t know why it&apos;s linking against the host library.

Earlier message of the configure script:

checking for curses compiler flags... -I/home/pasky/byz/pubnub-embeddedapi/atmel-sama5d3/poky/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/include/ncursesw -I/home/pasky/byz/pubnub-embeddedapi/atmel-sama5d3/poky/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/include

I think it&apos;s because:

configure:8108: checking for ncursesw5-config
configure:8124: found /home/pasky/byz/pubnub-embeddedapi/atmel-sama5d3/poky/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/bin/ncursesw5-config

I don&apos;t see ncursesw5-config in tmp/sysroots/sama5d3xek - how do you solve situations like that, should the configure script be passed explicit ncurses paths from the commandline?

(I&apos;m not alone seeing this bug, c.f. 2 days old SO question: http://stackoverflow.com/questions/26238663/yocto-cannot-configure-alsa-utils-on-ti-am335x)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46330</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2014-10-14 22:01:43 +0000</bug_when>
    <thetext>This is actually solved by http://patchwork.openembedded.org/patch/80727/ that should get merged for 1.7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46665</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-10-30 11:00:48 +0000</bug_when>
    <thetext>The aforementioned fix was merged into master and dizzy (for 1.7):

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

    </bug>

</bugzilla>