RTXI / rtxi

Tutorials, FAQs, and more at http://rtxi.org/docs
GNU General Public License v3.0
53 stars 15 forks source link

Error 2 while Building RT kernel on Ubuntu 20.04 #139

Closed kgetech closed 3 years ago

kgetech commented 3 years ago

Basic Information:

RTXI Version: 2.3

Installed from Live CD?: I installed ubuntu from a live thumb, and followed the installation instructions on the RTXI website (rtxi.org/install)

Error Description:

What happened? Executed sudo ./install_rt_kernel.sh (had to use sudo to give the script the correct permissions). The script paused several times to ask if certain items were [N/m/y/?], I guessed to my best ability, and selected "m" for almost all of them. The Kernel Configuration popped up, I went through and set the correct flags. Hit "X" to exit, and selected to save the config. Script ends in "Error 2"

What was supposed to happen? I expected the script to complete and indicate that it was successful in building the rt Kernel.

What steps will trigger the error?

  1. Install Ubuntu (20.04) or Lubuntu (20.04) (error occurred on both)
  2. Install git
  3. Clone rtxi repo
  4. Move to /home/ or keep in local user directory (error occurred when trying both)
  5. Go into scripts.
  6. install dependencies with sudo (the script needed su privileges)
  7. install rt kernel with sudo (the script needed su privileges)
  8. Randomly guess [N/m/y/?] to several prompts regarding device drivers
  9. Follow the rtxi.org/install guide instructions to set flags in the Kernel Configuration
  10. Close with "X" and elect to save, or just hit exit (error occurred after trying both)

Error Message:

<--! Copy error messages and terminal output between the two braces below. -->

make[1]: Entering directory '/opt/linux-cip-4.19.177-cip44'
scripts/kconfig/conf  --syncconfig Kconfig
  DESCEND  objtool
  HOSTCC  scripts/genksyms/genksyms.o
  CC      scripts/mod/empty.o
  HOSTCC  scripts/unifdef
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/mod/mk_elfconfig
  YACC    scripts/genksyms/parse.tab.c
  CC      scripts/mod/devicetable-offsets.s
  MKELF   scripts/mod/elfconfig.h
  LEX     scripts/genksyms/lex.lex.c
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  YACC    scripts/genksyms/parse.tab.h
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/genksyms/parse.tab.o
  INSTALL usr/include/asm-generic/ (37 files)
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTCC  scripts/asn1_compiler
  INSTALL usr/include/drm/ (26 files)
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/mod/sumversion.o
  INSTALL usr/include/linux/ (499 files)
  HOSTCC  scripts/insert-sys-cert
  INSTALL usr/include/misc/ (2 files)
  HOSTLD  scripts/genksyms/genksyms
  INSTALL usr/include/linux/android/ (1 file)
  INSTALL usr/include/mtd/ (5 files)
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  INSTALL usr/include/rdma/ (25 files)
  INSTALL usr/include/rdma/hfi/ (2 files)
  INSTALL usr/include/scsi/ (4 files)
  INSTALL usr/include/scsi/fc/ (4 files)
  INSTALL usr/include/sound/ (16 files)
  INSTALL usr/include/video/ (3 files)
  INSTALL usr/include/linux/byteorder/ (2 files)
  INSTALL usr/include/linux/caif/ (2 files)
  INSTALL usr/include/xen/ (4 files)
  INSTALL usr/include/linux/can/ (6 files)
  INSTALL usr/include/linux/cifs/ (1 file)
  INSTALL usr/include/linux/dvb/ (8 files)
  INSTALL usr/include/linux/genwqe/ (1 file)
  INSTALL usr/include/linux/hdlc/ (1 file)
  INSTALL usr/include/linux/hsi/ (2 files)
  INSTALL usr/include/linux/iio/ (2 files)
  INSTALL usr/include/linux/isdn/ (1 file)
  INSTALL usr/include/linux/mmc/ (1 file)
  INSTALL usr/include/linux/netfilter_arp/ (2 files)
  INSTALL usr/include/linux/netfilter/ (88 files)
  INSTALL usr/include/linux/netfilter_bridge/ (17 files)
  INSTALL usr/include/linux/netfilter_ipv4/ (9 files)
  INSTALL usr/include/linux/netfilter/ipset/ (4 files)
  INSTALL usr/include/linux/netfilter_ipv6/ (13 files)
  INSTALL usr/include/linux/nfsd/ (5 files)
  INSTALL usr/include/linux/sched/ (1 file)
  INSTALL usr/include/linux/raid/ (2 files)
  INSTALL usr/include/linux/spi/ (1 file)
  INSTALL usr/include/linux/sunrpc/ (1 file)
  INSTALL usr/include/linux/tc_act/ (15 files)
  INSTALL usr/include/linux/tc_ematch/ (5 files)
  INSTALL usr/include/linux/usb/ (13 files)
  INSTALL usr/include/linux/wimax/ (1 file)
  HOSTLD  scripts/mod/modpost
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      init/main.o
  CC      init/do_mounts.o
  HOSTCC  usr/gen_init_cpio
  UPD     include/generated/compile.h
  CC      init/do_mounts_initrd.o
  CC      arch/x86/crypto/crc32c-intel_glue.o
  GEN     usr/initramfs_data.cpio
  AS      usr/initramfs_data.o
  AR      usr/built-in.a
  CC      arch/x86/entry/vdso/vma.o
  CC      arch/x86/entry/vdso/vdso32-setup.o
  AS      arch/x86/crypto/crc32c-pcl-intel-asm_64.o
  AR      arch/x86/crypto/built-in.a
  CC      arch/x86/events/amd/core.o
  CC      init/do_mounts_md.o
  LDS     arch/x86/entry/vdso/vdso.lds
  AS      arch/x86/entry/vdso/vdso-note.o
  CC      arch/x86/entry/vdso/vclock_gettime.o
  CC      arch/x86/entry/vdso/vgetcpu.o
  HOSTCC  arch/x86/entry/vdso/vdso2c
  LDS     arch/x86/entry/vdso/vdsox32.lds
  CC      init/initramfs.o
  CC      arch/x86/events/intel/core.o
  CC      arch/x86/events/core.o
  CC      arch/x86/events/amd/uncore.o
  X32     arch/x86/entry/vdso/vdso-note-x32.o
  X32     arch/x86/entry/vdso/vclock_gettime-x32.o
  X32     arch/x86/entry/vdso/vgetcpu-x32.o
  LDS     arch/x86/entry/vdso/vdso32/vdso32.lds
  CC      arch/x86/entry/vdso/vdso32/vclock_gettime.o
  AS      arch/x86/entry/vdso/vdso32/note.o
  AS      arch/x86/entry/vdso/vdso32/system_call.o
  CC      init/calibrate.o
  AS      arch/x86/entry/vdso/vdso32/sigreturn.o
  VDSO    arch/x86/entry/vdso/vdso64.so.dbg
  CC      arch/x86/events/amd/ibs.o
  VDSO    arch/x86/entry/vdso/vdsox32.so.dbg
  CC      init/init_task.o
  VDSO    arch/x86/entry/vdso/vdso32.so.dbg
  OBJCOPY arch/x86/entry/vdso/vdso64.so
  OBJCOPY arch/x86/entry/vdso/vdsox32.so
  OBJCOPY arch/x86/entry/vdso/vdso32.so
  VDSO2C  arch/x86/entry/vdso/vdso-image-64.c
  VDSO2C  arch/x86/entry/vdso/vdso-image-x32.c
  VDSO2C  arch/x86/entry/vdso/vdso-image-32.c
  CC      arch/x86/entry/vdso/vdso-image-64.o
  CC      arch/x86/entry/vdso/vdso-image-x32.o
  CC      arch/x86/entry/vdso/vdso-image-32.o
  INSTALL usr/include/asm/ (62 files)
  AR      arch/x86/entry/vdso/built-in.a
  CC      arch/x86/entry/vsyscall/vsyscall_gtod.o
  CC      init/version.o
  CC      arch/x86/events/intel/bts.o
  CC      arch/x86/entry/vsyscall/vsyscall_64.o
  CC      arch/x86/events/amd/iommu.o
  CC      arch/x86/events/msr.o
  CC      arch/x86/events/intel/ds.o
  AR      init/built-in.a
  CC      arch/x86/xenomai/machine.o
  CC      arch/x86/events/intel/knc.o
In file included from arch/x86/xenomai/include/asm/xenomai/machine.h:41,
                 from ./include/asm-generic/xenomai/syscall.h:27,
                 from arch/x86/xenomai/include/asm/xenomai/syscall.h:24,
                 from arch/x86/xenomai/machine.c:22:
./include/asm-generic/xenomai/machine.h:44:22: error: ‘IPIPE_NR_FAULTS’ undeclared here (not in a function)
   44 |  unsigned int faults[IPIPE_NR_FAULTS];
      |                      ^~~~~~~~~~~~~~~
./include/asm-generic/xenomai/machine.h:50:22: error: field ‘domain’ has incomplete type
   50 |  struct ipipe_domain domain;
      |                      ^~~~~~
  CC      arch/x86/events/intel/lbr.o
  AS      arch/x86/entry/vsyscall/vsyscall_emu_64.o
  AR      arch/x86/events/amd/built-in.a
  CC      arch/x86/events/intel/p4.o
In file included from arch/x86/xenomai/machine.c:24:
arch/x86/xenomai/include/asm/xenomai/thread.h:70:32: warning: ‘struct ipipe_trap_data’ declared inside parameter list will not be visible outside of this definition or declaration
   70 |    struct xnthread *to, struct ipipe_trap_data *d);
      |                                ^~~~~~~~~~~~~~~
  AR      arch/x86/entry/vsyscall/built-in.a
arch/x86/xenomai/include/asm/xenomai/thread.h: In function ‘xnarch_escalate’:
arch/x86/xenomai/include/asm/xenomai/thread.h:85:3: error: implicit declaration of function ‘ipipe_raise_irq’; did you mean ‘ipipe_lock_irq’? [-Werror=implicit-function-declaration]
   85 |   ipipe_raise_irq(cobalt_pipeline.escalate_virq);
      |   ^~~~~~~~~~~~~~~
      |   ipipe_lock_irq
  AS      arch/x86/entry/entry_64.o
arch/x86/xenomai/machine.c: In function ‘mach_x86_calibrate’:
arch/x86/xenomai/machine.c:54:10: error: implicit declaration of function ‘ipipe_critical_enter’ [-Werror=implicit-function-declaration]
   54 |  flags = ipipe_critical_enter(NULL);
      |          ^~~~~~~~~~~~~~~~~~~~
arch/x86/xenomai/machine.c:56:2: error: implicit declaration of function ‘ipipe_timer_set’; did you mean ‘init_timer_key’? [-Werror=implicit-function-declaration]
   56 |  ipipe_timer_set(delay);
      |  ^~~~~~~~~~~~~~~
      |  init_timer_key
arch/x86/xenomai/machine.c:58:2: error: implicit declaration of function ‘ipipe_read_tsc’ [-Werror=implicit-function-declaration]
   58 |  ipipe_read_tsc(t0);
      |  ^~~~~~~~~~~~~~
arch/x86/xenomai/machine.c:66:2: error: implicit declaration of function ‘ipipe_critical_exit’ [-Werror=implicit-function-declaration]
   66 |  ipipe_critical_exit(flags);
      |  ^~~~~~~~~~~~~~~~~~~
arch/x86/xenomai/machine.c:72:2: error: implicit declaration of function ‘ipipe_trace_max_reset’ [-Werror=implicit-function-declaration]
   72 |  ipipe_trace_max_reset();
      |  ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:303: arch/x86/xenomai/machine.o] Error 1
make[1]: *** [Makefile:1071: arch/x86/xenomai] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      arch/x86/events/intel/p6.o
  AS      arch/x86/entry/thunk_64.o
  CC      arch/x86/events/intel/pt.o
  CC      arch/x86/events/intel/uncore.o
  CC      arch/x86/entry/syscall_64.o
  CC      arch/x86/entry/common.o
  CC      arch/x86/events/intel/uncore_nhmex.o
  CC      arch/x86/events/intel/uncore_snb.o
  CC      arch/x86/ia32/sys_ia32.o
  CC      arch/x86/events/intel/uncore_snbep.o
  CC      arch/x86/ia32/ia32_signal.o
  AS      arch/x86/entry/entry_64_compat.o
  CC      arch/x86/ia32/audit.o
  CC      arch/x86/kernel/acpi/boot.o
  CC      arch/x86/kernel/apic/apic.o
  CC      arch/x86/entry/syscall_32.o
  CC      arch/x86/kernel/acpi/apei.o
  AR      arch/x86/entry/built-in.a
  CC      arch/x86/kernel/apic/apic_common.o
  AR      arch/x86/ia32/built-in.a
  CC      arch/x86/mm/init.o
  CC      arch/x86/net/bpf_jit_comp.o
  AR      arch/x86/platform/atom/built-in.a
  AR      arch/x86/platform/ce4100/built-in.a
  CC      arch/x86/platform/efi/quirks.o
  AR      arch/x86/events/intel/built-in.a
  AR      arch/x86/events/built-in.a
  CC      arch/x86/purgatory/purgatory.o
  AS      arch/x86/purgatory/stack.o
  AS      arch/x86/purgatory/setup-x86_64.o
  CC      arch/x86/purgatory/sha256.o
  AR      arch/x86/kernel/acpi/built-in.a
  CC      arch/x86/kernel/cpu/mcheck/mce.o
  AS      arch/x86/purgatory/entry64.o
  CC      arch/x86/purgatory/string.o
  CC      arch/x86/mm/init_64.o
  AR      arch/x86/net/built-in.a
  CC      arch/x86/kernel/fpu/init.o
  CC      arch/x86/platform/efi/efi.o
  CC      arch/x86/kernel/apic/apic_noop.o
  LD      arch/x86/purgatory/purgatory.ro
  BIN2C   arch/x86/purgatory/kexec-purgatory.c
  CC      arch/x86/purgatory/kexec-purgatory.o
  AR      arch/x86/purgatory/built-in.a
  CC      arch/x86/kernel/fpu/bugs.o
  CC      arch/x86/kernel/apic/ipi.o
  CC      arch/x86/kernel/fpu/core.o
  CC      arch/x86/kernel/fpu/regset.o
  CC      arch/x86/kernel/apic/vector.o
  CC      arch/x86/platform/efi/efi_64.o
  CC      arch/x86/kernel/cpu/mcheck/mce-severity.o
  CC      arch/x86/kernel/cpu/mcheck/mce-genpool.o
  CC      arch/x86/kernel/cpu/mcheck/mce_intel.o
  CC      arch/x86/mm/fault.o
  CC      arch/x86/kernel/fpu/signal.o
  CC      arch/x86/kernel/cpu/mcheck/mce_amd.o
  CC      arch/x86/kernel/apic/hw_nmi.o
  CC      arch/x86/kernel/cpu/mcheck/threshold.o
  AS      arch/x86/platform/efi/efi_stub_64.o
  CC      arch/x86/kernel/fpu/xstate.o
  AS      arch/x86/platform/efi/efi_thunk_64.o
  AR      arch/x86/platform/efi/built-in.a
  AR      arch/x86/platform/geode/built-in.a
  AR      arch/x86/platform/goldfish/built-in.a
  CC      arch/x86/platform/intel/iosf_mbi.o
  CC      arch/x86/kernel/apic/io_apic.o
  CC      arch/x86/mm/ioremap.o
  CC      arch/x86/mm/extable.o
  AR      arch/x86/platform/intel/built-in.a
  AR      arch/x86/platform/intel-mid/built-in.a
  AR      arch/x86/platform/intel-quark/built-in.a
  AR      arch/x86/platform/iris/built-in.a
  AR      arch/x86/platform/olpc/built-in.a
  AR      arch/x86/platform/scx200/built-in.a
  CC      arch/x86/platform/sfi/sfi.o
  CC      arch/x86/kernel/cpu/mcheck/therm_throt.o
  AR      arch/x86/kernel/fpu/built-in.a
  CC      arch/x86/mm/pageattr.o
  CC      arch/x86/mm/mmap.o
  CC      arch/x86/kernel/apic/msi.o
  AR      arch/x86/platform/sfi/built-in.a
  AR      arch/x86/platform/ts5500/built-in.a
  AR      arch/x86/platform/uv/built-in.a
  AR      arch/x86/platform/built-in.a
  CC      arch/x86/kernel/apic/apic_numachip.o
  CC      arch/x86/mm/pat.o
  CC      arch/x86/kernel/cpu/mcheck/mce-apei.o
  CC      arch/x86/mm/pgtable.o
  CC      arch/x86/mm/physaddr.o
  CC      arch/x86/kernel/apic/x2apic_phys.o
  CC      arch/x86/kernel/cpu/mcheck/dev-mcelog.o
  CC      arch/x86/kernel/apic/x2apic_cluster.o
  AS      arch/x86/realmode/rm/header.o
  CC      arch/x86/kernel/apic/apic_flat_64.o
  AS      arch/x86/realmode/rm/trampoline_64.o
  CC      arch/x86/kernel/apic/probe_64.o
  AS      arch/x86/realmode/rm/stack.o
  CC      arch/x86/mm/setup_nx.o
  AS      arch/x86/realmode/rm/reboot.o
  PASYMS  arch/x86/realmode/rm/pasyms.h
  LDS     arch/x86/realmode/rm/realmode.lds
  LD      arch/x86/realmode/rm/realmode.elf
  RELOCS  arch/x86/realmode/rm/realmode.relocs
  OBJCOPY arch/x86/realmode/rm/realmode.bin
  CC      arch/x86/realmode/init.o
  AR      arch/x86/kernel/cpu/mcheck/built-in.a
  CC      arch/x86/kernel/cpu/microcode/core.o
  CC      arch/x86/mm/tlb.o
  CC      arch/x86/kernel/cpu/mtrr/mtrr.o
  CC      arch/x86/kernel/cpu/mtrr/if.o
  AR      arch/x86/kernel/apic/built-in.a
  CC      arch/x86/kernel/cpu/mtrr/generic.o
  AS      arch/x86/realmode/rmpiggy.o
  AR      arch/x86/realmode/built-in.a
  CC      arch/x86/kernel/cpu/mtrr/cleanup.o
  CC      arch/x86/kernel/cpu/microcode/intel.o
  CC      arch/x86/kernel/cpu/microcode/amd.o
  CC      arch/x86/kernel/kprobes/core.o
  CC      arch/x86/mm/cpu_entry_area.o
  CC      arch/x86/kernel/kprobes/opt.o
  AR      arch/x86/kernel/cpu/mtrr/built-in.a
  CC      arch/x86/kernel/kprobes/ftrace.o
  CC      arch/x86/kernel/cpu/cacheinfo.o
  AR      arch/x86/kernel/cpu/microcode/built-in.a
  CC      arch/x86/mm/pat_rbtree.o
  CC      arch/x86/mm/hugetlbpage.o
  CC      arch/x86/mm/dump_pagetables.o
  AR      arch/x86/kernel/kprobes/built-in.a
  CC      arch/x86/kernel/process_64.o
  CC      arch/x86/mm/kmmio.o
  CC      arch/x86/kernel/signal.o
  CC      arch/x86/kernel/cpu/scattered.o
  CC      arch/x86/mm/pf_in.o
  CC      arch/x86/kernel/cpu/topology.o
  CC      arch/x86/kernel/cpu/common.o
  CC      arch/x86/mm/mmio-mod.o
  CC      arch/x86/kernel/cpu/rdrand.o
  CC      arch/x86/kernel/cpu/match.o
  CC      arch/x86/kernel/cpu/bugs.o
  CC      arch/x86/kernel/cpu/aperfmperf.o
  CC      arch/x86/kernel/signal_compat.o
  CC      arch/x86/kernel/cpu/cpuid-deps.o
  CC      arch/x86/kernel/cpu/proc.o
  MKCAP   arch/x86/kernel/cpu/capflags.c
  CC      arch/x86/mm/numa.o
  CC      arch/x86/mm/numa_64.o
  CC      arch/x86/kernel/cpu/powerflags.o
  CC      arch/x86/mm/amdtopology.o
  CC      arch/x86/mm/srat.o
  CC      arch/x86/kernel/traps.o
  CC      arch/x86/kernel/cpu/intel.o
  CC      arch/x86/mm/pkeys.o
  CC      arch/x86/kernel/cpu/intel_pconfig.o
  CC      arch/x86/mm/kaslr.o
  CC      arch/x86/kernel/cpu/tsx.o
  CC      arch/x86/kernel/cpu/amd.o
  CC      arch/x86/kernel/idt.o
  CC      arch/x86/kernel/irq.o
  CC      arch/x86/kernel/irq_64.o
  CC      arch/x86/mm/pti.o
  CC      arch/x86/kernel/cpu/centaur.o
  CC      arch/x86/kernel/dumpstack_64.o
  CC      arch/x86/mm/mem_encrypt.o
  CC      arch/x86/mm/mem_encrypt_identity.o
  AS      arch/x86/mm/mem_encrypt_boot.o
  CC      arch/x86/kernel/time.o
  CC      arch/x86/kernel/ioport.o
  CC      arch/x86/kernel/dumpstack.o
  CC      arch/x86/kernel/nmi.o
  CC      arch/x86/kernel/ldt.o
  AR      arch/x86/mm/built-in.a
  CC      arch/x86/kernel/setup.o
  CC      arch/x86/kernel/cpu/perfctr-watchdog.o
  CC      arch/x86/kernel/cpu/vmware.o
  CC      arch/x86/kernel/cpu/hypervisor.o
  CC      arch/x86/kernel/cpu/mshyperv.o
  CC      arch/x86/kernel/x86_init.o
  CC      arch/x86/kernel/i8259.o
  CC      arch/x86/kernel/irqinit.o
  CC      arch/x86/kernel/irq_work.o
  CC      arch/x86/kernel/probe_roms.o
  CC      arch/x86/kernel/sys_x86_64.o
  CC      arch/x86/kernel/espfix_64.o
  CC      arch/x86/kernel/ksysfs.o
  CC      arch/x86/kernel/bootflag.o
  CC      arch/x86/kernel/e820.o
  CC      arch/x86/kernel/pci-dma.o
  CC      arch/x86/kernel/quirks.o
  CC      arch/x86/kernel/topology.o
  CC      arch/x86/kernel/kdebugfs.o
  CC      arch/x86/kernel/alternative.o
  CC      arch/x86/kernel/i8253.o
  CC      arch/x86/kernel/hw_breakpoint.o
  CC      arch/x86/kernel/tsc.o
  CC      arch/x86/kernel/tsc_msr.o
  CC      arch/x86/kernel/io_delay.o
  CC      arch/x86/kernel/cpu/capflags.o
  CC      arch/x86/kernel/rtc.o
  AR      arch/x86/kernel/cpu/built-in.a
  CC      arch/x86/kernel/pci-iommu_table.o
  CC      arch/x86/kernel/resource.o
  AS      arch/x86/kernel/irqflags.o
  CC      arch/x86/kernel/process.o
  CC      arch/x86/kernel/ptrace.o
  CC      arch/x86/kernel/tls.o
  CC      arch/x86/kernel/step.o
  CC      arch/x86/kernel/tboot.o
  CC      arch/x86/kernel/i8237.o
  CC      arch/x86/kernel/stacktrace.o
  CC      arch/x86/kernel/reboot.o
  CC      arch/x86/kernel/early-quirks.o
  CC      arch/x86/kernel/smp.o
  CC      arch/x86/kernel/smpboot.o
  CC      arch/x86/kernel/tsc_sync.o
  CC      arch/x86/kernel/setup_percpu.o
  CC      arch/x86/kernel/mpparse.o
  CC      arch/x86/kernel/ftrace.o
  AS      arch/x86/kernel/ftrace_64.o
  CC      arch/x86/kernel/trace_clock.o
  CC      arch/x86/kernel/machine_kexec_64.o
  AS      arch/x86/kernel/relocate_kernel_64.o
  CC      arch/x86/kernel/crash.o
  CC      arch/x86/kernel/kexec-bzimage64.o
  CC      arch/x86/kernel/crash_dump_64.o
  CC      arch/x86/kernel/module.o
  CC      arch/x86/kernel/doublefault.o
  CC      arch/x86/kernel/kgdb.o
  CC      arch/x86/kernel/early_printk.o
  CC      arch/x86/kernel/hpet.o
  CC      arch/x86/kernel/amd_nb.o
  CC      arch/x86/kernel/pmem.o
  CC      arch/x86/kernel/jailhouse.o
  CC      arch/x86/kernel/pcspeaker.o
  CC      arch/x86/kernel/check.o
  CC      arch/x86/kernel/pci-swiotlb.o
  CC      arch/x86/kernel/uprobes.o
  CC      arch/x86/kernel/sysfb.o
  CC      arch/x86/kernel/sysfb_efi.o
  CC      arch/x86/kernel/perf_regs.o
  CC      arch/x86/kernel/tracepoint.o
  CC      arch/x86/kernel/umip.o
  CC      arch/x86/kernel/unwind_frame.o
  CC      arch/x86/kernel/audit_64.o
  CC      arch/x86/kernel/amd_gart_64.o
  CC      arch/x86/kernel/aperture_64.o
  CC      arch/x86/kernel/mmconf-fam10h_64.o
  CC      arch/x86/kernel/vsmp_64.o
  AS      arch/x86/kernel/head_64.o
  CC      arch/x86/kernel/head64.o
  CC      arch/x86/kernel/ebda.o
  CC      arch/x86/kernel/platform-quirks.o
  LDS     arch/x86/kernel/vmlinux.lds
  AR      arch/x86/kernel/built-in.a
  AR      arch/x86/built-in.a
make[1]: Leaving directory '/opt/linux-cip-4.19.177-cip44'
make: *** [debian/ruleset/targets/common.mk:301: debian/stamp/build/kernel] Error 2
fusge commented 3 years ago

Can you run the command cat /proc/cpuinfo and paste the contents here? Also What processor type did you select in the kernel configuration?

kgetech commented 3 years ago

I will get back to you with that sometime next week at the latest.

Thank you!

kgetech commented 3 years ago

Selected the generic x86_64 cpu type in the kernel config.

cat /proc/cpuinfo gave this:

vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD FX(tm)-6300 Six-Core Processor
stepping        : 0
microcode       : 0x6000852
cpu MHz         : 1400.000
cache size      : 2048 KB
physical id     : 0
siblings        : 6
core id         : 0
cpu cores       : 3
apicid          : 16
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 7000.41
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD FX(tm)-6300 Six-Core Processor
stepping        : 0
microcode       : 0x6000852
cpu MHz         : 1608.635
cache size      : 2048 KB
physical id     : 0
siblings        : 6
core id         : 1
cpu cores       : 3
apicid          : 17
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 7000.41
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor       : 2
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD FX(tm)-6300 Six-Core Processor
stepping        : 0
microcode       : 0x6000852
cpu MHz         : 1400.000
cache size      : 2048 KB
physical id     : 0
siblings        : 6
core id         : 2
cpu cores       : 3
apicid          : 18
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 7000.41
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor       : 3
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD FX(tm)-6300 Six-Core Processor
stepping        : 0
microcode       : 0x6000852
cpu MHz         : 4022.368
cache size      : 2048 KB
physical id     : 0
siblings        : 6
core id         : 3
cpu cores       : 3
apicid          : 19
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 7000.41
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor       : 4
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD FX(tm)-6300 Six-Core Processor
stepping        : 0
microcode       : 0x6000852
cpu MHz         : 1400.000
cache size      : 2048 KB
physical id     : 0
siblings        : 6
core id         : 4
cpu cores       : 3
apicid          : 20
initial apicid  : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 7000.41
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor       : 5
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD FX(tm)-6300 Six-Core Processor
stepping        : 0
microcode       : 0x6000852
cpu MHz         : 1400.000
cache size      : 2048 KB
physical id     : 0
siblings        : 6
core id         : 5
cpu cores       : 3
apicid          : 21
initial apicid  : 5
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 7000.41
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

Thank you for looking into this!

fusge commented 3 years ago

I was able to recreate the same error you had by re-patching he kernel a second time on top of an existing installation/patched kernel. A solution would be to remove the following folders:

/opt/xenomai-3.1 /opt/linux-cip-4.19.177-cip44

After doing so re-run the install_rt_kernel.sh script. When the script pauses on device drivers, just answer N. You may have to select again kernel options. Let me know if the problem persists.

kgetech commented 3 years ago

That appears to be the issue, it has installed successfully now. The first time, the power to the building had shut off mid-install, and during both the first and the second time, the build process was interrupted because my console window was too small to access the kernel configurations options.

By removing those two directories, and ensuring the console window was large enough at the beginning, the RT kernel built and installed successfully, and the rtxi install script just completed successfully as well.

Thank you!