<?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>7776</bug_id>
          
          <creation_ts>2015-05-18 11:42:54 +0000</creation_ts>
          <short_desc>libtool 2.4.2 -&gt; 2.4.4 upgrade broke shared library support on mips64</short_desc>
          <delta_ts>2015-11-17 10:15:13 +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.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips</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>major</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tanu Kaskinen">tanuk</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51068</commentid>
    <comment_count>0</comment_count>
    <who name="Tanu Kaskinen">tanuk</who>
    <bug_when>2015-05-18 11:42:54 +0000</bug_when>
    <thetext>Commit 871dc461b1dfc431c0c95743af1624b781262bce upgraded libtool from 2.4.2 to 2.4.4, and after that it seems that libtool hasn&apos;t been able to build shared libraries on mips64. Or at least kmod&apos;s build system thinks that libtool isn&apos;t able to do that, and I also noticed earlier that alsa-lib is producing static libraries on mips64, causing QA warnings (I didn&apos;t investigate that further when I saw those warnings).

Trying to build kmod with MACHINE=&quot;qemumips64&quot; fails in configure:

| checking if libtool supports shared libraries... no
| checking whether to build shared libraries... no
| checking whether to build static libraries... yes
| configure: error: --enable-static is not supported by kmod</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51069</commentid>
    <comment_count>1</comment_count>
    <who name="Tanu Kaskinen">tanuk</who>
    <bug_when>2015-05-18 11:44:18 +0000</bug_when>
    <thetext>Assigning to Khem, as instructed by Ross.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51071</commentid>
    <comment_count>2</comment_count>
    <who name="Tanu Kaskinen">tanuk</who>
    <bug_when>2015-05-18 11:50:38 +0000</bug_when>
    <thetext>Sorry, I should have pasted a bit more of the configure output... The first message probably points towards the root cause:

| checking whether the mips64-oe-linux-gcc  -meb -mabi=64 -mhard-float --sysroot=/home/tanu/oe-qemumips64/tmp-glibc/sysroots/qemumips64 linker (mips64-oe-linux-ld --sysroot=/home/tanu/oe-qemumips64/tmp-glibc/sysroots/qemumips64  -m elf) supports shared libraries... mips64-oe-linux-ld: unrecognised emulation mode: elf
| Supported emulations: elf64btsmip elf32btsmipn32 elf32ltsmipn32 elf32btsmip elf32ltsmip elf64ltsmip
| no
| checking dynamic linker characteristics... GNU/Linux ld.so
| checking how to hardcode library paths into programs... unsupported
| checking whether stripping libraries is possible... yes
| checking if libtool supports shared libraries... no
| checking whether to build shared libraries... no
| checking whether to build static libraries... yes
| configure: error: --enable-static is not supported by kmod</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55084</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-08 16:40:52 +0000</bug_when>
    <thetext>Just tried this again with current master.

NOTE: Running .../mips64-poky-linux/kmod/21+gitAUTOINC+114ec87c85-r0/git/configure  --build=x86_64-linux --host=mips64-poky-linux --target=mips64-poky-linux
[...]
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

It appears that either libtool 2.4.6, or something else, fixed this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56504</commentid>
    <comment_count>4</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-11-17 10:15:13 +0000</bug_when>
    <thetext>I have built recently MIPS64 and works.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>