Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.35k stars 170 forks source link

Build error linux-tkg-pds 6.3 #730

Closed robson-66 closed 1 year ago

robson-66 commented 1 year ago
LD      .tmp_vmlinux.btf
ld: lib/cpumask.o: in function `cpumask_local_spread':
/home/robson/linux-tkg/linux-src-git/lib/cpumask.c:150: undefined reference to `sched_numa_find_nth_cpu'
  BTF     .btf.vmlinux.bin.o
pahole: .tmp_vmlinux.btf: Invalid argument
  LD      .tmp_vmlinux.kallsyms1
.btf.vmlinux.bin.o: file not recognized: file format not recognized
make[1]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 1
make: *** [Makefile:1252: vmlinux] Error 2
  DESCEND objtool
  DESCEND bpf/resolve_btfids
make[3]: 'install_headers' is up to date.
make[3]: 'install_headers' is up to date.
  CALL    scripts/checksyscalls.sh
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  LD      .tmp_vmlinux.btf
ld: lib/cpumask.o: in function `cpumask_local_spread':
/home/robson/linux-tkg/linux-src-git/lib/cpumask.c:150: undefined reference to `sched_numa_find_nth_cpu'
  BTF     .btf.vmlinux.bin.o
pahole: .tmp_vmlinux.btf: Invalid argument
  LD      .tmp_vmlinux.kallsyms1
.btf.vmlinux.bin.o: file not recognized: file format not recognized
make[1]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 1
make: *** [Makefile:1252: vmlinux] Error 2
==> ERROR: An error occurred in build().
Co3co commented 1 year ago

I am having this the issue.

Everest10 commented 1 year ago

OS: Fedora 38

image

rchris494 commented 1 year ago

mine was different

LD [M] drivers/gpu/drm/amd/amdgpu/amdgpu.o AR drivers/gpu/built-in.a AR drivers/built-in.a AR built-in.a AR vmlinux.a LD vmlinux.o OBJCOPY modules.builtin.modinfo GEN modules.builtin MODPOST Module.symvers ERROR: modpost: "sched_numa_hop_mask" [drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko] undefined! make[5]: [scripts/Makefile.modpost:136: Module.symvers] Error 1 make[4]: [Makefile:1980: modpost] Error 2 make[3]: [Makefile:357: __build_one_by_one] Error 2 make[2]: [debian/rules:8: build-arch] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[1]: [scripts/Makefile.package:109: deb-pkg] Error 2 make: [Makefile:1659: deb-pkg] Error 2 -> exit cleanup done

Everest10 commented 1 year ago

CC [M] fs/xfs/scrub/quota.o CC [M] fs/xfs/scrub/agheader_repair.o CC [M] fs/xfs/scrub/bitmap.o CC [M] fs/xfs/scrub/repair.o LD [M] fs/xfs/xfs.o make[2]: *** [Makefile:2028: .] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.4ct2Bb (%build)

RPM build warnings: source_date_epoch_from_changelog set but %changelog is missing

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4ct2Bb (%build) make[1]: [scripts/Makefile.package:69: rpm-pkg] Error 1 make: [Makefile:1659: rpm-pkg] Error 2 -> exit cleanup done

ptr1337 commented 1 year ago

Just install pahole-git or wait till arch will bring a update for pahole. This will fix it.

ptr1337 commented 1 year ago

@robson-66

PDS is currently not compiling if CONFIG_NUMA is enabled. Just disable it for now.

Everest10 commented 1 year ago

@robson-66

PDS is currently not compiling if CONFIG_NUMA is enabled. Just disable it for now.

Is there some additional problem or feature missing if disable this option to PDS ?

Everest10 commented 1 year ago

@robson-66

PDS is currently not compiling if CONFIG_NUMA is enabled. Just disable it for now.

NUM = n

got this error:

CC [M] fs/xfs/scrub/agheader_repair.o CC [M] fs/xfs/scrub/bitmap.o CC [M] fs/xfs/scrub/repair.o LD [M] fs/xfs/xfs.o make[2]: *** [Makefile:2028: .] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.mpPUQF (%build)

RPM build warnings: source_date_epoch_from_changelog set but %changelog is missing

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.mpPUQF (%build) make[1]: [scripts/Makefile.package:69: rpm-pkg] Error 1 make: [Makefile:1659: rpm-pkg] Error 2 -> exit cleanup done

Everest10 commented 1 year ago

btw there are several warnings trying to compile this release

https://pastebin.com/XRpMiAj2

ptr1337 commented 1 year ago

btw there are several warnings trying to compile this release

https://pastebin.com/XRpMiAj2

No idea then. The CachyOS PDS and BMQ Kernel went without problems, when disabling NUMA.

Edit: You can test this patch, there is a fix from torivc9 in: https://github.com/CachyOS/kernel-patches/blob/master/6.3/sched/0001-prjc-cachy.patch

robson-66 commented 1 year ago

For me on Arch Linux after disabling NUMA

# Set to "true" to disable NUMA, lowering overhead, but breaking CUDA/NvEnc on Nvidia equipped systems - Kernel default is "false"
_numadisable="true"

The construction went well.

But there was an entry in the log

kwi 26 12:19:01 pc kernel: memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=1 'systemd'
Everest10 commented 1 year ago

set _numadisable="true" cant compile on Fedora 38

same errors reported