all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Ulrich Mueller <ulm@gentoo.org>
Cc: 56549@debbugs.gnu.org
Subject: bug#56549: 28.1; Compilation failure for lib-src/seccomp-filter.c on x86_64 with 32 bit userspace
Date: Fri, 15 Jul 2022 17:58:45 +0200	[thread overview]
Message-ID: <CAArVCkSvQGQzbUJ8ATCsdO90sr2kdhF1bwXJuiLWmQ=dGvOu1g@mail.gmail.com> (raw)
In-Reply-To: <CAArVCkQ5ED-D0QtjrVmPX6kc6gVUOyVzNNuLLQZ3oSW_6ePKng@mail.gmail.com>

Am Fr., 15. Juli 2022 um 17:42 Uhr schrieb Philipp Stephani
<p.stephani2@gmail.com>:
>
> Am Do., 14. Juli 2022 um 08:47 Uhr schrieb Ulrich Mueller <ulm@gentoo.org>:
> >
> > Forwarding Gentoo bug https://bugs.gentoo.org/857906:
> >
> > i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe  seccomp-filter.c \
> >   -lseccomp  -o seccomp-filter
> > In file included from seccomp-filter.c:62:
> > seccomp-filter.c: In function 'main':
> > ../lib/verify.h:213:41: error: static assertion failed: "verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN && LONG_MAX == INT64_MAX)"
> >   213 | # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)
> >       |                                         ^~~~~~~~~~~~~~
> > ../lib/verify.h:273:20: note: in expansion of macro '_GL_VERIFY'
> >   273 | # define verify(R) _GL_VERIFY (R, "verify (" #R ")", -)
> >       |                    ^~~~~~~~~~
> > seccomp-filter.c:173:3: note: in expansion of macro 'verify'
> >   173 |   verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN
> >       |   ^~~~~~
> > ../lib/verify.h:213:41: error: static assertion failed: "verify (sizeof (void *) == 8)"
> >   213 | # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)
> >       |                                         ^~~~~~~~~~~~~~
> > ...
> > seccomp-filter.c:175:3: note: in expansion of macro 'verify'
> >   175 |   verify (sizeof (void *) == 8);
> >       |   ^~~~~~
> > make[1]: *** [Makefile:435: seccomp-filter] Error 1
> > make[1]: *** Waiting for unfinished jobs....
> > make[1]: Leaving directory '/var/tmp/portage/app-editors/emacs-28.1/work/emacs-28.1/lib-src'
> > make: *** [Makefile:436: lib-src] Error 2
> >
> > This is on an x86_64 machine with 32 bit userspace.
> >
> >
> > AFAICS, the problem is that lib-src/seccomp-filter.c (line 173) tests
> > for a 64 bit userspace:
> >
> >   verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN
> >           && LONG_MAX == INT64_MAX);
> >
> > However, lib_src/Makefile.in (line 203) tests for 64 bit hardware:
> >
> > ifeq ($(shell uname -m),x86_64)
> > [...]
> > SECCOMP_FILTER=1
> > endif
>
> Thanks for the report. Is there a good way to test for a 64-bit
> userspace? Probably we want both tests.

I've now tried fixing this with commit db259d8fd369e6036df782d5fe51723a68220074.





  reply	other threads:[~2022-07-15 15:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-14  6:46 bug#56549: 28.1; Compilation failure for lib-src/seccomp-filter.c on x86_64 with 32 bit userspace Ulrich Mueller
2022-07-15 15:42 ` Philipp Stephani
2022-07-15 15:58   ` Philipp Stephani [this message]
2022-07-15 19:42     ` Ulrich Mueller
2022-07-16 10:50       ` Philipp Stephani
2022-07-15 16:02   ` Ulrich Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAArVCkSvQGQzbUJ8ATCsdO90sr2kdhF1bwXJuiLWmQ=dGvOu1g@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=56549@debbugs.gnu.org \
    --cc=ulm@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.