Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831221 - >=sys-apps/systemd-tmpfiles-249.9 fails to cross compile to arm and arm64 with: src/basic/format-util.h:34:4: error: #error Unknown timex member size
Summary: >=sys-apps/systemd-tmpfiles-249.9 fails to cross compile to arm and arm64 wit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-15 08:26 UTC by tt_1
Modified: 2022-01-15 16:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
compressed build log (build.log.gz,9.21 KB, application/gzip)
2022-01-15 08:26 UTC, tt_1
Details
compressed build log from aarch64 (build.log.gz,8.76 KB, application/gzip)
2022-01-15 08:33 UTC, tt_1
Details
output from emerge --info (armv7) (emerge-info,5.30 KB, text/plain)
2022-01-15 08:34 UTC, tt_1
Details
output from emerge --info (aarch64) (emerge-info,5.29 KB, text/plain)
2022-01-15 08:35 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2022-01-15 08:26:37 UTC
Created attachment 762184 [details]
compressed build log

v249.7 was just fine. here is the failure: 

FAILED: systemd-tmpfiles.standalone.p/src_tmpfiles_tmpfiles.c.o 
armv7a-unknown-linux-gnueabihf-gcc -Isystemd-tmpfiles.standalone.p -I. -I../systemd-stable-249.9 -Isrc/basic -I../systemd-stable-249.9/src/basic -Isrc/fundamental -I../systemd-stable-249.9/src/fundamental -Isrc/systemd -I../systemd-stable-249.9/src/systemd -I../systemd-stable-249.9/src/libsystemd/sd-bus -I../systemd-stable-249.9/src/libsystemd/sd-device -I../systemd-stable-249.9/src/libsystemd/sd-event -I../systemd-stable-249.9/src/libsystemd/sd-hwdb -I../systemd-stable-249.9/src/libsystemd/sd-id128 -I../systemd-stable-249.9/src/libsystemd/sd-journal -I../systemd-stable-249.9/src/libsystemd/sd-netlink -I../systemd-stable-249.9/src/libsystemd/sd-network -I../systemd-stable-249.9/src/libsystemd/sd-resolve -Isrc/shared -I../systemd-stable-249.9/src/shared -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-result -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=overflow -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wwrite-strings -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -ffast-math -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -O2 -pipe -fomit-frame-pointer -DSTANDALONE -MD -MQ systemd-tmpfiles.standalone.p/src_tmpfiles_tmpfiles.c.o -MF systemd-tmpfiles.standalone.p/src_tmpfiles_tmpfiles.c.o.d -o systemd-tmpfiles.standalone.p/src_tmpfiles_tmpfiles.c.o -c ../systemd-stable-249.9/src/tmpfiles/tmpfiles.c
In file included from ../systemd-stable-249.9/src/tmpfiles/tmpfiles.c:34:
../systemd-stable-249.9/src/basic/format-util.h:34:4: error: #error Unknown timex member size
   34 | #  error Unknown timex member size
      |    ^~~~~

please find the compressed build log attached
Comment 1 tt_1 2022-01-15 08:33:55 UTC
Created attachment 762185 [details]
compressed build log from aarch64

same with aarch64
Comment 2 tt_1 2022-01-15 08:34:51 UTC
Created attachment 762188 [details]
output from emerge --info (armv7)
Comment 3 tt_1 2022-01-15 08:35:39 UTC
Created attachment 762189 [details]
output from emerge --info (aarch64)
Comment 4 tt_1 2022-01-15 09:39:32 UTC
propably broken here by a fellow gentoo dev :)

https://github.com/systemd/systemd/commit/9a723ed6e80e3078969567f7cb551535d2fb00bd

reverting it makes the package compile just fine

Mike, can you please have a look at it? 

p.s: its cross compile only error
Comment 5 Larry the Git Cow gentoo-dev 2022-01-15 15:41:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=004bb293481c2301d634f514378ff59703fa7419

commit 004bb293481c2301d634f514378ff59703fa7419
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-01-15 15:40:40 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-01-15 15:41:33 +0000

    sys-apps/systemd-tmpfiles: backport cross compile fix
    
    Closes: https://bugs.gentoo.org/831221
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../files/249.9-cross-compile.patch                | 23 ++++++++++++++++++++++
 .../systemd-tmpfiles/systemd-tmpfiles-249.9.ebuild |  7 +++++--
 2 files changed, 28 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d1a9415f7213980ee9615c4ad4051f44561100f

commit 4d1a9415f7213980ee9615c4ad4051f44561100f
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-01-15 15:36:44 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-01-15 15:41:32 +0000

    sys-apps/systemd: backport cross compile fix
    
    Bug: https://bugs.gentoo.org/831221
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/files/249.9-cross-compile.patch | 23 +++++++++++++++++++++++
 sys-apps/systemd/systemd-249.9.ebuild            |  1 +
 2 files changed, 24 insertions(+)
Comment 6 tt_1 2022-01-15 15:51:14 UTC
thank you for the quick fix

=sys-fs/udev-249.9 is also affected
Comment 7 Larry the Git Cow gentoo-dev 2022-01-15 16:12:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=093f87aee2396c87ddecadbaa7027730f32f4516

commit 093f87aee2396c87ddecadbaa7027730f32f4516
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-01-15 16:12:10 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-01-15 16:12:10 +0000

    sys-boot/systemd-boot: backport cross compile fix
    
    Bug: https://bugs.gentoo.org/831221
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../systemd-boot/files/249.9-cross-compile.patch   | 23 ++++++++++++++++++++++
 sys-boot/systemd-boot/systemd-boot-249.9.ebuild    |  1 +
 2 files changed, 24 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=769425232fb53ec7c5cd1c0ddcc388f9198c7691

commit 769425232fb53ec7c5cd1c0ddcc388f9198c7691
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-01-15 16:10:26 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-01-15 16:10:26 +0000

    sys-fs/udev: backport cross compile fix
    
    Bug: https://bugs.gentoo.org/831221
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-fs/udev/files/249.9-cross-compile.patch | 23 +++++++++++++++++++++++
 sys-fs/udev/udev-249.9.ebuild               |  1 +
 2 files changed, 24 insertions(+)
Comment 8 Mike Gilbert gentoo-dev 2022-01-15 16:13:23 UTC
(In reply to tt_1 from comment #6)

Thanks, I didn't realize we added that version for udev.