OpenEdv-开源电子网

 找回密码
 立即注册
查看: 1229|回复: 11

Rv1126全编kernel编过了后面开始报错

[复制链接]

1

主题

8

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2020-7-2
在线时间
4 小时
发表于 2023-7-12 00:20:20 | 显示全部楼层 |阅读模式
umask 0022 && make -C /home/yaorong/RV1126_linux/Rv1126_rel/buildroot O=/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126
2023-07-12T00:01:39 /usr/bin/make -j1 O=/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
2023-07-12T00:01:39 GEN     /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/Makefile
2023-07-12T00:01:39 >>> qt5base 5.12.2 Configuring
2023-07-12T00:01:39 mkdir -p /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/
2023-07-12T00:01:39 sed 's/@EGLFS_DEVICE@//g' package/qt5/qt5base//qmake.conf.in > /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/qmake.conf
2023-07-12T00:01:39 /usr/bin/install -m 0644 -D package/qt5/qt5base//qplatformdefs.h /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h
2023-07-12T00:01:39 touch /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/arch.conf
2023-07-12T00:01:39 printf 'LIBS += -latomicn' >/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/arch.conf
2023-07-12T00:01:39 /usr/bin/sed -i -e 's,^QMAKE_CCs*=.*,QMAKE_CC = /usr/bin/gcc,' /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/common/g++-base.conf
2023-07-12T00:01:39 /usr/bin/sed -i -e 's,^QMAKE_CXXs*=.*,QMAKE_CXX = /usr/bin/g++,' /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/common/g++-base.conf
2023-07-12T00:01:39 (cd /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2; PATH="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin:/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" RecoveryNoUi=true PKG_CONFIG="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/pkg-config" MAKEFLAGS="-j13  --no-print-directory" ./configure -v -prefix /usr -hostprefix /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host -headerdir /usr/include/qt5 -sysroot /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot -plugindir /usr/lib/qt/plugins -examplesdir /usr/lib/qt/examples -no-rpath -nomake tests -device buildroot -device-option CROSS_COMPILE="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/arm-linux-gnueabihf-" -device-option BR_COMPILER_CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON -mfpu=neon" -device-option BR_COMPILER_CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON" -optimized-qmake -no-iconv -system-zlib -system-pcre -no-pch -shared -no-optimize-debug -no-sse2 -kms -gbm -release -opensource -confirm-license -no-cups -plugin-sql-mysql -mysql_config /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/bin/mysql_config -no-sql-psql -plugin-sql-sqlite   -gui -system-freetype -no-harfbuzz -widgets --enable-linuxfb -no-directfb -no-xcb -opengl es2 -qpa linuxfb -eglfs -openssl -fontconfig  -system-libjpeg -system-libpng -dbus -tslib -glib -no-icu -nomake examples -no-libinput -no-gtk -no-journald QMAKE_CXXFLAGS+=-DQT_FB_DRM_RGB565 -no-syslog  )
2023-07-12T00:01:39 Creating qmake...
2023-07-12T00:01:39 gmake[2]: Nothing to be done for 'first'.
2023-07-12T00:01:39 Command line: -v -prefix /usr -hostprefix /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host -headerdir /usr/include/qt5 -sysroot /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot -plugindir /usr/lib/qt/plugins -examplesdir /usr/lib/qt/examples -no-rpath -nomake tests -device buildroot -device-option CROSS_COMPILE=/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/arm-linux-gnueabihf- -device-option 'BR_COMPILER_CFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON -mfpu=neon' -device-option 'BR_COMPILER_CXXFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON' -optimized-qmake -no-iconv -system-zlib -system-pcre -no-pch -shared -no-optimize-debug -no-sse2 -kms -gbm -release -opensource -confirm-license -no-cups -plugin-sql-mysql -mysql_config /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/bin/mysql_config -no-sql-psql -plugin-sql-sqlite -gui -system-freetype -no-harfbuzz -widgets --enable-linuxfb -no-directfb -no-xcb -opengl es2 -qpa linuxfb -eglfs -openssl -fontconfig -system-libjpeg -system-libpng -dbus -tslib -glib -no-icu -nomake examples -no-libinput -no-gtk -no-journald QMAKE_CXXFLAGS+=-DQT_FB_DRM_RGB565 -no-syslog
2023-07-12T00:01:39 Project ERROR: Cannot run target compiler '/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/arm-linux-gnueabihf-g++'. Output:
2023-07-12T00:01:39 ===================
2023-07-12T00:01:39 ===================
2023-07-12T00:01:39 Maybe you forgot to setup the environment?
2023-07-12T00:01:39 make[1]: *** [package/pkg-generic.mk:221: /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/.stamp_configured] Error 3
2023-07-12T00:01:39 make: *** [/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/Makefile:16: _all] Error 2
2023-07-12T00:04:22 umask 0022 && make -C /home/yaorong/RV1126_linux/Rv1126_rel/buildroot O=/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126
2023-07-12T00:04:25 /usr/bin/make -j1 O=/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
2023-07-12T00:04:25 GEN     /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/Makefile
2023-07-12T00:04:25 >>> qt5base 5.12.2 Configuring
2023-07-12T00:04:25 mkdir -p /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/
2023-07-12T00:04:25 sed 's/@EGLFS_DEVICE@//g' package/qt5/qt5base//qmake.conf.in > /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/qmake.conf
2023-07-12T00:04:25 /usr/bin/install -m 0644 -D package/qt5/qt5base//qplatformdefs.h /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h
2023-07-12T00:04:25 touch /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/arch.conf
2023-07-12T00:04:25 printf 'LIBS += -latomicn' >/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/devices/linux-buildroot-g++/arch.conf
2023-07-12T00:04:25 /usr/bin/sed -i -e 's,^QMAKE_CCs*=.*,QMAKE_CC = /usr/bin/gcc,' /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/common/g++-base.conf
2023-07-12T00:04:25 /usr/bin/sed -i -e 's,^QMAKE_CXXs*=.*,QMAKE_CXX = /usr/bin/g++,' /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/mkspecs/common/g++-base.conf
2023-07-12T00:04:25 (cd /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2; PATH="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin:/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" RecoveryNoUi=true PKG_CONFIG="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/pkg-config" MAKEFLAGS="-j13  --no-print-directory" ./configure -v -prefix /usr -hostprefix /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host -headerdir /usr/include/qt5 -sysroot /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot -plugindir /usr/lib/qt/plugins -examplesdir /usr/lib/qt/examples -no-rpath -nomake tests -device buildroot -device-option CROSS_COMPILE="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/arm-linux-gnueabihf-" -device-option BR_COMPILER_CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON -mfpu=neon" -device-option BR_COMPILER_CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON" -optimized-qmake -no-iconv -system-zlib -system-pcre -no-pch -shared -no-optimize-debug -no-sse2 -kms -gbm -release -opensource -confirm-license -no-cups -plugin-sql-mysql -mysql_config /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/bin/mysql_config -no-sql-psql -plugin-sql-sqlite   -gui -system-freetype -no-harfbuzz -widgets --enable-linuxfb -no-directfb -no-xcb -opengl es2 -qpa linuxfb -eglfs -openssl -fontconfig  -system-libjpeg -system-libpng -dbus -tslib -glib -no-icu -nomake examples -no-libinput -no-gtk -no-journald QMAKE_CXXFLAGS+=-DQT_FB_DRM_RGB565 -no-syslog  )
2023-07-12T00:04:25 Creating qmake...
2023-07-12T00:04:25 gmake[2]: Nothing to be done for 'first'.
2023-07-12T00:04:25 Command line: -v -prefix /usr -hostprefix /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host -headerdir /usr/include/qt5 -sysroot /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot -plugindir /usr/lib/qt/plugins -examplesdir /usr/lib/qt/examples -no-rpath -nomake tests -device buildroot -device-option CROSS_COMPILE=/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/arm-linux-gnueabihf- -device-option 'BR_COMPILER_CFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON -mfpu=neon' -device-option 'BR_COMPILER_CXXFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON' -optimized-qmake -no-iconv -system-zlib -system-pcre -no-pch -shared -no-optimize-debug -no-sse2 -kms -gbm -release -opensource -confirm-license -no-cups -plugin-sql-mysql -mysql_config /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/bin/mysql_config -no-sql-psql -plugin-sql-sqlite -gui -system-freetype -no-harfbuzz -widgets --enable-linuxfb -no-directfb -no-xcb -opengl es2 -qpa linuxfb -eglfs -openssl -fontconfig -system-libjpeg -system-libpng -dbus -tslib -glib -no-icu -nomake examples -no-libinput -no-gtk -no-journald QMAKE_CXXFLAGS+=-DQT_FB_DRM_RGB565 -no-syslog
2023-07-12T00:04:25 Project ERROR: Cannot run target compiler '/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/arm-linux-gnueabihf-g++'. Output:
2023-07-12T00:04:25 ===================
2023-07-12T00:04:25 ===================
2023-07-12T00:04:25 Maybe you forgot to setup the environment?
2023-07-12T00:04:25 make[1]: *** [package/pkg-generic.mk:221: /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/qt5base-5.12.2/.stamp_configured] Error 3
2023-07-12T00:04:25 make: *** [/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/Makefile:16: _all] Error 2


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

9

主题

890

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
2390
金钱
2390
注册时间
2019-9-25
在线时间
397 小时
发表于 2023-7-12 10:23:54 | 显示全部楼层
本帖最后由 仰望星空之云 于 2023-8-12 09:27 编辑

你这是编译到文件系统buildroot就报错了。这里给你一些建议。
建议您这边直接一键编译,一键编译的步骤是:
1、编译之前,记得已经提前安装了这些库,环境搭建的时候都建议提前在Ubuntu下装好(原子的教程里有写):
sudo apt-get install device-tree-compiler git-core u-boot-tools mtools parted libudev-dev
sudo apt-get install libusb-1.0-0-dev autoconf autotools-dev libsigsegv2 m4 intltool libdrm-dev
sudo apt-get install curl sed make binutils build-essential gcc g++ bash patch gzip gawk bzip2
sudo apt-get install perl tar cpio python unzip rsync file bc wget libncurses5 libglib2.0-dev
sudo apt-get install libgtk2.0-dev libglade2-dev cvs git mercurial openssh-client subversion
sudo apt-get install asciidoc w3m dblatex graphviz libc6:i386 libssl-dev expect fakeroot cmake
sudo apt-get install flex bison liblz4-tool libtool keychain net-tools adb lib32gcc-7-dev g++-7
sudo apt-get install libstdc++-7-dev libncurses5-dev libncursesw5-dev

2、记得解压教程里提供的dl压缩包到Buildroot下,教程里有说怎么操作,这个非常关键,不要漏了,且注意,解压以后得目录是这样子的(观察一下你解压后的目录,看图这里,是SDK目录下的Buildroot下的dl目录下有压缩包,这样子的才是对的,如果你的是SDK目录下的dl/dl下有压缩包,多了一个dl目录,这是不对的):
1.png
3、ubuntu的内存不建议设置的太小,建议设置为16GB,本身一键编译就是编译整个SDK,在编译到文件系统的时候,要编译很多很多的组件,需要占用ubuntu内存。如果你的Ubuntu内存没办法设置16GB,那就设置8GB吧,这是最低最低的要求了,设置为8GB的时候,在编译的时候,你得观察一下是不是ubuntu得交换区不够用了,去释放一下交换区,这个网上查,几条命令搞定

4、根据自己编译后的经验,SDK在一键编译完以后,占用约44GB的磁盘存储空间,所以,大家在编译之前,注意留够存储空间(怎么的也要远大于44GB,不然不够用),若不够的话,可能编译的时候就报错了

5、环境,用Ubuntu18.04或者20.04是可以的,本人试过。不建议使用其它版本,特别是高版本的ubuntu,切记

6、重点提醒:
如果在Ubuntu下安装和使用Anaconda、Miniconda和Conda虚拟环境的话,建议先退出这些虚拟环境,回到Ubuntu自带的虚拟环境以后,再来编译SDK,不能在Conda切换的虚拟环境下编译SDK,会出问题

7、以上确认好了,那就一键编译吧,新的SDK看《【正点原子】ATK-DLRV1126 系统开发手册V1.3》,一键编译的操作步骤:
先清除之前编译的所有东西:
./build.sh cleanall

配置:
./build.sh lunch
选择1

./envsetup.sh
选择1

一键编译:
./build.sh



回复 支持 反对

使用道具 举报

1

主题

8

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2020-7-2
在线时间
4 小时
 楼主| 发表于 2023-7-12 23:38:08 | 显示全部楼层
1.所有的包已经同步
2.已全部解压
3.Ubuntu配置16G+12线程
4.20.04
5.配置了150G
6.都已配置完成

全编译的时候出现kernel已完成
后面开始报错
ccio4-supply
regulator-min-microvolt =  1800mV
regulator-max-microvolt =  1800mV


vccio6-supply
regulator-min-microvolt =  1800mV
regulator-max-microvolt =  1800mV


vccio7-supply
regulator-min-microvolt =  1800mV
regulator-max-microvolt =  1800mV
Running build_kernel succeeded.
Skipping build_toolchain for missing configs:  RK_CFG_TOOLCHAIN.
==========Start building buildroot==========
TARGET_BUILDROOT_CONFIG=alientek_rv1126
=========================================
Top of tree: /home/yaorong/RV1126_linux/Rv1126_rel
===========================================

...
...

2023-07-12T23:32:23 checking which shell to use for syscmd... /bin/sh
2023-07-12T23:32:23 checking if malloc debugging is wanted... no
2023-07-12T23:32:23 checking that generated files are newer than configure... done
2023-07-12T23:32:23 configure: creating ./config.status
2023-07-12T23:32:23 config.status: creating Makefile
2023-07-12T23:32:23 config.status: creating doc/Makefile
2023-07-12T23:32:23 config.status: creating lib/Makefile
2023-07-12T23:32:23 config.status: creating src/Makefile
2023-07-12T23:32:23 config.status: creating tests/Makefile
2023-07-12T23:32:23 config.status: creating checks/Makefile
2023-07-12T23:32:23 config.status: creating examples/Makefile
2023-07-12T23:32:23 config.status: creating lib/config.h
2023-07-12T23:32:23 config.status: executing depfiles commands
2023-07-12T23:32:23 config.status: executing stamp-h commands
2023-07-12T23:32:23 configure: WARNING: unrecognized options: --enable-shared, --disable-static, --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --disable-debug, --with-xmlto, --with-fop, --disable-static
2023-07-12T23:32:23 >>> host-m4 1.4.18 Building
2023-07-12T23:32:23 PATH="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin:/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" PKG_CONFIG="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/lib/pkgconfig:/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/share/pkgconfig"  /usr/bin/make -j13  -C /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/host-m4-1.4.18/
2023-07-12T23:32:23 /usr/bin/make  all-recursive
2023-07-12T23:32:23 Making all in .
2023-07-12T23:32:23 make[4]: Nothing to be done for 'all-am'.
2023-07-12T23:32:23 Making all in examples
2023-07-12T23:32:23 make[4]: Nothing to be done for 'all'.
2023-07-12T23:32:23 Making all in lib
2023-07-12T23:32:23 GEN      alloca.h
2023-07-12T23:32:23 GEN      c++defs.h
2023-07-12T23:32:23 GEN      configmake.h
2023-07-12T23:32:23 GEN      arg-nonnull.h
2023-07-12T23:32:23 GEN      warn-on-use.h
2023-07-12T23:32:23 GEN      limits.h
2023-07-12T23:32:23 GEN      unused-parameter.h
2023-07-12T23:32:23 GEN      sys/types.h
2023-07-12T23:32:23 GEN      fcntl.h
2023-07-12T23:32:23 GEN      langinfo.h
2023-07-12T23:32:23 GEN      locale.h
2023-07-12T23:32:23 GEN      math.h
2023-07-12T23:32:23 GEN      signal.h
2023-07-12T23:32:23 GEN      stdio.h
2023-07-12T23:32:23 GEN      spawn.h
2023-07-12T23:32:23 GEN      stdlib.h
2023-07-12T23:32:23 GEN      string.h
2023-07-12T23:32:23 GEN      sys/time.h
2023-07-12T23:32:23 GEN      time.h
2023-07-12T23:32:23 GEN      unistd.h
2023-07-12T23:32:23 GEN      sys/wait.h
2023-07-12T23:32:23 GEN      wchar.h
2023-07-12T23:32:23 GEN      wctype.h
2023-07-12T23:32:23 GEN      sys/stat.h
2023-07-12T23:32:23 /usr/bin/make  all-am
2023-07-12T23:32:23 CC       gl_avltree_oset.o
2023-07-12T23:32:23 CC       binary-io.o
2023-07-12T23:32:23 CC       c-ctype.o
2023-07-12T23:32:23 CC       c-stack.o
2023-07-12T23:32:23 CC       c-strcasecmp.o
2023-07-12T23:32:23 CC       c-strncasecmp.o
2023-07-12T23:32:23 CC       clean-temp.o
2023-07-12T23:32:23 CC       cloexec.o
2023-07-12T23:32:23 CC       closein.o
2023-07-12T23:32:23 CC       close-stream.o
2023-07-12T23:32:23 CC       closeout.o
2023-07-12T23:32:23 CC       dirname.o
2023-07-12T23:32:23 In file included from /usr/include/signal.h:328,
2023-07-12T23:32:23 from ./signal.h:52,
2023-07-12T23:32:23 from c-stack.c:49:
2023-07-12T23:32:23 c-stack.c:55:26: error: missing binary operator before token "("
2023-07-12T23:32:23 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
2023-07-12T23:32:23 |                          ^~~~~~~~
2023-07-12T23:32:23 make[5]: *** [Makefile:1915: c-stack.o] Error 1
2023-07-12T23:32:23 make[5]: *** Waiting for unfinished jobs....
2023-07-12T23:32:23 CC       basename.o
2023-07-12T23:32:23 make[4]: *** [Makefile:1674: all] Error 2
2023-07-12T23:32:23 make[3]: *** [Makefile:1572: all-recursive] Error 1
2023-07-12T23:32:23 make[2]: *** [Makefile:1528: all] Error 2
2023-07-12T23:32:23 make[1]: *** [package/pkg-generic.mk:231: /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/host-m4-1.4.18/.stamp_built] Error 2
2023-07-12T23:32:23 make: *** [/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/Makefile:16: _all] Error 2
Command exited with non-zero status 1
you take 0:37.51 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 563:
    /usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
回复 支持 反对

使用道具 举报

1

主题

8

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2020-7-2
在线时间
4 小时
 楼主| 发表于 2023-7-12 23:46:53 | 显示全部楼层
buildroot/dl包解压也是没问题的

yaorong@yaorong:~/RV1126_linux/Rv1126_rel/buildroot/dl$ ll
总计 1400984
drwxrwxr-x  2 yaorong yaorong     20480  7月 12 22:51 ./
drwxrwxr-x 17 yaorong yaorong      4096  7月 12 23:28 ../
-rw-r--r--  1 yaorong yaorong    386604 11月  8  2022 acl-2.2.52.src.tar.gz
-rw-r--r--  1 yaorong yaorong    979225 11月  8  2022 alsa-lib-1.1.5.tar.bz2
-rw-r--r--  1 yaorong yaorong    366999 11月  8  2022 alsa-plugins-1.1.5.tar.bz2
-rw-r--r--  1 yaorong yaorong   1202691 11月  8  2022 alsa-utils-1.1.5.tar.bz2
-rw-r--r--  1 yaorong yaorong    154346 11月  8  2022 android-tools_4.2.2+git20130218-3ubuntu41.debian.tar.gz
-rw-r--r--  1 yaorong yaorong    215868 11月  8  2022 android-tools_4.2.2+git20130218.orig.tar.xz
-rw-r--r--  1 yaorong yaorong    299100 11月  8  2022 atk-2.36.0.tar.xz
-rw-r--r--  1 yaorong yaorong    343692 11月  8  2022 attr-2.4.47.src.tar.gz
-rw-r--r--  1 yaorong yaorong   1214744 11月  8  2022 autoconf-2.69.tar.xz
-rw-r--r--  1 yaorong yaorong   1509496 11月  8  2022 automake-1.15.1.tar.xz
-rw-r--r--  1 yaorong yaorong   1333400 11月  8  2022 avahi-0.7.tar.gz
-rw-r--r--  1 yaorong yaorong   9463431 11月  8  2022 bash-4.4.12.tar.gz
-rw-r--r--  1 yaorong yaorong     92721 11月  8  2022 bctoolbox-0.4.0.tar.gz
-rw-r--r--  1 yaorong yaorong    150815 11月  8  2022 bdftopcf-1.1.tar.bz2
-rw-r--r--  1 yaorong yaorong   1973796 11月  8  2022 bison-3.0.4.tar.xz


回复 支持 反对

使用道具 举报

1

主题

8

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2020-7-2
在线时间
4 小时
 楼主| 发表于 2023-7-12 23:55:52 | 显示全部楼层
configuration written to /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/.config
#
make: Leaving directory '/home/yaorong/RV1126_linux/Rv1126_rel/buildroot'
2023-07-12T23:31:49 >>> host-tar 1.29 Extracting
2023-07-12T23:31:50 >>> host-tar 1.29 Patching
2023-07-12T23:31:50 >>> host-tar 1.29 Updating config.sub and config.guess
2023-07-12T23:31:50 >>> host-tar 1.29 Patching libtool
2023-07-12T23:31:50 >>> host-tar 1.29 Configuring
2023-07-12T23:32:07 >>> host-tar 1.29 Building
2023-07-12T23:32:08 >>> host-tar 1.29 Installing to host directory
2023-07-12T23:32:08 >>> host-lzip 1.19 Extracting
2023-07-12T23:32:08 >>> host-lzip 1.19 Patching
2023-07-12T23:32:08 >>> host-lzip 1.19 Configuring
2023-07-12T23:32:09 >>> host-lzip 1.19 Building
2023-07-12T23:32:09 >>> host-lzip 1.19 Installing to host directory
2023-07-12T23:32:09 >>> skeleton-init-common  Extracting
2023-07-12T23:32:09 >>> skeleton-init-common  Patching
2023-07-12T23:32:09 >>> skeleton-init-common  Configuring
2023-07-12T23:32:09 >>> skeleton-init-common  Building
2023-07-12T23:32:09 >>> skeleton-init-common  Installing to staging directory
2023-07-12T23:32:09 >>> skeleton-init-common  Fixing libtool files
2023-07-12T23:32:09 >>> skeleton-init-common  Installing to target
2023-07-12T23:32:09 >>> skeleton-init-sysv  Extracting
2023-07-12T23:32:09 >>> skeleton-init-sysv  Patching
2023-07-12T23:32:09 >>> skeleton-init-sysv  Configuring
2023-07-12T23:32:09 >>> skeleton-init-sysv  Building
2023-07-12T23:32:10 >>> skeleton-init-sysv  Installing to target
2023-07-12T23:32:10 >>> skeleton  Extracting
2023-07-12T23:32:10 >>> skeleton  Patching
2023-07-12T23:32:10 >>> skeleton  Configuring
2023-07-12T23:32:10 >>> skeleton  Building
2023-07-12T23:32:10 >>> skeleton  Installing to target
2023-07-12T23:32:10 >>> toolchain-external-custom  Extracting
2023-07-12T23:32:10 >>> toolchain-external-custom  Patching
2023-07-12T23:32:10 >>> toolchain-external-custom  Configuring
2023-07-12T23:32:10 >>> toolchain-external-custom  Building
2023-07-12T23:32:10 >>> toolchain-external-custom  Installing to staging directory
2023-07-12T23:32:10 >>> toolchain-external-custom  Copying external toolchain sysroot to staging...
2023-07-12T23:32:11 >>> toolchain-external-custom  Installing gdbinit
2023-07-12T23:32:11 >>> toolchain-external-custom  Fixing libtool files
2023-07-12T23:32:11 >>> toolchain-external-custom  Installing to target
2023-07-12T23:32:11 >>> toolchain-external-custom  Copying external toolchain libraries to target...
2023-07-12T23:32:12 >>> toolchain-external  Extracting
2023-07-12T23:32:12 >>> toolchain-external  Patching
2023-07-12T23:32:12 >>> toolchain-external  Configuring
2023-07-12T23:32:12 >>> toolchain-external  Building
2023-07-12T23:32:12 >>> toolchain-external  Installing to target
2023-07-12T23:32:12 >>> toolchain  Extracting
2023-07-12T23:32:12 >>> toolchain  Patching
2023-07-12T23:32:12 >>> toolchain  Configuring
2023-07-12T23:32:12 >>> toolchain  Building
2023-07-12T23:32:12 >>> toolchain  Installing to target
2023-07-12T23:32:12 >>> host-pkgconf 0.9.12 Extracting
2023-07-12T23:32:12 >>> host-pkgconf 0.9.12 Patching
2023-07-12T23:32:12 >>> host-pkgconf 0.9.12 Updating config.sub and config.guess
2023-07-12T23:32:12 >>> host-pkgconf 0.9.12 Patching libtool
2023-07-12T23:32:12 >>> host-pkgconf 0.9.12 Configuring
2023-07-12T23:32:12 >>> host-pkgconf 0.9.12 Building
2023-07-12T23:32:12 >>> host-pkgconf 0.9.12 Installing to host directory
2023-07-12T23:32:12 >>> bzip2 1.0.6 Extracting
2023-07-12T23:32:13 >>> bzip2 1.0.6 Patching
2023-07-12T23:32:13 >>> bzip2 1.0.6 Configuring
2023-07-12T23:32:13 >>> bzip2 1.0.6 Building
2023-07-12T23:32:13 >>> bzip2 1.0.6 Installing to staging directory
2023-07-12T23:32:13 >>> bzip2 1.0.6 Fixing libtool files
2023-07-12T23:32:13 >>> bzip2 1.0.6 Installing to target
2023-07-12T23:32:13 >>> host-m4 1.4.18 Extracting
2023-07-12T23:32:13 >>> host-m4 1.4.18 Patching
2023-07-12T23:32:13 >>> host-m4 1.4.18 Updating config.sub and config.guess
2023-07-12T23:32:13 >>> host-m4 1.4.18 Patching libtool
2023-07-12T23:32:13 >>> host-m4 1.4.18 Configuring
2023-07-12T23:32:23 >>> host-m4 1.4.18 Building
Done in 37s  (error code: 2)
log saved on /home/yaorong/RV1126_linux/Rv1126_rel/br.log
2023-07-12T23:32:22 checking for MAP_ANONYMOUS... yes
2023-07-12T23:32:22 checking for readdir... yes
2023-07-12T23:32:22 checking whether setenv validates arguments... yes
2023-07-12T23:32:22 checking for a traditional french locale... (cached) none
2023-07-12T23:32:22 checking for a french Unicode locale... (cached) none
2023-07-12T23:32:22 checking for a traditional japanese locale... (cached) none
2023-07-12T23:32:22 checking for a transitional chinese locale... (cached) none
2023-07-12T23:32:22 checking whether sleep is declared... yes
2023-07-12T23:32:23 checking for working sleep... yes
2023-07-12T23:32:23 checking for working stdalign.h... yes
2023-07-12T23:32:23 checking for mmap... (cached) yes
2023-07-12T23:32:23 checking for MAP_ANONYMOUS... yes
2023-07-12T23:32:23 checking for mmap... (cached) yes
2023-07-12T23:32:23 checking for MAP_ANONYMOUS... yes
2023-07-12T23:32:23 checking whether symlink handles trailing slash correctly... yes
2023-07-12T23:32:23 checking for unsetenv... yes
2023-07-12T23:32:23 checking for unsetenv() return type... int
2023-07-12T23:32:23 checking whether unsetenv obeys POSIX... yes
2023-07-12T23:32:23 checking for a traditional french locale... (cached) none
2023-07-12T23:32:23 checking for a french Unicode locale... (cached) none
2023-07-12T23:32:23 checking for a traditional japanese locale... (cached) none
2023-07-12T23:32:23 checking for a transitional chinese locale... (cached) none
2023-07-12T23:32:23 checking whether wctob works... guessing yes
2023-07-12T23:32:23 checking whether wctob is declared... yes
2023-07-12T23:32:23 checking whether an open file can be renamed... yes
2023-07-12T23:32:23 checking if changeword is wanted... no
2023-07-12T23:32:23 checking which shell to use for syscmd... /bin/sh
2023-07-12T23:32:23 checking if malloc debugging is wanted... no
2023-07-12T23:32:23 checking that generated files are newer than configure... done
2023-07-12T23:32:23 configure: creating ./config.status
2023-07-12T23:32:23 config.status: creating Makefile
2023-07-12T23:32:23 config.status: creating doc/Makefile
2023-07-12T23:32:23 config.status: creating lib/Makefile
2023-07-12T23:32:23 config.status: creating src/Makefile
2023-07-12T23:32:23 config.status: creating tests/Makefile
2023-07-12T23:32:23 config.status: creating checks/Makefile
2023-07-12T23:32:23 config.status: creating examples/Makefile
2023-07-12T23:32:23 config.status: creating lib/config.h
2023-07-12T23:32:23 config.status: executing depfiles commands
2023-07-12T23:32:23 config.status: executing stamp-h commands
2023-07-12T23:32:23 configure: WARNING: unrecognized options: --enable-shared, --disable-static, --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --disable-debug, --with-xmlto, --with-fop, --disable-static
2023-07-12T23:32:23 >>> host-m4 1.4.18 Building
2023-07-12T23:32:23 PATH="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin:/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" PKG_CONFIG="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/lib/pkgconfig:/home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/host/share/pkgconfig"  /usr/bin/make -j13  -C /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/host-m4-1.4.18/
2023-07-12T23:32:23 /usr/bin/make  all-recursive
2023-07-12T23:32:23 Making all in .
2023-07-12T23:32:23 make[4]: Nothing to be done for 'all-am'.
2023-07-12T23:32:23 Making all in examples
2023-07-12T23:32:23 make[4]: Nothing to be done for 'all'.
2023-07-12T23:32:23 Making all in lib
2023-07-12T23:32:23 GEN      alloca.h
2023-07-12T23:32:23 GEN      c++defs.h
2023-07-12T23:32:23 GEN      configmake.h
2023-07-12T23:32:23 GEN      arg-nonnull.h
2023-07-12T23:32:23 GEN      warn-on-use.h
2023-07-12T23:32:23 GEN      limits.h
2023-07-12T23:32:23 GEN      unused-parameter.h
2023-07-12T23:32:23 GEN      sys/types.h
2023-07-12T23:32:23 GEN      fcntl.h
2023-07-12T23:32:23 GEN      langinfo.h
2023-07-12T23:32:23 GEN      locale.h
2023-07-12T23:32:23 GEN      math.h
2023-07-12T23:32:23 GEN      signal.h
2023-07-12T23:32:23 GEN      stdio.h
2023-07-12T23:32:23 GEN      spawn.h
2023-07-12T23:32:23 GEN      stdlib.h
2023-07-12T23:32:23 GEN      string.h
2023-07-12T23:32:23 GEN      sys/time.h
2023-07-12T23:32:23 GEN      time.h
2023-07-12T23:32:23 GEN      unistd.h
2023-07-12T23:32:23 GEN      sys/wait.h
2023-07-12T23:32:23 GEN      wchar.h
2023-07-12T23:32:23 GEN      wctype.h
2023-07-12T23:32:23 GEN      sys/stat.h
2023-07-12T23:32:23 /usr/bin/make  all-am
2023-07-12T23:32:23 CC       gl_avltree_oset.o
2023-07-12T23:32:23 CC       binary-io.o
2023-07-12T23:32:23 CC       c-ctype.o
2023-07-12T23:32:23 CC       c-stack.o
2023-07-12T23:32:23 CC       c-strcasecmp.o
2023-07-12T23:32:23 CC       c-strncasecmp.o
2023-07-12T23:32:23 CC       clean-temp.o
2023-07-12T23:32:23 CC       cloexec.o
2023-07-12T23:32:23 CC       closein.o
2023-07-12T23:32:23 CC       close-stream.o
2023-07-12T23:32:23 CC       closeout.o
2023-07-12T23:32:23 CC       dirname.o
2023-07-12T23:32:23 In file included from /usr/include/signal.h:328,
2023-07-12T23:32:23 from ./signal.h:52,
2023-07-12T23:32:23 from c-stack.c:49:
2023-07-12T23:32:23 c-stack.c:55:26: error: missing binary operator before token "("
2023-07-12T23:32:23 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
2023-07-12T23:32:23 |                          ^~~~~~~~
2023-07-12T23:32:23 make[5]: *** [Makefile:1915: c-stack.o] Error 1
2023-07-12T23:32:23 make[5]: *** Waiting for unfinished jobs....
2023-07-12T23:32:23 CC       basename.o
2023-07-12T23:32:23 make[4]: *** [Makefile:1674: all] Error 2
2023-07-12T23:32:23 make[3]: *** [Makefile:1572: all-recursive] Error 1
2023-07-12T23:32:23 make[2]: *** [Makefile:1528: all] Error 2
2023-07-12T23:32:23 make[1]: *** [package/pkg-generic.mk:231: /home/yaorong/RV1126_linux/Rv1126_rel/buildroot/output/alientek_rv1126/build/host-m4-1.4.18/.stamp_built] Error 2
回复 支持 反对

使用道具 举报

9

主题

890

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
2390
金钱
2390
注册时间
2019-9-25
在线时间
397 小时
发表于 2023-7-13 09:34:20 | 显示全部楼层
ubuntu版本一样,我这边就没报你那个错 。看网上说的,可能是要你换一个m4的包吧,我们的dl压缩包里是1.4.18版本的
1.png

你可以参考网上的,去下载1.4.19版本的试试吧

https://blog.csdn.net/haigand/article/details/131096029
https://stackoverflow.com/questi ... 0/69722830#69722830


回复 支持 反对

使用道具 举报

1

主题

24

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
294
金钱
294
注册时间
2022-3-30
在线时间
44 小时
发表于 2023-7-13 09:52:52 | 显示全部楼层
你的M4版本太高了,官方的buildroot使用2017版本的。https://blog.csdn.net/xiaoqiaoq0/article/details/112913357参考这个
请叫我海哥牛逼
回复 支持 反对

使用道具 举报

1

主题

8

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2020-7-2
在线时间
4 小时
 楼主| 发表于 2023-7-15 15:07:21 | 显示全部楼层
https://blog.csdn.net/xiaoqiaoq0/article/details/112913357  参考这个之后,发现其中patch内容,在m4的配置文件上已经有了
回复 支持 反对

使用道具 举报

1

主题

8

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2020-7-2
在线时间
4 小时
 楼主| 发表于 2023-7-15 15:31:56 | 显示全部楼层
在buildroot/package/m4文件夹下0001-fflush-adjust-to-glibc-2.28-libio.h-removal已经有相关patch内容了
回复 支持 反对

使用道具 举报

1

主题

8

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2020-7-2
在线时间
4 小时
 楼主| 发表于 2023-7-15 15:34:49 | 显示全部楼层
yaoge 发表于 2023-7-15 15:31
在buildroot/package/m4文件夹下0001-fflush-adjust-to-glibc-2.28-libio.h-removal已经有相关patch内容了
...

这个参考:
你的M4版本太高了,官方的buildroot使用2017版本的。https://blog.csdn.net/xiaoqiaoq0/article/details/112913357参考这个
回复 支持 反对

使用道具 举报

1

主题

8

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2020-7-2
在线时间
4 小时
 楼主| 发表于 2023-7-17 23:08:08 | 显示全部楼层
通过检查发现是Ubuntu的版本自动升级到22.04了,重新安装后编译OK了
回复 支持 反对

使用道具 举报

0

主题

1

帖子

0

精华

新手入门

积分
6
金钱
6
注册时间
2024-7-3
在线时间
0 小时
发表于 2024-7-9 16:29:09 | 显示全部楼层
遇到一样的问题了,发现是bzip2官网不提供下载了,去https://sourceforge.net/projects/bzip2/下载以后把文件放进 buildroot/dl/ 下,就可以了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-22 05:43

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表