Hi,<br><br>when cross compiling systemd-44 for my arm target I run into compile problem in src/util.c <br><br>src/util.c: In function 'parse_bytes':<br>src/util.c:3158:17: error: overflow in implicit constant conversion [-Werror=overflow]<br>
src/util.c:3159:17: error: overflow in implicit constant conversion [-Werror=overflow]<br>src/util.c:3160:17: error: overflow in implicit constant conversion [-Werror=overflow]<br>src/util.c: In function 'format_bytes':<br>
src/util.c:6179:17: error: overflow in implicit constant conversion [-Werror=overflow]<br>src/util.c:6180:17: error: overflow in implicit constant conversion [-Werror=overflow]<br>src/util.c:6181:17: error: overflow in implicit constant conversion [-Werror=overflow]<br>
<br>This code requires that off_t is defined as an 64bit off_t (off64_t) using -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64.<br><br>Just removing these lines also shows that there is code in src/conf-parser.c that assert sizeof(off_t) == sizeof(uint64_t).<br>
src/conf-parser.c: In function 'config_parse_bytes_off':<br>src/conf-parser.c:508:9: error: duplicate case value<br><br>Does systemd really require LFS support => off_t to be defined as off64_t?<br><br>Or could this code just modified to remove the assert_cc and modify the parse_bytes function to use an uint64_t instead off off64_t?<br>
<br>Thanks,<br>Peter<br><br><br>