View Issue Details

IDProjectCategoryView StatusLast Update
0001538channel: kernel/el9kernel-mlpublic2025-07-28 15:15
Reportertoracat Assigned Totoracat  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0001538: Build failure: kernel-ml-6.15.3 for aarch64, el9
Descriptionkernel-ml-6.15.3 for aarch64 fails to build with the following error:

[quote]
In file included from /builddir/build/BUILD/kernel-ml-6.15.3/linux-6.15.3-1.el9.elrepo.aarch64/tools/arch/arm64/include/uapi/asm/unistd.h:2,
                 from /usr/include/sys/syscall.h:24,
                 from /usr/include/syscall.h:1,
                 from jvmti/jvmti_agent.c:36:
libperf/arch/arm64/include/generated/uapi/asm/unistd_64.h:1: error: unterminated #ifndef
    1 | #ifndef _UAPI_ASM_UNISTD_64_H
      |
  CC /builddir/build/BUILD/kernel-ml-6.15.3/linux-6.15.3-1.el9.elrepo.aarch64/tools/perf/libperf/evsel.o
make[3]: *** [/builddir/build/BUILD/kernel-ml-6.15.3/linux-6.15.3-1.el9.elrepo.aarch64/tools/build/Makefile.build:86: jvmti/jvmti_agent.o] Error 1
make[2]: *** [Makefile.perf:946: jvmti/jvmti-in.o] Error 2
[/quote]
TagsNo tags attached.

Activities

toracat

2025-06-19 14:39

administrator   ~0010455

Last edited: 2025-06-19 18:09

$ view tools/arch/arc/include/uapi/asm/unistd.h
/*
 * Non-typical guard macro to enable inclusion twice in ARCH sys.c
 * That is how the Generic syscall wrapper generator works
 */
#if !defined(_UAPI_ASM_ARC_UNISTD_H) || defined(__SYSCALL)
#define _UAPI_ASM_ARC_UNISTD_H

#define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_STAT64
.....

The above code is not new in 6.15.3, so might not be the cause of the error.

Also, no such error with x86_64 (el8, el9, and el10)

toracat

2025-06-19 18:52

administrator   ~0010456

INSTALL /builddir/build/BUILD/kernel-ml-6.15.3/linux-6.15.3-1.el9.elrepo.aarch64/tools/perf/libsubcmd/include/subcmd/exec-cmd.h
In file included from /usr/include/sys/syscall.h:24,
                 from /usr/include/syscall.h:1,
                 from jvmti/jvmti_agent.c:36:
/builddir/build/BUILD/kernel-ml-6.15.3/linux-6.15.3-1.el9.elrepo.aarch64/tools/arch/arm64/include/uapi/asm/unistd.h:2:10: fatal error: asm/unistd_64.h: No such file or directory
    2 | #include <asm/unistd_64.h>
      | ^~~~~~~~~~~~~~~~~
compilation terminated.

toracat

2025-06-19 21:45

administrator   ~0010457

Curiously, when the same mock build was run again (on the same build system), it went through. The build errors were seen but that did not stop the build.

For example,

make[3]: *** [/builddir/build/BUILD/kernel-ml-6.15.3/linux-6.15.3-1.el9.elrepo.aarch64/tools/build/Makefile.build:86: jvmti/jvmti_agent.o] Error 1
make[3]: *** Waiting for unfinished jobs....

make[2]: *** [Makefile.perf:946: jvmti/jvmti-in.o] Error 2
make[2]: *** Waiting for unfinished jobs....

But in the end,

Wrote: /builddir/build/RPMS/kernel-ml-tools-libs-devel-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-devel-matched-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-tools-libs-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-tools-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-modules-extra-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/bpftool-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/python3-perf-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/perf-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-headers-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-devel-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-core-6.15.3-1.el9.elrepo.aarch64.rpm
Wrote: /builddir/build/RPMS/kernel-ml-modules-6.15.3-1.el9.elrepo.aarch64.rpm
Child return code was: 0

toracat

2025-07-08 20:35

administrator   ~0010473

Same error with the build of kernel-ml-6.15.5-1.el9.elrepo.aarch64.

(1) mock build failed.
In file included from /builddir/build/BUILD/kernel-ml-6.15.5/linux-6.15.5-1.el9.elrepo.aarch64/tools/arch/arm64/include/uapi/asm/unistd.h:2,
                 from /usr/include/sys/syscall.h:24,
                 from /usr/include/syscall.h:1,
                 from jvmti/jvmti_agent.c:36:
libperf/arch/arm64/include/generated/uapi/asm/unistd_64.h:1: error: unterminated #ifndef
    1 | #ifndef _UAPI_ASM_UNISTD_64_H
      |
  CC /builddir/build/BUILD/kernel-ml-6.15.5/linux-6.15.5-1.el9.elrepo.aarch64/tools/perf/libperf/evsel.o
make[3]: *** [/builddir/build/BUILD/kernel-ml-6.15.5/linux-6.15.5-1.el9.elrepo.aarch64/tools/build/Makefile.build:86: jvmti/jvmti_agent.o] Error 1
make[2]: *** [Makefile.perf:946: jvmti/jvmti-in.o] Error 2
make[2]: *** Waiting for unfinished jobs....
  LD /builddir/build/BUILD/kernel-ml-6.15.5/linux-6.15.5-1.el9.elrepo.aarch64/tools/perf/libperf/libperf-in.o
  AR /builddir/build/BUILD/kernel-ml-6.15.5/linux-6.15.5-1.el9.elrepo.aarch64/tools/perf/libperf/libperf.a
make[1]: *** [Makefile.perf:290: sub-make] Error 2
make: *** [Makefile:76: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ObxqGW (%build)
RPM build errors:

(2) rpmbuild build succeeded.
(had to install java-devel)

(3) 2nd mock build succeeded (despite errors)

toracat

2025-07-24 18:35

administrator   ~0010510

The status remains the same as of 6.15.8 except that the compilation succeeds with the 1st mock run. There are "errors" but the build finishes fine regardless.

In file included from /usr/include/sys/syscall.h:24,
                 from /usr/include/syscall.h:1,
                 from jvmti/jvmti_agent.c:36:
/builddir/build/BUILD/kernel-ml-6.15.8/linux-6.15.8-1.el9.elrepo.aarch64/tools/arch/arm64/include/uapi/asm/unistd.h:2:10: fatal error: asm/unistd_64.h: No such file or directory
    2 | #include <asm/unistd_64.h>
      | ^~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/builddir/build/BUILD/kernel-ml-6.15.8/linux-6.15.8-1.el9.elrepo.aarch64/tools/build/Makefile.build:86: jvmti/jvmti_agent.o] Error 1
make[3]: *** Waiting for unfinished jobs....
  LINK dlfilters/dlfilter-show-cycles.so
  LINK dlfilters/dlfilter-test-api-v0.so

make[2]: *** [Makefile.perf:946: jvmti/jvmti-in.o] Error 2
make[2]: *** Waiting for unfinished jobs....

make[1]: *** [Makefile.perf:290: sub-make] Error 2

Child return code was: 0

toracat

2025-07-28 15:15

administrator   ~0010524

Marking this 'resolved' for now. If there's a new finding, will add a note here.

Issue History

Date Modified Username Field Change
2025-06-19 14:34 toracat New Issue
2025-06-19 14:34 toracat Status new => assigned
2025-06-19 14:34 toracat Assigned To => toracat
2025-06-19 14:39 toracat Note Added: 0010455
2025-06-19 18:09 toracat Note Edited: 0010455
2025-06-19 18:52 toracat Note Added: 0010456
2025-06-19 21:45 toracat Note Added: 0010457
2025-07-08 20:35 toracat Note Added: 0010473
2025-07-24 18:35 toracat Note Added: 0010510
2025-07-28 15:15 toracat Status assigned => resolved
2025-07-28 15:15 toracat Resolution open => fixed
2025-07-28 15:15 toracat Note Added: 0010524