Re: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx undeclared
Hi Lars, Uninstalling libsseccomp-devel did the trick. I obviously need to sort out a more minimal build environment. Thanks, Loris Lars Viklund writes: > Hi, > > That recipe builds fine in my somewhat minimal Centos 7.9 container. > Looking at the build log, mine has a largely no-op seccomp.c as the system > doesn't have libseccomp(-devel) installed. > > I can reproduce the failure if I go and pollute my container with > libsseccomp-devel. > > When the build detects seccomp on the system, it builds that source file and > as it assumes the existence of syscalls that the ancient kernel headers on > 7.9 doesn't have, it breaks. > > Maybe consider either removing the development headers for libseccomp or > patch out the ineligible lines. > > // Lars Viklund, HPC2N > -- > From: easybuild-requ...@lists.ugent.be on > behalf of Loris Bennett > Sent: Wednesday, May 24, 2023 11:49 > To: easybuild@lists.ugent.be > Subject: Re: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx > undeclared > > Åke Sandgren writes: > >> Which OS is this? > > CentOS 7.9 > >> I see no problems on Ubuntu 20.04 or 22.04 >> >> >> From: easybuild-requ...@lists.ugent.be on >> behalf of Loris Bennett >> Sent: Wednesday, May 24, 2023 8:24 >> To: easybuild >> Subject: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx >> undeclared >> >> Hi, >> >> The following >> >> eb file-5.43-GCCcore-11.3.0.eb >> >> fails with >> >> In file included from seccomp.c:34: >> seccomp.c: In function enable_sandbox_full: >> seccomp.c:50:52: error: __NR_statx undeclared (first use in this >> function); did you mean __lxstat? >> 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), >> 0) == -1) \ >> |^~~~ >> seccomp.c:230:9: note: in expansion of macro ALLOW_RULE >> 230 | ALLOW_RULE(statx); >> | ^~ >> seccomp.c:50:52: note: each undeclared identifier is reported only once >> for each function it appears in >> 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), >> 0) == -1) \ >> |^~~~ >> seccomp.c:230:9: note: in expansion of macro ALLOW_RULE >> 230 | ALLOW_RULE(statx); >> | ^~ >> make[3]: *** [seccomp.o] Error 1 >> >> Any ideas what might be going wrong? >> >> Cheers, >> >> Loris >> >> -- >> Dr. Loris Bennett (Herr/Mr) >> ZEDAT, Freie Universität Berlin -- Dr. Loris Bennett (Herr/Mr) ZEDAT, Freie Universität Berlin
Re: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx undeclared
Hi, That recipe builds fine in my somewhat minimal Centos 7.9 container. Looking at the build log, mine has a largely no-op seccomp.c as the system doesn't have libseccomp(-devel) installed. I can reproduce the failure if I go and pollute my container with libsseccomp-devel. When the build detects seccomp on the system, it builds that source file and as it assumes the existence of syscalls that the ancient kernel headers on 7.9 doesn't have, it breaks. Maybe consider either removing the development headers for libseccomp or patch out the ineligible lines. // Lars Viklund, HPC2N From: easybuild-requ...@lists.ugent.be on behalf of Loris Bennett Sent: Wednesday, May 24, 2023 11:49 To: easybuild@lists.ugent.be Subject: Re: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx undeclared Åke Sandgren writes: > Which OS is this? CentOS 7.9 > I see no problems on Ubuntu 20.04 or 22.04 > > > From: easybuild-requ...@lists.ugent.be on > behalf of Loris Bennett > Sent: Wednesday, May 24, 2023 8:24 > To: easybuild > Subject: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx > undeclared > > Hi, > > The following > > eb file-5.43-GCCcore-11.3.0.eb > > fails with > > In file included from seccomp.c:34: > seccomp.c: In function enable_sandbox_full: > seccomp.c:50:52: error: __NR_statx undeclared (first use in this function); > did you mean __lxstat? > 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), > 0) == -1) \ > |^~~~ > seccomp.c:230:9: note: in expansion of macro ALLOW_RULE > 230 | ALLOW_RULE(statx); > | ^~ > seccomp.c:50:52: note: each undeclared identifier is reported only once for > each function it appears in > 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), > 0) == -1) \ > |^~~~ > seccomp.c:230:9: note: in expansion of macro ALLOW_RULE > 230 | ALLOW_RULE(statx); > | ^~ > make[3]: *** [seccomp.o] Error 1 > > Any ideas what might be going wrong? > > Cheers, > > Loris > > -- > Dr. Loris Bennett (Herr/Mr) > ZEDAT, Freie Universität Berlin -- Dr. Loris Bennett (Herr/Mr) ZEDAT, Freie Universität Berlin
Re: [easybuild] next EasyBuild conf call: Wed 23 May 2023 at 08:00 UTC (10:00 CEST)
Dear EasyBuilders, Notes for today's conf call are available at Notes are available at https://github.com/easybuilders/easybuild/wiki/Conference-call-notes-20230524 . Next call in planned for Wed 7 June 2023 at 15:00 UTC, see also https://github.com/easybuilders/easybuild/wiki/Conference-calls regards, Kenneth On 23/05/2023 20:02, Kenneth Hoste wrote: Dear EasyBuilders, The next EasyBuild conf call is planned for Wed 23 May 2023 at 08:00 UTC (10:00 CEST). You can join the conf call via https://tiny.cc/eb_conf_call . Current agenda: * overview of recent developments + outlook to next EasyBuild release; * progress on 2023a update of common toolchains; * Q Suggestions for additional topics are always welcome! More information on the EasyBuild conf calls is available at https://github.com/easybuilders/easybuild/wiki/Conference-calls . regards, Kenneth
Re: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx undeclared
Åke Sandgren writes: > Which OS is this? CentOS 7.9 > I see no problems on Ubuntu 20.04 or 22.04 > > > From: easybuild-requ...@lists.ugent.be on > behalf of Loris Bennett > Sent: Wednesday, May 24, 2023 8:24 > To: easybuild > Subject: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx > undeclared > > Hi, > > The following > > eb file-5.43-GCCcore-11.3.0.eb > > fails with > > In file included from seccomp.c:34: > seccomp.c: In function enable_sandbox_full: > seccomp.c:50:52: error: __NR_statx undeclared (first use in this function); > did you mean __lxstat? > 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), > 0) == -1) \ > |^~~~ > seccomp.c:230:9: note: in expansion of macro ALLOW_RULE > 230 | ALLOW_RULE(statx); > | ^~ > seccomp.c:50:52: note: each undeclared identifier is reported only once for > each function it appears in > 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), > 0) == -1) \ > |^~~~ > seccomp.c:230:9: note: in expansion of macro ALLOW_RULE > 230 | ALLOW_RULE(statx); > | ^~ > make[3]: *** [seccomp.o] Error 1 > > Any ideas what might be going wrong? > > Cheers, > > Loris > > -- > Dr. Loris Bennett (Herr/Mr) > ZEDAT, Freie Universität Berlin -- Dr. Loris Bennett (Herr/Mr) ZEDAT, Freie Universität Berlin
Re: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx undeclared
Which OS is this? I see no problems on Ubuntu 20.04 or 22.04 From: easybuild-requ...@lists.ugent.be on behalf of Loris Bennett Sent: Wednesday, May 24, 2023 8:24 To: easybuild Subject: [easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx undeclared Hi, The following eb file-5.43-GCCcore-11.3.0.eb fails with In file included from seccomp.c:34: seccomp.c: In function enable_sandbox_full: seccomp.c:50:52: error: __NR_statx undeclared (first use in this function); did you mean __lxstat? 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) == -1) \ |^~~~ seccomp.c:230:9: note: in expansion of macro ALLOW_RULE 230 | ALLOW_RULE(statx); | ^~ seccomp.c:50:52: note: each undeclared identifier is reported only once for each function it appears in 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) == -1) \ |^~~~ seccomp.c:230:9: note: in expansion of macro ALLOW_RULE 230 | ALLOW_RULE(statx); | ^~ make[3]: *** [seccomp.o] Error 1 Any ideas what might be going wrong? Cheers, Loris -- Dr. Loris Bennett (Herr/Mr) ZEDAT, Freie Universität Berlin
[easybuild] file-5.43-GCCcore-11.3.0.eb failure: __NR_statx undeclared
Hi, The following eb file-5.43-GCCcore-11.3.0.eb fails with In file included from seccomp.c:34: seccomp.c: In function enable_sandbox_full: seccomp.c:50:52: error: __NR_statx undeclared (first use in this function); did you mean __lxstat? 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) == -1) \ |^~~~ seccomp.c:230:9: note: in expansion of macro ALLOW_RULE 230 | ALLOW_RULE(statx); | ^~ seccomp.c:50:52: note: each undeclared identifier is reported only once for each function it appears in 50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) == -1) \ |^~~~ seccomp.c:230:9: note: in expansion of macro ALLOW_RULE 230 | ALLOW_RULE(statx); | ^~ make[3]: *** [seccomp.o] Error 1 Any ideas what might be going wrong? Cheers, Loris -- Dr. Loris Bennett (Herr/Mr) ZEDAT, Freie Universität Berlin