realganfan / r8125-esxi

Realtek RTL8125 driver for ESXi 6.7
GNU General Public License v3.0
203 stars 67 forks source link

This happens when compiling the driver, help me #23

Open a961335435 opened 6 months ago

a961335435 commented 6 months ago

The computer is win10, using Vmware virtualization centos7

git clone https://github.com/realganfan/compile-vmkdriver-env-builder

cd compile-vmkdriver-env-builder

bash build--esxi-driver-env-centos7.sh

Build completed,please comfirm your /build/toolchain/lin64 has 3 subfolders. Remember changing your build-xxxx.sh: binutil version: 2.22 gcc version: 4.8.0 glibc version: 2.3.4-2.41

[root@bogon compile-vmkdriver-env-builder]# cd /build/vsphere/vmkdrivers-gpl [root@bogon vmkdrivers-gpl]# ./build-r8125.sh In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0, from vmkdrivers/src_9/drivers/net/r8125/r8125_n.c:83: vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory

include <linux/timecounter.h>

^ compilation terminated. In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0, from vmkdrivers/src_9/drivers/net/r8125/rtl_eeprom.c:44: vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory

include <linux/timecounter.h>

^ compilation terminated. In file included from vmkdrivers/src_9/drivers/net/r8125/r8125.h:44:0, from vmkdrivers/src_9/drivers/net/r8125/rtltool.c:43: vmkdrivers/src_9/drivers/net/r8125/r8125_ptp.h:39:31: fatal error: linux/timecounter.h: No such file or directory

include <linux/timecounter.h>

^ compilation terminated. /build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/r8125_n.o: No such file or directory /build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/rtl_eeprom.o: No such file or directory /build/toolchain/lin64/binutils-2.22/bin/x86_64-linux-ld: cannot find BLD/build/vmkdriver-r8125/release/vmkernel64/SUBDIRS/vmkdrivers/src_9/drivers/net/r8125/rtltool.o: No such file or directory cp: cannot stat ‘/build/vmkdrivers-gpl/BLD/build/vmkdriver-r8125/release/vmkernel64/r8125’: No such file or directory