Bug 7422 - mdadm fails to compile with x32 ABI
Summary: mdadm fails to compile with x32 ABI
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.8
Hardware: x86 x86_64
: Medium normal
Target Milestone: 1.9
Assignee: Aníbal Limón
QA Contact: Cristina Agurida
URL:
Whiteboard:
Depends on:
Blocks: 3437
  Show dependency tree
 
Reported: 2015-03-06 22:15 UTC by Mariano Lopez
Modified: 2015-05-27 11:12 UTC (History)
5 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 Mariano Lopez 2015-03-06 22:15:09 UTC
Trying to compile mdadm fails using x32.

| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-32', 'ix86-common', 'x32-linux', 'x86_64-linux-gnux32', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 48 CHECK_RUN_DIR=0
| x86_64-poky-linux-gnux32-gcc  -mx32 --sysroot=/home/mlopezva/poky/build/tmp/sysroots/qemux86-64 -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  -DBINDIR=\"/sbin\"  -c -o monitor.o monitor.c
| monitor.c: In function 'read_and_act':
| monitor.c:263:2: error: format '%ld' expects argument of type 'long int', but argument 5 has type '__time_t' [-Werror=format=]
|   dprintf("%s(%d): %ld.%06ld state:%s prev:%s action:%s prev: %s start:%llu\n",
|   ^
| monitor.c:263:2: error: format '%ld' expects argument of type 'long int', but argument 6 has type '__suseconds_t' [-Werror=format=]
| cc1: all warnings being treated as errors
| make: *** [monitor.o] Error 1
| ERROR: oe_runmake failed
| WARNING: /home/mlopezva/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/mdadm/3.3.2-r0/temp/run.do_compile.15008:1 exit 1 from
|   exit 1
Comment 2 Cristina Agurida 2015-05-27 11:12:22 UTC
Verified on master: 5170177719a93a69cc6c7c1218b3f26eed82d6e0