<?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>5758</bug_id>
          
          <creation_ts>2014-01-26 09:07:18 +0000</creation_ts>
          <short_desc>mdadm: do_compile failed on mips64</short_desc>
          <delta_ts>2014-02-06 15:36:14 +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</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 M3</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>
          
          
          <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>40038</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-01-26 09:07:18 +0000</bug_when>
    <thetext>Set:

MACHINE = &quot;qemumips64&quot;

$ bitbake mdadm

| mips64-poky-linux-gcc  -meb -mabi=64 -mhard-float --sysroot=/buildarea/lyang1/yocto/testfec/tmp/sysroots/qemumips64 -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -ggdb -DSendmail=\&quot;&quot;/usr/sbin/sendmail -t&quot;\&quot; -DCONFFILE=\&quot;/etc/mdadm.conf\&quot; -DCONFFILE2=\&quot;/etc/mdadm/mdadm.conf\&quot; -DMAP_DIR=\&quot;/run/mdadm\&quot; -DMAP_FILE=\&quot;map\&quot; -DMDMON_DIR=\&quot;/run/mdadm\&quot; -DFAILED_SLOTS_DIR=\&quot;/run/mdadm/failed-slots\&quot;   -DUSE_PTHREADS   -c -o super-gpt.o super-gpt.c
| super-ddf.c: In function &apos;examine_vd&apos;:
| super-ddf.c:1414:10: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 3 has type &apos;__u64&apos; [-Werror=format=]
|           be64_to_cpu(vc-&gt;blocks)/2);
|           ^
| super-ddf.c:1416:10: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 3 has type &apos;__u64&apos; [-Werror=format=]
|           be64_to_cpu(vc-&gt;array_blocks)/2);
|           ^
| super-ddf.c: In function &apos;examine_pds&apos;:
| super-ddf.c:1466:10: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 2 has type &apos;__u64&apos; [-Werror=format=]
|           be64_to_cpu(pd-&gt;config_size)&gt;&gt;1);
|           ^
| mips64-poky-linux-gcc  -meb -mabi=64 -mhard-float --sysroot=/buildarea/lyang1/yocto/testfec/tmp/sysroots/qemumips64 -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -ggdb -DSendmail=\&quot;&quot;/usr/sbin/sendmail -t&quot;\&quot; -DCONFFILE=\&quot;/etc/mdadm.conf\&quot; -DCONFFILE2=\&quot;/etc/mdadm/mdadm.conf\&quot; -DMAP_DIR=\&quot;/run/mdadm\&quot; -DMAP_FILE=\&quot;map\&quot; -DMDMON_DIR=\&quot;/run/mdadm\&quot; -DFAILED_SLOTS_DIR=\&quot;/run/mdadm/failed-slots\&quot;   -DUSE_PTHREADS   -c -o restripe.o restripe.c
| super-ddf.c: In function &apos;ddf_process_update&apos;:
| super-ddf.c:4542:5: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 5 has type &apos;__u64&apos; [-Werror=format=]
|      dprintf(&quot;BVD %u has %08x at %llu\n&quot;, 0,
|      ^
| super-ddf.c:4551:6: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 5 has type &apos;__u64&apos; [-Werror=format=]
|       dprintf(&quot;BVD %u has %08x at %llu\n&quot;, i,
|       ^
| super-ddf.c: In function &apos;ddf_activate_spare&apos;:
| super-ddf.c:5011:3: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 6 has type &apos;__u64&apos; [-Werror=format=]
|    dprintf(&quot;BVD %u gets %u: %08x at %llu\n&quot;, i_sec, i_prim,
| mips64-poky-linux-gcc  -meb -mabi=64 -mhard-float --sysroot=/buildarea/lyang1/yocto/testfec/tmp/sysroots/qemumips64 -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -ggdb -DSendmail=\&quot;&quot;/usr/sbin/sendmail -t&quot;\&quot; -DCONFFILE=\&quot;/etc/mdadm.conf\&quot; -DCONFFILE2=\&quot;/etc/mdadm/mdadm.conf\&quot; -DMAP_DIR=\&quot;/run/mdadm\&quot; -DMAP_FILE=\&quot;map\&quot; -DMDMON_DIR=\&quot;/run/mdadm\&quot; -DFAILED_SLOTS_DIR=\&quot;/run/mdadm/failed-slots\&quot;   -DUSE_PTHREADS   -c -o sysfs.o sysfs.c
| cc1: all warnings being treated as errors
| &lt;builtin&gt;: recipe for target &apos;super-ddf.o&apos; failed 
| make: *** [super-ddf.o] Error 1
| make: *** Waiting for unfinished jobs....
| make: *** wait: No child processes.  Stop.
| ERROR: oe_runmake failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40204</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-02-06 15:36:14 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c914e2779da8915c3fb70083373ac619da561779</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>