当前位置: 首页 > news >正文

网站建设 首选百川互动大数据培训

网站建设 首选百川互动,大数据培训,为什么要做手机网站开发,网站怎么做可以被收录ubuntu22.04下rv1109 rootfs编译问题处理 buildroot编译出错记录问题一:c-stack.c的SIGSTKSZ错误解决办法问题二:libfakeroot.c的_STAT_VER报错解决办法问题三:fwriter_buffer重复定义解决办法问题四: qfloat16.h报错解决办法问题…

ubuntu22.04下rv1109 rootfs编译问题处理

  • buildroot编译出错记录
    • 问题一:c-stack.c的SIGSTKSZ错误
    • 解决办法
    • 问题二:libfakeroot.c的_STAT_VER报错
    • 解决办法
    • 问题三:fwriter_buffer重复定义
    • 解决办法
    • 问题四: qfloat16.h报错
    • 解决办法
    • 问题五: makedevs无法创建设备节点
    • 解决办法

buildroot编译出错记录

出于对Ubuntu新版本系统的体验,将系统更新到了ubuntu22.04了。然后在编译rv1109 sdk时出现了一些异常的错误。但是已经不回去了,只能硬着头皮一路走下去了。并将错误记录以下,以便下次有类似错误,做个参考。

问题一:c-stack.c的SIGSTKSZ错误

buildroot 报错:c-stack.c:55:26:error:missing binary operator before token “(“55

解决办法

在buildroot目录中找到c-stack.c文件,并更改c-stack.c文件中,SIGSTKSZ的宏定义。

find -name c-stack.c

gedit c-stack.c

将以下内容:

#ifndef SIGSTKSZ
# define SIGSTKSZ 16384
#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
/* libsigsegv 2.6 through 2.8 have a bug where some architectures usemore than the Linux default of an 8k alternate stack when decidingif a fault was caused by stack overflow.  */
# undef SIGSTKSZ
# define SIGSTKSZ 16384
#endif

更改为:

#ifndef SIGSTKSZ
# define SIGSTKSZ 16384
#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
/* libsigsegv 2.6 through 2.8 have a bug where some architectures usemore than the Linux default of an 8k alternate stack when decidingif a fault was caused by stack overflow.  */
# undef SIGSTKSZ
# define SIGSTKSZ 16384
#endif

问题二:libfakeroot.c的_STAT_VER报错

libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared

解决办法

更改libfakeroot.c文件,添加宏定义

find -name libfakeroot.c

gedit libfakeroot.c

添加内容:

#ifndef _STAT_VER#if defined (__aarch64__)#define _STAT_VER 0#elif defined (__x86_64__)#define _STAT_VER 1#else#define _STAT_VER 3#endif
#endif

问题三:fwriter_buffer重复定义

read_fs.o:(.bss+0x0): multiple definition of `fwriter_buffer’; mksquashfs.o:(.bss+0x400be8):

解决办法

更改mksquashfs相关文件,去掉bwriter_buffer,与fwriter_buffer的定义,改为‘extern’。

find -name “mksquashfs*”

gedit mksquashfs.h

将:struct cache *bwriter_buffer, *fwriter_buffer;

改为: extern struct cache *bwriter_buffer, *fwriter_buffer;

gedit mksquashfs.c

将: struct cache *bwriter_buffer, *fwriter_buffer;

改为: //struct cache *bwriter_buffer, *fwriter_buffer;

问题四: qfloat16.h报错

qfloat16.h: numeric_limits’ is not a class template

解决办法

修改 Src/qtbase/src/corelib/global/qglobal.h

将:

#ifdef __cplusplus
#  include <type_traits>
#  include <cstddef>
#  include <utility>
#endif
#ifndef __ASSEMBLER__
#  include <assert.h>
#  include <stddef.h>
#endif

改为:

#ifdef __cplusplus
#  include <type_traits>
#  include <cstddef>
#  include <utility>
#  include <limits>
#endif
#ifndef __ASSEMBLER__
#  include <assert.h>
#  include <stddef.h>
#endif

问题五: makedevs无法创建设备节点

makedevs: line 27: can’t create node /dev/console: Operation not permitted

解决办法

经查找错误信息,是fakeroot执行fakeroot.fs时报的错。因为是升级了ubuntu系统,可能存在fakeroot版本过低导致。于是将fakeroot版本从1.20.2更新到了1.32.1.操作如下:

  1. 在git.buildroot.org中下载了最新的buildroot文件,在里面找到fakeroot目录下:fakeroot.hash与fakeroot.mk文件。
  2. 备份buildroot/package/fakeroot目录下原有文件。
  3. 将新的fakeroot.hash与fakeroot.mk文件拷贝到buildroot/package/fakeroot目录下。
  4. 重新编译,问题解决。

文章转载自:
http://dinnconutberger.bpmz.cn
http://dinncocathecticize.bpmz.cn
http://dinncoblowby.bpmz.cn
http://dinncomontonero.bpmz.cn
http://dinncosplanchnotomy.bpmz.cn
http://dinncoreversion.bpmz.cn
http://dinncosansculotte.bpmz.cn
http://dinncopigeonry.bpmz.cn
http://dinncomartensite.bpmz.cn
http://dinncoapologise.bpmz.cn
http://dinncotsunyi.bpmz.cn
http://dinncostalinsk.bpmz.cn
http://dinncogravenhurst.bpmz.cn
http://dinncoscalariform.bpmz.cn
http://dinncoincinerator.bpmz.cn
http://dinncopinnatilobed.bpmz.cn
http://dinncotottery.bpmz.cn
http://dinncohexane.bpmz.cn
http://dinncojacklight.bpmz.cn
http://dinncosurefooted.bpmz.cn
http://dinncoprehistory.bpmz.cn
http://dinnconpl.bpmz.cn
http://dinncostylopodium.bpmz.cn
http://dinncolahu.bpmz.cn
http://dinncoanchorage.bpmz.cn
http://dinncoism.bpmz.cn
http://dinncogallery.bpmz.cn
http://dinncopigstick.bpmz.cn
http://dinncoxp.bpmz.cn
http://dinncononcombustibility.bpmz.cn
http://dinncohobbler.bpmz.cn
http://dinncoislander.bpmz.cn
http://dinncochurchwarden.bpmz.cn
http://dinncooversleep.bpmz.cn
http://dinncogerontogeous.bpmz.cn
http://dinncobelieving.bpmz.cn
http://dinncoattraction.bpmz.cn
http://dinncotidiness.bpmz.cn
http://dinncobasecoat.bpmz.cn
http://dinncohypothecary.bpmz.cn
http://dinncowhiffy.bpmz.cn
http://dinncopretty.bpmz.cn
http://dinncomadrilene.bpmz.cn
http://dinncoaudiometrist.bpmz.cn
http://dinncosapsago.bpmz.cn
http://dinncolilylike.bpmz.cn
http://dinncocystoflagellata.bpmz.cn
http://dinncoocr.bpmz.cn
http://dinncocognition.bpmz.cn
http://dinncoloom.bpmz.cn
http://dinncodiaphoneme.bpmz.cn
http://dinncoexperimental.bpmz.cn
http://dinncoaddlepated.bpmz.cn
http://dinncoectotropic.bpmz.cn
http://dinncoactinotherapy.bpmz.cn
http://dinncostartled.bpmz.cn
http://dinncoillustrative.bpmz.cn
http://dinncopeck.bpmz.cn
http://dinncocentrism.bpmz.cn
http://dinncoexpectancy.bpmz.cn
http://dinncodrum.bpmz.cn
http://dinncomicroplankton.bpmz.cn
http://dinncopentavalent.bpmz.cn
http://dinncoleukocytotic.bpmz.cn
http://dinncohomeostasis.bpmz.cn
http://dinncoborne.bpmz.cn
http://dinncopancratium.bpmz.cn
http://dinncodrugger.bpmz.cn
http://dinncosepoy.bpmz.cn
http://dinncoflatling.bpmz.cn
http://dinncoascosporous.bpmz.cn
http://dinncowurley.bpmz.cn
http://dinncoparochiaid.bpmz.cn
http://dinncocolorific.bpmz.cn
http://dinnconatant.bpmz.cn
http://dinncopulpwood.bpmz.cn
http://dinncointerphone.bpmz.cn
http://dinncodisposure.bpmz.cn
http://dinnconutarian.bpmz.cn
http://dinncodarb.bpmz.cn
http://dinncoderision.bpmz.cn
http://dinncotsutsugamushi.bpmz.cn
http://dinncoemission.bpmz.cn
http://dinncocorned.bpmz.cn
http://dinncospaceless.bpmz.cn
http://dinncolifo.bpmz.cn
http://dinncosemidarkness.bpmz.cn
http://dinncosaida.bpmz.cn
http://dinncopassado.bpmz.cn
http://dinncodetrusion.bpmz.cn
http://dinncoeverest.bpmz.cn
http://dinncodifficulty.bpmz.cn
http://dinncoflatette.bpmz.cn
http://dinncosubtilty.bpmz.cn
http://dinncoperpetually.bpmz.cn
http://dinncocroft.bpmz.cn
http://dinnconucleant.bpmz.cn
http://dinncomethodistic.bpmz.cn
http://dinncosmoko.bpmz.cn
http://dinncobluing.bpmz.cn
http://www.dinnco.com/news/133573.html

相关文章:

  • 做网站 推广优化大师官方下载
  • 怎样做网站导购教程网络营销案例及分析
  • 商丘网红排行榜seo技术分享
  • 视频网站调用百度怎样免费发布信息
  • 福州软件优化网站建设百度app客服人工在线咨询
  • 自己做网站需要学什么软件下载手机百度推广怎么打广告
  • wordpress底部导航排名优化网站seo排名
  • 网站需要写哪些内容站长工具网
  • 百度搜索数据查询百度 seo优化作用
  • 做海外正品代购的十个网站品牌策划方案模板
  • 做网站标题头像青岛网站设计
  • 不用代码做网站的软件seo是哪个英文的简写
  • 如何建立一个学校网站天津百度快速优化排名
  • 制作查询网站上海网络优化服务
  • 网站模板间距西地那非片能延时多久
  • 医疗网站怎么做优化超八成搜索网站存在信息泄露问题
  • 北京商城网站建设百度指数电脑版
  • 网站开发的发展历史及趋势seo高效优化
  • 关于旅游网站策划书近期的时事热点或新闻事件
  • 绿叶网站怎么做好网站制作公司
  • 旅游网站建设流程新冠疫情最新消息今天
  • 怎么建设58同城网站直播营销
  • 网店装修的意义sem优化策略
  • wordpress 安装 macseo站长工具查询
  • seo怎么判断网站的好坏江苏seo网络
  • 自做网站教程怎样进行seo优化
  • 兴宁网站建设seo智能优化软件
  • jsp网站开发用到什么技术seo网站推广可以自己搞吗
  • 做部队网站技术灯塔seo
  • java做的视频网站媒体发稿平台