emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56549: closed (28.1; Compilation failure for lib-src/seccomp-filter.


From: GNU bug Tracking System
Subject: bug#56549: closed (28.1; Compilation failure for lib-src/seccomp-filter.c on x86_64 with 32 bit userspace)
Date: Sat, 16 Jul 2022 10:51:02 +0000

Your message dated Sat, 16 Jul 2022 12:50:44 +0200
with message-id <CC89D3B6-8CB7-41A2-834D-9E63E587C06F@gmail.com>
and subject line Re: bug#56549: 28.1; Compilation failure for 
lib-src/seccomp-filter.c on x86_64 with 32 bit userspace
has caused the debbugs.gnu.org bug report #56549,
regarding 28.1; Compilation failure for lib-src/seccomp-filter.c on x86_64 with 
32 bit userspace
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
56549: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56549
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 28.1; Compilation failure for lib-src/seccomp-filter.c on x86_64 with 32 bit userspace Date: Thu, 14 Jul 2022 08:46:25 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
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



--- End Message ---
--- Begin Message --- Subject: Re: bug#56549: 28.1; Compilation failure for lib-src/seccomp-filter.c on x86_64 with 32 bit userspace Date: Sat, 16 Jul 2022 12:50:44 +0200

> Am 15.07.2022 um 21:42 schrieb Ulrich Mueller <ulm@gentoo.org>:
> 
>>>>>> On Fri, 15 Jul 2022, Philipp Stephani wrote:
> 
>> I've now tried fixing this with commit 
>> db259d8fd369e6036df782d5fe51723a68220074.
> 
> Thank you, this fixes the problem for me.

Thanks, closing this bug then.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]