您尚未登录。

楼主 # 2023-03-22 19:05:32

gonboy
会员
注册时间: 2023-03-22
已发帖子: 3
积分: 13

T113 编译报错

https://github.com/mangopi-sbc/Tina-Linux

7. t113_mq_r-tina

make 报错如下:

```bash
---------------------------------------err 1 = Makefile:42: *** fatal error! sun8iw20p1 is not support by eyesee-mpp!.  Stop.
ERROR: please fix package/allwinner/eyesee-mpp/dragonboard/Makefile - see logs/package/allwinner/eyesee-mpp/dragonboard/dump.txt for details
ERROR: please fix package/allwinner/eyesee-mpp/middleware/Makefile - see logs/package/allwinner/eyesee-mpp/middleware/dump.txt for details
----------------------------------------
Collecting package info: done
make[1]: Entering directory '/T113/Tina-Linux'
make[2]: Entering directory '/T113/Tina-Linux'
........
make[3]: Entering directory '/T113/Tina-Linux/tools/squashfskit4'
make -C /T113/Tina-Linux/out/t113-mq_r/compile_dir/host/squashfskit-v4.14/squashfs-tools XZ_SUPPORT=1 LZ4_SUPPORT=1 LZMA_XZ_SUPPORT=1 XATTR_SUPPORT=1 LZMA_LIB="/T113/Tina-Linux/out/host/lib/liblzma.a" LZ4_LIB="/T113/Tina-Linux/out/host/lib/liblz4.a" EXTRA_CFLAGS="-I/T113/Tina-Linux/out/host/include" mksquashfs unsquashfs
make[4]: Entering directory '/T113/Tina-Linux/out/t113-mq_r/compile_dir/host/squashfskit-v4.14/squashfs-tools'
./version.sh
Writing squashfs-tools/version.h
cc -I/T113/Tina-Linux/out/host/include -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT   -c -o mksquashfs.o mksquashfs.c
cc   mksquashfs.o read_fs.o action.o swap.o pseudo.o compressor.o sort.o progressbar.o read_file.o info.o restore.o process_fragments.o caches-queues-lists.o gzip_wrapper.o lzma_xz_wrapper.o xz_wrapper.o lzma_xz_options.o /T113/Tina-Linux/out/host/lib/liblzma.a lz4_wrapper.o /T113/Tina-Linux/out/host/lib/liblz4.a xattr.o read_xattrs.o -lpthread -lm -lz -o mksquashfs
/usr/bin/ld: read_fs.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: read_fs.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: action.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: action.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: sort.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: sort.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: info.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: info.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: restore.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: restore.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: process_fragments.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: process_fragments.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: xattr.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: xattr.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
---------------------------------------- err 2
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:262: mksquashfs] Error 1
make[4]: Leaving directory '/T113/Tina-Linux/out/t113-mq_r/compile_dir/host/squashfskit-v4.14/squashfs-tools'
make[3]: *** [Makefile:44: /T113/Tina-Linux/out/t113-mq_r/compile_dir/host/squashfskit-v4.14/.built] Error 2
make[3]: Leaving directory '/T113/Tina-Linux/tools/squashfskit4'
make[2]: *** [tools/Makefile:135: tools/squashfskit4/compile] Error 2
make[2]: Leaving directory '/T113/Tina-Linux'
make[1]: *** [tools/Makefile:133: /T113/Tina-Linux/out/t113-mq_r/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy] Error 2
make[1]: Leaving directory '/T113/Tina-Linux'
make: *** [/T113/Tina-Linux/build/toplevel.mk:306: world] Error 2
[3]+  Done                    $T/tools/build/buildserver --path $T 2> /dev/null 1>&2
----------------------------------------
#### make failed to build some targets (14 seconds) ####
```

如何解决?

最近编辑记录 gonboy (2023-03-22 19:06:34)

离线

楼主 #1 2023-03-22 19:14:47

gonboy
会员
注册时间: 2023-03-22
已发帖子: 3
积分: 13

Re: T113 编译报错

```bash
#below items are used for mpp configuration of previous EyeseeLinux,
#for smooth migration to tina, we reserve these config items, define them here and export.
#ref to mpp_config.mk of EyeseeLinux.
#[config item], valid in makefile.
#config chip version: AW1721
ifeq ($(TARGET_CHIP), sun8iw12p1)
    MPPCFG_CHIP := AW1721
else ifeq ($(TARGET_CHIP), sun8iw16p1)
    MPPCFG_CHIP := AW1816
else ifeq ($(TARGET_CHIP), sun8iw21p1)
    MPPCFG_CHIP := AW1886
else
    $(error fatal error! $(TARGET_CHIP) is not support by eyesee-mpp!)
endif
```
eyesee-mpp\dragonboard\Makefile

T113 不支持 eyesee ??

离线

楼主 #2 2023-03-24 09:12:23

gonboy
会员
注册时间: 2023-03-22
已发帖子: 3
积分: 13

Re: T113 编译报错

顶楼问题已经解决:
新增一个问题:

```bash
x@DESKTOP-23J05F6:~/T113/Tina-Linux$ pack
--==========--
PACK_CHIP         sun8iw20p1
PACK_PLATFORM     tina
PACK_BOARD        t113-mq_r
PACK_KERN
PACK_DEBUG        uart0
PACK_SIG          none
PACK_SECURE       none
PACK_MODE         normal
PACK_FUNC         android
PACK_PROGRAMMER   none
PACK_TAR_IMAGE    none
PACK_TOPDIR       /T113/Tina-Linux
--==========--
No kernel param, parse it from t113
copying tools file
copying configs file
storage_type value is 1
rm /T113/Tina-Linux/out/t113-mq_r/image/sys_partition_nor.fex
rm /T113/Tina-Linux/out/t113-mq_r/image/image_nor.cfg
copying boot resource
copying boot file
make user resource for : /T113/Tina-Linux/out/t113-mq_r/image/sys_partition.fex
handle partition user-res
no user resource partitions
APP_PART_DOWNLOAD_FILE = /T113/Tina-Linux/out/t113-mq_r/image/app.fex
Need size of filesystem
no data resource partitions
don't build dtbo ...
update_chip

sboot file Path=/T113/Tina-Linux/out/t113-mq_r/image/sboot.bin
script file Path=/T113/Tina-Linux/out/t113-mq_r/image/sys_config.bin

update:unable to open sboot file
script update sboot ok
pack boot package
GetPrivateProfileSection read to end
content_count=3
file /T113/Tina-Linux/out/t113-mq_r/image/u-boot.fex cant be open
/T113/Tina-Linux/scripts/pack_img.sh: line 1250: 13891 Segmentation fault      dragonsecboot -pack boot_package.cfg
ERROR: dragon pack run error
```

离线

#3 2023-03-24 14:17:56

suibian
会员
注册时间: 2023-03-24
已发帖子: 2
积分: 2

Re: T113 编译报错

芒果派的固件很好编译过啊,参考https://debugdump.com/topic/2117/%E5%85%A8%E5%BF%97t113-s3_100ask-%E7%BC%96%E8%AF%91tina%E7%B3%BB%E7%BB%9F%E5%88%9D%E4%BD%93%E9%AA%8C?lang=zh-CN

但是我改SPI NAND编译之后烧写不了,报错信息sunxi Wait for fes device timeout,不知道有没大神解答下

离线

#5 2023-08-14 16:49:53

zzz123
会员
注册时间: 2023-07-31
已发帖子: 1
积分: 1

Re: T113 编译报错

@gonboy
你好,pack问题怎么解决的啊,我也遇到了这个问题

离线

#6 2023-12-04 10:33:13

nufing
会员
注册时间: 2020-01-02
已发帖子: 91
积分: 85.5

Re: T113 编译报错

我也遇到这样的问题, 有没有解决了?

离线

页脚

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

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