UART 发表于 2019-12-13 23:09:58

linux编译出错

按手册一步一步编译,到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: Entering directory '/home/forlinx/imx8mm/OK8MM-linux-sdk/OK8MM-linux-kernel'
*** Default configuration is based on 'x86_64_defconfig'
#
# configuration written to .config
#
make: 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: 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
DESCENDobjtool
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: *** Error 1
make: *** 正在等待未完成的任务....
CC      drivers/pci/access.o
scripts/Makefile.build:587: recipe for target 'drivers/md' failed
make: *** Error 2
make: *** 正在等待未完成的任务....
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: *** Error 2
make: Leaving directory '/home/forlinx/imx8mm/OK8MM-linux-sdk/OK8MM-linux-kernel'
Makefile:11: recipe for target 'linux' failed
make: *** Error 2

zhichao 发表于 2019-12-16 17:38:52

用我们提供的开发环境是吗,环境变量都设置了吗,每当重启虚拟机或者打开新的 shell 窗口都需要重新执行设置环境变量,

UART 发表于 2019-12-16 20:04:26

zhichao 发表于 2019-12-16 17:38
用我们提供的开发环境是吗,环境变量都设置了吗,每当重启虚拟机或者打开新的 shell 窗口都需要重新执行设 ...

刚开始用的是自己的linux,会出错,今天用虚拟机打开资料里面的开发环境,make成功了

皮卡丘的皮 发表于 2021-7-10 21:15:43

zhichao 发表于 2019-12-16 17:38
用我们提供的开发环境是吗,环境变量都设置了吗,每当重启虚拟机或者打开新的 shell 窗口都需要重新执行设 ...

你们提供的开发环境在哪里

zhichao 发表于 2021-7-12 08:36:12

皮卡丘的皮 发表于 2021-7-10 21:15
你们提供的开发环境在哪里

请联系销售工程师获取资料或开通下载权限

igsudhrbrqt 发表于 2021-9-22 16:13:25

zhichao 发表于 2021-7-12 08:36
请联系销售工程师获取资料或开通下载权限

有part01-part04,请问使用哪个

zhichao 发表于 2021-9-22 16:37:34

igsudhrbrqt 发表于 2021-9-22 16:13
有part01-part04,请问使用哪个

全都是,是压缩包分卷
页: [1]
查看完整版本: linux编译出错