Skip to content

Instantly share code, notes, and snippets.

@orimanabu
Last active September 29, 2025 02:21
Show Gist options
  • Save orimanabu/b99883f50d62aa8346167a691f1432b0 to your computer and use it in GitHub Desktop.
Save orimanabu/b99883f50d62aa8346167a691f1432b0 to your computer and use it in GitHub Desktop.
strace for vfio-e1000 build failure

Fedora 42

ori@localhost:~/devel/src/github.com/mmisono/vfio-e1000/strace$ cat /etc/fedora-release
Fedora release 42 (Adams)
ori@localhost:~/devel/src/github.com/mmisono/vfio-e1000/strace$ git branch
* kvm-snapshot#20250910
  master
ori@localhost:~/devel/src/github.com/mmisono/vfio-e1000/strace$ gcc --version
gcc (GCC) 15.2.1 20250808 (Red Hat 15.2.1-1)
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ori@localhost:~/devel/src/github.com/mmisono/vfio-e1000/strace$ make
make  all-recursive
make[1]: Entering directory '/home/ori/devel/src/github.com/mmisono/vfio-e1000/strace'
Making all in bundled
make[2]: Entering directory '/home/ori/devel/src/github.com/mmisono/vfio-e1000/strace/bundled'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ori/devel/src/github.com/mmisono/vfio-e1000/strace/bundled'
Making all in src
make[2]: Entering directory '/home/ori/devel/src/github.com/mmisono/vfio-e1000/strace/src'
make  all-am
make[3]: Entering directory '/home/ori/devel/src/github.com/mmisono/vfio-e1000/strace/src'
gcc -DHAVE_CONFIG_H   -I./linux/x86_64 -I./linux/x86_64 -I./linux/generic -I./linux/generic -I. -I. -isystem ../bundled/linux/arch/x86/include/uapi -isystem ../bundled/linux/include/uapi -DIN_STRACE=1      -isystem ./bundled/linux/arch/x86/include/uapi -isystem ./bundled/linux/include/uapi -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wformat-security -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wtrampolines -Wundef -Wwrite-strings -Werror   -g -O2 -MT libstrace_a-kvm.o -MD -MP -MF .deps/libstrace_a-kvm.Tpo -c -o libstrace_a-kvm.o `test -f 'kvm.c' || echo './'`kvm.c
kvm.c:458:10: fatal error: xlat/kvm_msr_index.h: No such file or directory
  458 | #include "xlat/kvm_msr_index.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:6115: libstrace_a-kvm.o] Error 1
make[3]: Leaving directory '/home/ori/devel/src/github.com/mmisono/vfio-e1000/strace/src'
make[2]: *** [Makefile:2855: all] Error 2
make[2]: Leaving directory '/home/ori/devel/src/github.com/mmisono/vfio-e1000/strace/src'
make[1]: *** [Makefile:602: all-recursive] Error 1
make[1]: Leaving directory '/home/ori/devel/src/github.com/mmisono/vfio-e1000/strace'
make: *** [Makefile:507: all] Error 2
@orimanabu
Copy link
Author

orimanabu commented Sep 29, 2025

Fedora 43 Beta

ori@fedora-amd:~/work/vfio-e1000/strace$ cat /etc/fedora-release
Fedora release 43 (Forty Three)
ori@fedora-amd:~/work/vfio-e1000/strace$ git branch
* kvm-snapshot#20250910
  master
ori@fedora-amd:~/work/vfio-e1000/strace$ gcc --version
gcc (GCC) 15.2.1 20250808 (Red Hat 15.2.1-1)
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ori@fedora-amd:~/work/vfio-e1000/strace$ make
make  all-recursive
make[1]: Entering directory '/home/ori/work/vfio-e1000/strace'
Making all in bundled
make[2]: Entering directory '/home/ori/work/vfio-e1000/strace/bundled'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ori/work/vfio-e1000/strace/bundled'
Making all in src
make[2]: Entering directory '/home/ori/work/vfio-e1000/strace/src'
make  all-am
make[3]: Entering directory '/home/ori/work/vfio-e1000/strace/src'
gcc -DHAVE_CONFIG_H   -I./linux/x86_64 -I./linux/x86_64 -I./linux/generic -I./linux/generic -I. -I. -isystem ../bundled/linux/arch/x86/include/uapi -isystem ../bundled/linux/include/uapi -DIN_STRACE=1      -isystem ./bundled/linux/arch/x86/include/uapi -isystem ./bundled/linux/include/uapi -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wformat-security -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wtrampolines -Wundef -Wwrite-strings -Werror   -g -O2 -MT libstrace_a-kvm.o -MD -MP -MF .deps/libstrace_a-kvm.Tpo -c -o libstrace_a-kvm.o `test -f 'kvm.c' || echo './'`kvm.c
In file included from defs.h:20,
                 from kvm.c:12:
/usr/lib/gcc/x86_64-redhat-linux/15/include/stdint.h:9:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘#pragma’
    9 | #pragma GCC diagnostic push
      |         ^~~
make[3]: *** [Makefile:6116: libstrace_a-kvm.o] Error 1
make[3]: Leaving directory '/home/ori/work/vfio-e1000/strace/src'
make[2]: *** [Makefile:2856: all] Error 2
make[2]: Leaving directory '/home/ori/work/vfio-e1000/strace/src'
make[1]: *** [Makefile:602: all-recursive] Error 1
make[1]: Leaving directory '/home/ori/work/vfio-e1000/strace'
make: *** [Makefile:507: all] Error 2

@orimanabu
Copy link
Author

orimanabu commented Sep 29, 2025

Fedora 42

ori@aimax:~/work/vfio-e1000/strace$ cat /etc/fedora-release
Fedora release 42 (Adams)
ori@aimax:~/work/vfio-e1000/strace$ lscpu
Architecture:                x86_64
  CPU op-mode(s):            32-bit, 64-bit
  Address sizes:             48 bits physical, 48 bits virtual
  Byte Order:                Little Endian
CPU(s):                      32
  On-line CPU(s) list:       0-31
Vendor ID:                   AuthenticAMD
  Model name:                AMD RYZEN AI MAX+ 395 w/ Radeon 8060S
    CPU family:              26
    Model:                   112
    Thread(s) per core:      2
    Core(s) per socket:      16
    Socket(s):               1
    Stepping:                0
    Frequency boost:         enabled
    CPU(s) scaling MHz:      39%
    CPU max MHz:             5187.5000
    CPU min MHz:             625.0000
    BogoMIPS:                5988.12
    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 const
                             ant_tsc rep_good amd_lbr_v2 nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcn
                             t aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core
                             perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase tsc_adjust bmi1 avx2
                              smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1
                              xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk avx_vnni avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv sv
                             m_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi um
                             ip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid bus_lock_detect movdiri movdir64b overflow_recov succor
                              smca fsrm avx512_vp2intersect flush_l1d amd_lbr_pmc_freeze
Virtualization features:
  Virtualization:            AMD-V
Caches (sum of all):
  L1d:                       768 KiB (16 instances)
  L1i:                       512 KiB (16 instances)
  L2:                        16 MiB (16 instances)
  L3:                        64 MiB (2 instances)
NUMA:
  NUMA node(s):              1
  NUMA node0 CPU(s):         0-31
Vulnerabilities:
  Gather data sampling:      Not affected
  Ghostwrite:                Not affected
  Indirect target selection: Not affected
  Itlb multihit:             Not affected
  L1tf:                      Not affected
  Mds:                       Not affected
  Meltdown:                  Not affected
  Mmio stale data:           Not affected
  Old microcode:             Not affected
  Reg file data sampling:    Not affected
  Retbleed:                  Not affected
  Spec rstack overflow:      Mitigation; IBPB on VMEXIT only
  Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; STIBP always-on; PBRSB-eIBRS Not affected; BHI Not affected
  Srbds:                     Not affected
  Tsa:                       Not affected
  Tsx async abort:           Not affected
  Vmscape:                   Mitigation; IBPB on VMEXIT
ori@aimax:~/work/vfio-e1000/strace$ uname -a
Linux aimax 6.16.8-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 19 17:47:18 UTC 2025 x86_64 GNU/Linux
ori@aimax:~/work/vfio-e1000/strace$ git branch
* kvm-snapshot#20250910
  master
ori@aimax:~/work/vfio-e1000/strace$ gcc --version
gcc (GCC) 15.2.1 20250808 (Red Hat 15.2.1-1)
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ori@aimax:~/work/vfio-e1000/strace$ rpm -q gcc
gcc-15.2.1-1.fc42.x86_64
ori@aimax:~/work/vfio-e1000/strace$ make
make  all-recursive
make[1]: Entering directory '/home/ori/work/vfio-e1000/strace'
Making all in bundled
make[2]: Entering directory '/home/ori/work/vfio-e1000/strace/bundled'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ori/work/vfio-e1000/strace/bundled'
Making all in src
make[2]: Entering directory '/home/ori/work/vfio-e1000/strace/src'
make  all-am
make[3]: Entering directory '/home/ori/work/vfio-e1000/strace/src'
gcc -DHAVE_CONFIG_H   -I./linux/x86_64 -I./linux/x86_64 -I./linux/generic -I./linux/generic -I. -I. -isystem ../bundled/linux/arch/x86/include/uapi -isystem ../bundled/linux/include/uapi -DIN_STRACE=1      -isystem ./bundled/linux/arch/x86/include/uapi -isystem ./bundled/linux/include/uapi -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wformat-security -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wtrampolines -Wundef -Wwrite-strings -Werror   -g -O2 -MT libstrace_a-kvm.o -MD -MP -MF .deps/libstrace_a-kvm.Tpo -c -o libstrace_a-kvm.o `test -f 'kvm.c' || echo './'`kvm.c
In file included from defs.h:20,
                 from kvm.c:12:
/usr/lib/gcc/x86_64-redhat-linux/15/include/stdint.h:9:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘#pragma’
    9 | #pragma GCC diagnostic push
      |         ^~~
make[3]: *** [Makefile:6116: libstrace_a-kvm.o] Error 1
make[3]: Leaving directory '/home/ori/work/vfio-e1000/strace/src'
make[2]: *** [Makefile:2856: all] Error 2
make[2]: Leaving directory '/home/ori/work/vfio-e1000/strace/src'
make[1]: *** [Makefile:602: all-recursive] Error 1
make[1]: Leaving directory '/home/ori/work/vfio-e1000/strace'
make: *** [Makefile:507: all] Error 2
ori@aimax:~/work/vfio-e1000/strace$ rpm -qf /usr/lib/gcc/x86_64-redhat-linux/15/include/stdint.h
gcc-15.2.1-1.fc42.x86_64

@orimanabu
Copy link
Author

RHEL9 (container)

[root@4c67dd4b7ed6 strace]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.6 (Plow)
[root@4c67dd4b7ed6 strace]# cat /proc/cpuinfo | grep 'model name' | uniq
model name	: AMD RYZEN AI MAX+ 395 w/ Radeon 8060S
[root@4c67dd4b7ed6 strace]# gcc --version
gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@4c67dd4b7ed6 strace]# rpm -q gcc
gcc-11.5.0-5.el9_5.x86_64
[root@4c67dd4b7ed6 strace]# git branch
* kvm-snapshot#20250910
  master
[root@4c67dd4b7ed6 strace]# ./src/strace --version
strace -- version 5.13.0.1478.a87f7
Copyright (c) 1991-2025 The strace developers <https://strace.io>.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Optional features enabled: m32-mpers mx32-mpers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment