Bug 13074

Summary: It fails to build systemd on qemux86-64 with default tune x86-64-x32
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Kai Kang <kai.kang>
Component: coreAssignee: Kai Kang <kai.kang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 2.7   
Target Milestone: 2.7 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 13031    

Description Kai Kang 2018-12-12 02:48:10 UTC
It fails to build systemd on qemux86-64 with default tune x86-64-x32


MACHINE ??= "qemux86-64"
DEFAULTTUNE = 'x86-64-x32'
Comment 1 Kai Kang 2018-12-12 08:34:36 UTC
| FAILED: systemd-timesyncd@exe/src_timesync_timesyncd-manager.c.o                                                                                                                           
| x86_64-wrs-linux-gnux32-gcc -mx32 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/kkang/buildarea/WRLX-20181031/systemd-issc
| In file included from ../git/src/basic/macro.h:426,                                                                                                                                        
|                  from ../git/src/basic/alloc-util.h:9,                                                                                                                                     
|                  from ../git/src/timesync/timesyncd-manager.c:17:                                                                                                                          
| ../git/src/timesync/timesyncd-manager.c: In function 'manager_receive_response':                                                                                                            
| ../git/src/timesync/timesyncd-manager.c:607:19: error: format '%lli' expects argument of type 'long long int', but argument 11 has type 'long int' [-Werror=format=]                       
|          log_debug("interval/delta/delay/jitter/drift " USEC_FMT "s/%+.3fs/%.3fs/%.3fs/%+"PRI_TIMEX"ppm%s",                                                                                
|                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                     
|                    m->poll_interval_usec / USEC_PER_SEC, offset, delay, m->samples_jitter, m->drift_freq / 65536,                                         
|                                                                                            ~~~~~~~~~~~~~~~~~~~~~                                                                        
| ../git/src/basic/log.h:206:76: note: in definition of macro 'log_full_errno_realm'                                                                                                          
|                                               __FILE__, __LINE__, __func__, __VA_ARGS__) \                                                             
|                                                                             ^~~~~~~~~~~                                                                                                    
| ../git/src/basic/log.h:213:30: note: in expansion of macro 'log_full_errno'                                                                    
|  #define log_full(level, ...) log_full_errno((level), 0, __VA_ARGS__)                                                                            
|                               ^~~~~~~~~~~~~~                                                                                                                  
| ../git/src/basic/log.h:218:28: note: in expansion of macro 'log_full'                                                                                 
|  #define log_debug(...)     log_full(LOG_DEBUG,   __VA_ARGS__)                                              
|                             ^~~~~~~~                                                                                                                            
| ../git/src/timesync/timesyncd-manager.c:607:9: note: in expansion of macro 'log_debug'                                                                
|          log_debug("interval/delta/delay/jitter/drift " USEC_FMT "s/%+.3fs/%.3fs/%.3fs/%+"PRI_TIMEX"ppm%s",                              
|          ^~~~~~~~~                                                                                                                                                                         
| In file included from ../git/src/systemd/sd-daemon.h:21,                                                                                              
|                  from ../git/src/timesync/timesyncd-manager.c:15:                                                                                                                          
| /home/kkang/buildarea/WRLX-20181031/systemd-issues-Yocto/tmp-glibc/work/x86_64_x32-wrs-linux-gnux32/systemd/1_239-r0/recipe-sysroot/usr/include/inttypes.h:73:34: note: format string is dee
|  # define PRIi64  __PRI64_PREFIX "i"                                                                                                                                                       
| cc1: some warnings being treated as errors