* seccomp-filter.c compilation error when trying to compile emacs master
@ 2022-01-23 15:30 Sidharth Kshatriya
2022-01-23 15:31 ` Sidharth Kshatriya
0 siblings, 1 reply; 6+ messages in thread
From: Sidharth Kshatriya @ 2022-01-23 15:30 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]
I get the following compilation error when trying to compile emacs from the
master branch at the currently latest version
80098a2830cafe0a09f18c5186bf670a91828fef
I am using Ubuntu 20.04 on an x86_64 system. I'm using gcc 10.3.0
*Here is the error in detail:*
seccomp-filter.c: In function ‘main’:
seccomp-filter.c:243:25: error: ‘__SNR_faccessat2’ undeclared (first use in
this function)
243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
| ^~~~~~~~
seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
121 | int status = seccomp_rule_add_array (ctx, (action),
(syscall), \
| ^~~~~~~
seccomp-filter.c:243:25: note: each undeclared identifier is reported only
once for each function it appears in
243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
| ^~~~~~~~
seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
121 | int status = seccomp_rule_add_array (ctx, (action),
(syscall), \
| ^~~~~~~
make[1]: *** [Makefile:459: seccomp-filter] Error 1
...
...
[-- Attachment #2: Type: text/html, Size: 1485 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: seccomp-filter.c compilation error when trying to compile emacs master
2022-01-23 15:30 seccomp-filter.c compilation error when trying to compile emacs master Sidharth Kshatriya
@ 2022-01-23 15:31 ` Sidharth Kshatriya
2022-01-23 16:04 ` Sidharth Kshatriya
0 siblings, 1 reply; 6+ messages in thread
From: Sidharth Kshatriya @ 2022-01-23 15:31 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
P.S. I configure emacs for compilation like this:
./configure --disable-build-details --with-modules --with-cairo
--with-native-compilation --prefix=/home/abcxyz/emacs-build-master
--with-mailutils --with-xinput2 --with-pgtk --with-file-notification=inotify
On Sun, Jan 23, 2022 at 9:00 PM Sidharth Kshatriya <sid.kshatriya@gmail.com>
wrote:
> I get the following compilation error when trying to compile emacs from
> the master branch at the currently latest version
> 80098a2830cafe0a09f18c5186bf670a91828fef
>
> I am using Ubuntu 20.04 on an x86_64 system. I'm using gcc 10.3.0
>
>
> *Here is the error in detail:*
> seccomp-filter.c: In function ‘main’:
> seccomp-filter.c:243:25: error: ‘__SNR_faccessat2’ undeclared (first use
> in this function)
> 243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
> | ^~~~~~~~
> seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
> 121 | int status = seccomp_rule_add_array (ctx, (action),
> (syscall), \
> | ^~~~~~~
> seccomp-filter.c:243:25: note: each undeclared identifier is reported only
> once for each function it appears in
> 243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
> | ^~~~~~~~
> seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
> 121 | int status = seccomp_rule_add_array (ctx, (action),
> (syscall), \
> | ^~~~~~~
> make[1]: *** [Makefile:459: seccomp-filter] Error 1
> ...
> ...
>
[-- Attachment #2: Type: text/html, Size: 2133 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: seccomp-filter.c compilation error when trying to compile emacs master
2022-01-23 15:31 ` Sidharth Kshatriya
@ 2022-01-23 16:04 ` Sidharth Kshatriya
2022-01-24 15:58 ` Andrea Corallo
0 siblings, 1 reply; 6+ messages in thread
From: Sidharth Kshatriya @ 2022-01-23 16:04 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 2049 bytes --]
As a temporary workaround, I reverted
6d3608be88e1b30d2d10ee81f14dd485275c20ff [Seccomp: improve support for
newer versions of glibc (Bug#51073)] on my local emacs git and this fixes
the compilation issue. However, I haven't looked into solving the problem
properly.
On Sun, Jan 23, 2022 at 9:01 PM Sidharth Kshatriya <sid.kshatriya@gmail.com>
wrote:
> P.S. I configure emacs for compilation like this:
> ./configure --disable-build-details --with-modules --with-cairo
> --with-native-compilation --prefix=/home/abcxyz/emacs-build-master
> --with-mailutils --with-xinput2 --with-pgtk --with-file-notification=inotify
>
> On Sun, Jan 23, 2022 at 9:00 PM Sidharth Kshatriya <
> sid.kshatriya@gmail.com> wrote:
>
>> I get the following compilation error when trying to compile emacs from
>> the master branch at the currently latest version
>> 80098a2830cafe0a09f18c5186bf670a91828fef
>>
>> I am using Ubuntu 20.04 on an x86_64 system. I'm using gcc 10.3.0
>>
>>
>> *Here is the error in detail:*
>> seccomp-filter.c: In function ‘main’:
>> seccomp-filter.c:243:25: error: ‘__SNR_faccessat2’ undeclared (first use
>> in this function)
>> 243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
>> | ^~~~~~~~
>> seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
>> 121 | int status = seccomp_rule_add_array (ctx, (action),
>> (syscall), \
>> | ^~~~~~~
>> seccomp-filter.c:243:25: note: each undeclared identifier is reported
>> only once for each function it appears in
>> 243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
>> | ^~~~~~~~
>> seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
>> 121 | int status = seccomp_rule_add_array (ctx, (action),
>> (syscall), \
>> | ^~~~~~~
>> make[1]: *** [Makefile:459: seccomp-filter] Error 1
>> ...
>> ...
>>
>
[-- Attachment #2: Type: text/html, Size: 2820 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: seccomp-filter.c compilation error when trying to compile emacs master
2022-01-23 16:04 ` Sidharth Kshatriya
@ 2022-01-24 15:58 ` Andrea Corallo
2022-01-25 20:35 ` Philipp Stephani
0 siblings, 1 reply; 6+ messages in thread
From: Andrea Corallo @ 2022-01-24 15:58 UTC (permalink / raw)
To: Sidharth Kshatriya; +Cc: Philipp Stephani, emacs-devel
Same exact problem here, Ccing Philipp.
Thanks
Andrea
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: seccomp-filter.c compilation error when trying to compile emacs master
2022-01-24 15:58 ` Andrea Corallo
@ 2022-01-25 20:35 ` Philipp Stephani
2022-01-25 21:03 ` Andrea Corallo
0 siblings, 1 reply; 6+ messages in thread
From: Philipp Stephani @ 2022-01-25 20:35 UTC (permalink / raw)
To: Andrea Corallo; +Cc: Philipp Stephani, Sidharth Kshatriya, emacs-devel
> Am 24.01.2022 um 16:58 schrieb Andrea Corallo <akrl@sdf.org>:
>
> Same exact problem here, Ccing Philipp.
>
> Thanks
>
> Andrea
>
Commit c34d06e3d75bfbea2605e3ae292850175ce5c235 should hopefully fix this.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: seccomp-filter.c compilation error when trying to compile emacs master
2022-01-25 20:35 ` Philipp Stephani
@ 2022-01-25 21:03 ` Andrea Corallo
0 siblings, 0 replies; 6+ messages in thread
From: Andrea Corallo @ 2022-01-25 21:03 UTC (permalink / raw)
To: Philipp Stephani; +Cc: Philipp Stephani, Sidharth Kshatriya, emacs-devel
Philipp Stephani <p.stephani2@gmail.com> writes:
>> Am 24.01.2022 um 16:58 schrieb Andrea Corallo <akrl@sdf.org>:
>>
>> Same exact problem here, Ccing Philipp.
>>
>> Thanks
>>
>> Andrea
>>
>
> Commit c34d06e3d75bfbea2605e3ae292850175ce5c235 should hopefully fix this.
Works here, thanks!
Andrea
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-01-25 21:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-23 15:30 seccomp-filter.c compilation error when trying to compile emacs master Sidharth Kshatriya
2022-01-23 15:31 ` Sidharth Kshatriya
2022-01-23 16:04 ` Sidharth Kshatriya
2022-01-24 15:58 ` Andrea Corallo
2022-01-25 20:35 ` Philipp Stephani
2022-01-25 21:03 ` Andrea Corallo
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).