您尚未登录。

楼主 #1 2021-02-18 16:03:50

weiyouren
会员
注册时间: 2021-01-11
已发帖子: 9
积分: 9

mangopi_r3 buildroot失败

环境ubuntu 20.10虚拟机,根据https://github.com/aodzip/buildroot-tiny200的说明,按照软件,然后make,失败。前面太多日志了忽略,主要最后

/usr/bin/gcc -DHAVE_CONFIG_H  -DWITH_DEFAULT_ALIGNMENT=STRICT_ALIGNMENT     -DDEFAULT_INLINE=0   -Wall -Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition -Wformat-nonliteral   -DMODET   -I. -I. -I../common -I./../common -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../opcodes  -O2 -I/home/wei/share/buildroot-tiny200/output/host/include -static-libstdc++ -static-libgcc -L/home/wei/share/buildroot-tiny200/output/host/lib -Wl,-rpath,/home/wei/share/buildroot-tiny200/output/host/lib -o run \
  nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a  ../../libiberty/libiberty.a -ldl -lnsl  -L../../zlib -lz -lm
/usr/bin/ld: libsim.a(maverick.o):(.bss+0x60): multiple definition of `DSPregs'; libsim.a(wrapper.o):(.bss+0x60): first defined here
/usr/bin/ld: libsim.a(maverick.o):(.bss+0x0): multiple definition of `DSPsc'; libsim.a(wrapper.o):(.bss+0x0): first defined here
/usr/bin/ld: libsim.a(maverick.o):(.bss+0x20): multiple definition of `DSPacc'; libsim.a(wrapper.o):(.bss+0x20): first defined here
/usr/bin/ld: libsim.a(armemu32.o):(.bss+0x0): multiple definition of `isize'; libsim.a(armemu26.o):(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:267:run] 错误 1
make[4]: *** [Makefile:129:all] 错误 1
make[3]: *** [Makefile:8239:all-sim] 错误 2
make[2]: *** [Makefile:850:all] 错误 2
make[1]: *** [package/pkg-generic.mk:269:/home/wei/share/buildroot-tiny200/output/build/host-gdb-8.2.1/.stamp_built] 错误 2
make: *** [Makefile:84:_all] 错误 2

请赐教

离线

#2 2021-02-18 16:28:57

奔跑的孩子
会员
注册时间: 2021-01-28
已发帖子: 51
积分: 31.5

Re: mangopi_r3 buildroot失败

这是编译哪个库?

离线

楼主 #3 2021-02-19 09:29:20

weiyouren
会员
注册时间: 2021-01-11
已发帖子: 9
积分: 9

Re: mangopi_r3 buildroot失败

问题已经解决,参考https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/726
解压dl/gdb目录下的压缩包,我的是gdb-8.2.1.tar.xz,然后根据参考修改,最后重新打包tar -c gdb-8.2.1 | xz > gdb-8.2.1.tar.xz
make clean
make -j8

最近编辑记录 weiyouren (2021-02-19 09:32:53)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn