Bug 5758 - mdadm: do_compile failed on mips64
Summary: mdadm: do_compile failed on mips64
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M3
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-01-26 09:07 UTC by Robert Yang
Modified: 2014-02-06 15:36 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2014-01-26 09:07:18 UTC
Set:

MACHINE = "qemumips64"

$ 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=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed-slots\"   -DUSE_PTHREADS   -c -o super-gpt.o super-gpt.c
| super-ddf.c: In function 'examine_vd':
| super-ddf.c:1414:10: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' [-Werror=format=]
|           be64_to_cpu(vc->blocks)/2);
|           ^
| super-ddf.c:1416:10: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' [-Werror=format=]
|           be64_to_cpu(vc->array_blocks)/2);
|           ^
| super-ddf.c: In function 'examine_pds':
| super-ddf.c:1466:10: error: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' [-Werror=format=]
|           be64_to_cpu(pd->config_size)>>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=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed-slots\"   -DUSE_PTHREADS   -c -o restripe.o restripe.c
| super-ddf.c: In function 'ddf_process_update':
| super-ddf.c:4542:5: error: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type '__u64' [-Werror=format=]
|      dprintf("BVD %u has %08x at %llu\n", 0,
|      ^
| super-ddf.c:4551:6: error: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type '__u64' [-Werror=format=]
|       dprintf("BVD %u has %08x at %llu\n", i,
|       ^
| super-ddf.c: In function 'ddf_activate_spare':
| super-ddf.c:5011:3: error: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' [-Werror=format=]
|    dprintf("BVD %u gets %u: %08x at %llu\n", 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=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdadm/failed-slots\"   -DUSE_PTHREADS   -c -o sysfs.o sysfs.c
| cc1: all warnings being treated as errors
| <builtin>: recipe for target 'super-ddf.o' failed 
| make: *** [super-ddf.o] Error 1
| make: *** Waiting for unfinished jobs....
| make: *** wait: No child processes.  Stop.
| ERROR: oe_runmake failed