使用Buildroot配置错误

问题描述 投票:0回答:1

我正在为Raspberry Pi 3开发一个项目,我正在使用buildroot来构建linux内核,fs等。但是时不时(当我更改buildroot的设置时)我不再能够成功完成构建进程即使我回滚到以前的配置(即使我选择初始raspberrypi3_defconfig配置)。错误始终类似:

host-binutils 2.28.1配置(cd /home/andy/embedded_linux/buildroot/output/build/host-binutils-2.28.1/&& rm -rf config.cache; PATH =“/ home / andy / embedded_linux / buildroot /输出/主机/斌:/家庭/安迪/ embedded_linux / buildroot的/输出/主机/ sbin目录:/家庭/安迪/斌:/home/andy/.local/bin:在/ usr / local / sbin中:在/ usr /本地/ bin:/ usr / sbin:/ usr / bin:/ sbin:/ bin:/ usr / games:/ usr / local / games:/ snap / bin“PKG_CONFIG =”/ home / andy / embedded_linux / buildroot / output / host / bin / pkg-config“PKG_CONFIG_SYSROOT_DIR =”/“PKG_CONFIG_ALLOW_SYSTEM_CFLAGS = 1 PKG_CONFIG_ALLOW_SYSTEM_LIBS = 1 PKG_CONFIG_LIBDIR =”/ home / andy / embedded_linux / buildroot / output / host / lib / pkgconfig:/ home / andy / embedded_linux / buildroot / output / host / share / pkgconfig“AR =”/ usr / bin / ar“AS =”/ usr / bin / as“LD =”/ usr / bin / ld“NM =”/ usr / bin / nm“CC =”/ usr / bin / gcc“GCC =”/ usr / bin / gcc“CXX =”/ usr / bin / g ++“CPP =”/ usr / bin / cpp“OBJCOPY =”/ usr / bin / objcopy“RANLIB =”/ usr / bin / ranlib“CPPFLAGS =” - I / home / andy / embedded_linux / buildroot / output / host / include“CFLAGS =” - O2 -I / home / andy / embedded_linux / bui ldroot / output / host / include“CXXFLAGS =” - O2 -I / home / andy / embedded_linux / buildroot / output / host / include“LDFLAGS =” - L / home / andy / embedded_linux / buildroot / output / host / lib - Wl,-rpath,/ home / andy / embedded_linux / buildroot / output / host / lib“INTLTOOL_PERL = / usr / bin / perl CFLAGS =” - O2 -I / home / andy / embedded_linux / buildroot / output / host / include“ LDFLAGS =“ - L / home / andy / embedded_linux / buildroot / output / host / lib -Wl,-rpath,/ home / andy / embedded_linux / buildroot / output / host / lib”MAKEINFO = true CONFIG_SITE = / dev / null。 / configure --prefix =“/ home / andy / embedded_linux / buildroot / output / host”--sysconfdir =“/ home / andy / embedded_linux / buildroot / output / host / etc”--localstatedir =“/ home / andy / embedded_linux / buildroot / output / host / var“ - enable-shared --disable-static --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-文档--disable-debug --with-xmlto = no --with-fop = no --disable-dependency-tracking --disable-multilib --disable-werror --target = -buildroot-linux-uclibcgnueabihf --disable -shared --en able-static --with-sysroot = / home / andy / embedded_linux / buildroot / output / host / -buildroot-linux-uclibcgnueabihf / sysroot --enable-poison-system-directories --disable-sim --disable-gdb) configure:加载站点脚本/ dev / null检查构建系统类型... x86_64-pc-linux-gnu检查主机系统类型... x86_64-pc-linux-gnu检查目标系统类型... configure:error:/ bin / bash ./config.sub -buildroot-linux-uclibcgnueabihf失败

配置其他实用程序时可能会发生错误(例如,在配置flex 2.6.4或dropbear等时),但错误的主要部分始终相同:检查目标系统类型... configure:error:/ bin / bash ./config.sub -buildroot-linux-something失败了

无法找到问题的解决方案,请帮助我。

raspberry-pi3 configure buildroot
1个回答
0
投票

我并没有完全知道出了什么问题,但正如你所描述的那样“当我改变buildroot的设置时”,我可以告诉你,buildroot无法在所有情况下从正常的make支持这个。你应该例如使用make clean并进行完全重建。

有关更多信息,请参阅https://buildroot.org/downloads/manual/manual.html#full-rebuild

© www.soinside.com 2019 - 2024. All rights reserved.