Bug#1042990: util-linux: FTBFS on hppa - #error Unknown target architecture
On 2023-08-05 3:47 p.m., Chris Hofstaedtler wrote: could you please forward your patch toutil-li...@vger.kernel.org including a proper Signed-Off-By line? Then upstream can apply it and downstreams do not need to carry the same patches over and over again. Patch is here: https://marc.info/?l=util-linux-ng=169142291102062=2 Regards, Dave anglin -- John David Anglin dave.ang...@bell.net
Bug#1042990: util-linux: FTBFS on hppa - #error Unknown target architecture
Hi Dave, * John David Anglin [230803]: [..] > The audit architecture defines for hppa are defined in > /usr/include/linux/audit.h: > > #define AUDIT_ARCH_PARISC (EM_PARISC) > #define AUDIT_ARCH_PARISC64 (EM_PARISC|__AUDIT_ARCH_64BIT) > > Please add the architecture defines for hppa to include/audit-arch.h. could you please forward your patch to util-li...@vger.kernel.org including a proper Signed-Off-By line? Then upstream can apply it and downstreams do not need to carry the same patches over and over again. * John David Anglin [230803]: > Patch. > > Regards, > Dave Anglin Thanks, Chris > --- ./include/audit-arch.h.save 2023-08-03 20:42:00.937401304 + > +++ ./include/audit-arch.h2023-08-03 20:53:40.755627981 + > @@ -57,6 +57,12 @@ > #else > # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 > #endif > +#elif __hppa__ > +#if __SIZEOF_POINTER__ == 4 > +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC > +#else > +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC64 > +#endif > #else > #error Unknown target architecture > #endif
Bug#1042990: util-linux: FTBFS on hppa - #error Unknown target architecture
Patch. Regards, Dave Anglin --- ./include/audit-arch.h.save 2023-08-03 20:42:00.937401304 + +++ ./include/audit-arch.h 2023-08-03 20:53:40.755627981 + @@ -57,6 +57,12 @@ #else # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 #endif +#elif __hppa__ +#if __SIZEOF_POINTER__ == 4 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC +#else +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC64 +#endif #else #error Unknown target architecture #endif signature.asc Description: PGP signature
Bug#1042990: util-linux: FTBFS on hppa - #error Unknown target architecture
Source: util-linux Version: 2.39.1-3 Severity: normal Tags: ftbfs Dear Maintainer, Build fails here: gcc -DHAVE_CONFIG_H -I. -include config.h -I./include -DLOCALEDIR=\"/usr/share/locale\" -D_PATH_RUNSTATEDIR=\"/run\" -D_PATH_SYSCONFSTATICDIR=\"/usr/lib\" -Wdate-time -D_FORTIFY_SOURCE=2 -fsigned-char -fno-common -Wall -Wextra -Waddress-of-packed-member -Wdiscarded-qualifiers -Wimplicit-function-declaration -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Werror=sequence-point -g -O2 -ffile-prefix-map=/<>=. -Wformat -Werror=format-security -c -o tests/helpers/test_enosys.o tests/helpers/test_enosys.c In file included from tests/helpers/test_enosys.c:30: ./include/audit-arch.h:61:6: error: #error Unknown target architecture 61 | #error Unknown target architecture | ^ make[5]: *** [Makefile:10077: tests/helpers/test_enosys.o] Error 1 See: https://buildd.debian.org/status/fetch.php?pkg=util-linux=hppa=2.39.1-3=1690505350=0 The audit architecture defines for hppa are defined in /usr/include/linux/audit.h: #define AUDIT_ARCH_PARISC (EM_PARISC) #define AUDIT_ARCH_PARISC64 (EM_PARISC|__AUDIT_ARCH_64BIT) Please add the architecture defines for hppa to include/audit-arch.h. Thanks, Dave Anglin -- System Information: Debian Release: trixie/sid APT prefers buildd-unstable APT policy: (500, 'buildd-unstable'), (500, 'unstable') Architecture: hppa (parisc64) Kernel: Linux 6.1.43+ (SMP w/4 CPU threads) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) -- debconf information: util-linux/noauto-with-nonzero-passnum: