- 积分
- 17
贡献112
飞刀33 FD
注册时间2019-11-16
在线时间2 小时
扫一扫,手机访问本帖
|
按手册一步一步编译,到make时出错
root@hp-HP-348:/home/forlinx/imx8mm/OK8MM-linux-sdk# make
=================================
Building the Linux Kernel
=================================
make -j 4 -C /home/forlinx/imx8mm/OK8MM-linux-sdk/OK8MM-linux-kernel defconfig LDFLAGS=
make[1]: Entering directory '/home/forlinx/imx8mm/OK8MM-linux-sdk/OK8MM-linux-kernel'
*** Default configuration is based on 'x86_64_defconfig'
#
# configuration written to .config
#
make[1]: Leaving directory '/home/forlinx/imx8mm/OK8MM-linux-sdk/OK8MM-linux-kernel'
make -j 4 -C /home/forlinx/imx8mm/OK8MM-linux-sdk/OK8MM-linux-kernel LDFLAGS=
make[1]: Entering directory '/home/forlinx/imx8mm/OK8MM-linux-sdk/OK8MM-linux-kernel'
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
DESCEND objtool
CHK include/generated/utsrelease.h
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/md/dm-rq.o
drivers/md/dm-rq.c: In function ‘dm_old_init_request_queue’:
drivers/md/dm-rq.c:716:2: error: implicit declaration of function ‘elv_register_queue’ [-Werror=implicit-function-declaration]
elv_register_queue(md->queue);
^
AR drivers/md/dm-mirror.o
CC drivers/md/dm-log.o
cc1: some warnings being treated as errors
scripts/Makefile.build:328: recipe for target 'drivers/md/dm-rq.o' failed
make[3]: *** [drivers/md/dm-rq.o] Error 1
make[3]: *** 正在等待未完成的任务....
CC drivers/pci/access.o
scripts/Makefile.build:587: recipe for target 'drivers/md' failed
make[2]: *** [drivers/md] Error 2
make[2]: *** 正在等待未完成的任务....
CC drivers/pci/bus.o
CC drivers/pci/probe.o
CC drivers/pci/host-bridge.o
CC drivers/pci/remove.o
CC drivers/pci/pci.o
CC drivers/pci/pci-driver.o
CC drivers/pci/search.o
CC drivers/pci/pci-sysfs.o
CC drivers/pci/rom.o
CC drivers/pci/setup-res.o
CC drivers/pci/irq.o
CC drivers/pci/vpd.o
CC drivers/pci/setup-bus.o
CC drivers/pci/vc.o
CC drivers/pci/mmap.o
CC drivers/pci/setup-irq.o
CC drivers/pci/proc.o
CC drivers/pci/slot.o
CC drivers/pci/quirks.o
AR drivers/pci/host/built-in.o
CC drivers/pci/hotplug/pci_hotplug_core.o
CC drivers/pci/pcie/aspm.o
AR drivers/pci/switch/built-in.o
CC drivers/pci/hotplug-pci.o
CC drivers/pci/hotplug/acpi_pcihp.o
CC drivers/pci/msi.o
CC drivers/pci/pcie/portdrv_core.o
AR drivers/pci/hotplug/pci_hotplug.o
AR drivers/pci/hotplug/built-in.o
CC drivers/pci/htirq.o
CC drivers/pci/ats.o
CC drivers/pci/pcie/portdrv_pci.o
CC drivers/pci/pci-acpi.o
CC drivers/pci/pci-label.o
CC drivers/pci/pcie/portdrv_bus.o
CC drivers/pci/pcie/portdrv_acpi.o
CC drivers/pci/pcie/aer/aerdrv_errprint.o
CC drivers/pci/pcie/pme.o
CC drivers/pci/pcie/aer/aerdrv_core.o
AR drivers/pci/pcie/pcieportdrv.o
CC drivers/pci/pcie/aer/aerdrv.o
CC drivers/pci/pcie/aer/aerdrv_acpi.o
AR drivers/pci/pcie/aer/aerdriver.o
AR drivers/pci/pcie/aer/built-in.o
AR drivers/pci/pcie/built-in.o
AR drivers/pci/built-in.o
Makefile:1039: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
make[1]: Leaving directory '/home/forlinx/imx8mm/OK8MM-linux-sdk/OK8MM-linux-kernel'
Makefile:11: recipe for target 'linux' failed
make: *** [linux] Error 2
|
|