qslia 发表于 2019-12-7 17:51:04

很遗憾,固件烧写成功!但起不来系统,不知道哪里出问题了。。

子墨_ 发表于 2020-3-31 22:03:53

楼主你好,请问gcc-4.8-multilib-arm-linux-gnueabihf安装报错E: Unable to locate package gcc-4.8-multilib-arm-linux-gnueabihf这个问题你是怎么解决的呢?

lizhaoping11 发表于 2020-4-14 22:44:24

sudo apt-get install gdc-8-multilib-arm-linux-gnueabihf
用这个可以

lizhaoping11 发表于 2020-4-14 22:50:00

楼主求教一下,我编译的时候出现下面的错误指导是什么问题吗?
./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -Wp,-MD,scripts/mod/.devicetable-offsets.s.d -nostdinc -isystem ./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -print-file-name=include Exec format error -I./arch/arm64/include -Iarch/arm64/include/generated/uapi -Iarch/arm64/include/generated -Iinclude -I./arch/arm64/include/uapi -Iarch/arm64/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mgeneral-regs-only -fno-pic -fno-asynchronous-unwind-tables -Os -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(devicetable_offsets) -DKBUILD_MODNAME=KBUILD_STR(devicetable_offsets) -fverbose-asm -S -o scripts/mod/devicetable-offsets.s scripts/mod/devicetable-offsets.c Exec format error
scripts/Makefile.build:153: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make: *** Error 8
make: *** Waiting for unfinished jobs....
./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem ./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -print-file-name=include Exec format error -I./arch/arm64/include -Iarch/arm64/include/generated/uapi -Iarch/arm64/include/generated -Iinclude -I./arch/arm64/include/uapi -Iarch/arm64/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mgeneral-regs-only -fno-pic -fno-asynchronous-unwind-tables -Os -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c Exec format error
./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem ./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -print-file-name=include Exec format error -I./arch/arm64/include -Iarch/arm64/include/generated/uapi -Iarch/arm64/include/generated -Iinclude -I./arch/arm64/include/uapi -Iarch/arm64/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mgeneral-regs-only -fno-pic -fno-asynchronous-unwind-tables -Os -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(empty) -DKBUILD_MODNAME=KBUILD_STR(empty) -c -o scripts/mod/empty.o scripts/mod/empty.c Exec format error
Kbuild:19: recipe for target 'kernel/bounds.s' failed
make: *** Error 8
Makefile:1079: recipe for target 'prepare0' failed
make: *** Error 2
make: *** Waiting for unfinished jobs....
scripts/Makefile.build:277: recipe for target 'scripts/mod/empty.o' failed
make: *** Error 8
scripts/Makefile.build:484: recipe for target 'scripts/mod' failed
make: *** Error 2
make: *** Waiting for unfinished jobs....
Makefile:579: recipe for target 'scripts' failed
make: *** Error 2
====Build kernel failed!====

归去来 发表于 2020-12-28 12:30:40

lizhaoping11 发表于 2020-4-14 22:44
sudo apt-get install gdc-8-multilib-arm-linux-gnueabihf
用这个可以

谢谢!

18021427783 发表于 2021-2-28 18:56:34

归来归去和楼主,你好!
我也遇到了这个问题,gcc-4.8-multilib-arm-linux-gnueabihf安装报错E: Unable to locate package gcc-4.8-multilib-arm-linux-gnueabihf。

用sudo apt-get install gdc-8-multilib-arm-linux-gnueabihf,没有报错。
但是后面的编译,一开始就有问题。感觉编译工具还是没有装好。

895816513 发表于 2022-5-18 14:33:28

环境包安装列表已经更新了,不再需要安装 gcc-4.8-multilib-arm-linux-gnueabihf

这里使用Ubuntu18.04进行测试(推荐使用Ubuntu16.04及其以上版本):
sudo apt-get update

sudo apt-get install repo git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler \
gcc-aarch64-linux-gnu mtools parted libudev-dev libusb-1.0-0-dev python-linaro-image-tools \
linaro-image-tools gcc-arm-linux-gnueabihf libssl-dev liblz4-tool genext2fs lib32stdc++6 \
gcc-aarch64-linux-gnu g+conf autotools-dev libsigsegv2 m4 intltool libdrm-dev curl sed make \
binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio python unzip rsync file bc wget \
libncurses5 libqt4-dev libglib2.0-dev libgtk2.0-dev libglade2-dev cvs git mercurial rsync openssh-client \
subversion asciidoc w3m dblatex graphviz python-matplotlib libssl-dev texinfo fakeroot \
libparse-yapp-perl default-jre patchutils swig chrpath diffstat gawk time expect-dev
页: 1 [2]
查看完整版本: gcc-4.8-multilib-arm-linux-gnueabihf安装报错