查看: 4366|回复: 5

YY3568 源码编译失败问题!!!请教(新手)

[复制链接]

1

主题

2

回帖

11

积分

新手上路

Rank: 1

积分
11
发表于 2023-2-28 10:25:44 | 显示全部楼层 |阅读模式
source build/envsetup.sh

lunch 4

./build.sh -UKAu
编译报以下错误  


//usr/local/lib/libpthread.so.0: undefined reference to `__pause_nocancel@GLIBC_PRIVATE'
//usr/local/lib/libpthread.so.0: undefined reference to `__nanosleep_nocancel@GLIBC_PRIVATE'
//usr/local/lib/libpthread.so.0: undefined reference to `__open64_nocancel@GLIBC_PRIVATE'
//usr/local/lib/libpthread.so.0: undefined reference to `__libc_fcntl64@GLIBC_PRIVATE'
//usr/local/lib/libpthread.so.0: undefined reference to `__write_nocancel@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status
scripts/Makefile.host:90: recipe for target 'scripts/extract-cert' failed
make[1]: *** [scripts/extract-cert] Error 1
make[1]: *** Waiting for unfinished jobs....
  LEX     scripts/genksyms/lex.lex.c
  CC      arch/arm64/kernel/asm-offsets.s
  YACC    scripts/genksyms/parse.tab.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/dtc/dtc
  CALL    scripts/checksyscalls.sh
  HOSTLD  scripts/mod/modpost
  HOSTLD  scripts/genksyms/genksyms
  LDS     arch/arm64/kernel/vdso/vdso.lds
  CC      arch/arm64/kernel/vdso/vgettimeofday.o
  AS      arch/arm64/kernel/vdso/sigreturn.o
  AS      arch/arm64/kernel/vdso/note.o
Makefile:1210: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
  LD      arch/arm64/kernel/vdso/vdso.so.dbg
  VDSOSYM include/generated/vdso-offsets.h


#### failed to build some targets (8 seconds) ####


回复

使用道具 举报

22

主题

352

回帖

1900

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1900
QQ
发表于 2023-2-28 14:19:47 | 显示全部楼层
在这句之前报什么错,collect2: error: ld returned 1 exit status
回复 支持 反对

使用道具 举报

1

主题

2

回帖

11

积分

新手上路

Rank: 1

积分
11
 楼主| 发表于 2023-2-28 15:24:31 | 显示全部楼层
#### build completed successfully (9 seconds) ####

scripts/kconfig/conf  --syncconfig Kconfig
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/mkkrnlimg
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/resource_tool
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/mod/mk_elfconfig
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  CC      scripts/mod/empty.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/selinux/genheaders/genheaders
  YACC    scripts/genksyms/parse.tab.c
  LEX     scripts/genksyms/lex.lex.c
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/dtc/srcpos.o
  CC      scripts/mod/devicetable-offsets.s
  YACC    scripts/genksyms/parse.tab.h
  CC      kernel/bounds.s
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  YACC    scripts/dtc/dtc-parser.tab.h
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTCC  scripts/mod/file2alias.o
  CC      arch/arm64/kernel/asm-offsets.s
  YACC    scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
//usr/local/lib/libpthread.so.0: undefined reference to `__pause_nocancel@GLIBC_PRIVATE'
//usr/local/lib/libpthread.so.0: undefined reference to `__nanosleep_nocancel@GLIBC_PRIVATE'
//usr/local/lib/libpthread.so.0: undefined reference to `__open64_nocancel@GLIBC_PRIVATE'
//usr/local/lib/libpthread.so.0: undefined reference to `__libc_fcntl64@GLIBC_PRIVATE'
//usr/local/lib/libpthread.so.0: undefined reference to `__write_nocancel@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status
scripts/Makefile.host:90: recipe for target 'scripts/extract-cert' failed
make[1]: *** [scripts/extract-cert] Error 1
make[1]: *** Waiting for unfinished jobs....
  HOSTLD  scripts/dtc/dtc
  CALL    scripts/checksyscalls.sh
  HOSTLD  scripts/genksyms/genksyms
  HOSTLD  scripts/mod/modpost
Makefile:1210: recipe for target 'scripts' failed
make: *** [scripts] Error 2
回复 支持 反对

使用道具 举报

22

主题

352

回帖

1900

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1900
QQ
发表于 2023-2-28 18:00:24 | 显示全部楼层
风火轮用户V5WMk 发表于 2023-2-28 15:24
#### build completed successfully (9 seconds) ####

scripts/kconfig/conf  --syncconfig Kconfig

你用的是那个版本的Ubuntu编译
回复 支持 反对

使用道具 举报

1

主题

2

回帖

11

积分

新手上路

Rank: 1

积分
11
 楼主| 发表于 2023-3-1 10:04:10 | 显示全部楼层
18.04
回复

使用道具 举报

22

主题

352

回帖

1900

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1900
QQ
发表于 2023-3-1 13:55:49 | 显示全部楼层

安装一下编译环境
sudo apt-get update

sudo apt-get install git gnupg flex bison gperf libsdl1.2-dev \
libesd-java libwxgtk3.0-dev squashfs-tools build-essential zip curl \
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils \
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev \
lib32readline-dev gcc-multilib libswitch-perl libssl-dev unzip zip device-tree-compiler \
liblz4-tool python-pyelftools python3-pyelftools -y
还报错的话,单独编译看一下是什么问题
cd kernel
make  ARCH=arm64 rockchip_defconfig android-11.config
make  ARCH=arm64 rk3568-evb1-ddr4-v10.img -j16
cd -
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|风火轮WIKI|手机版|小黑屋|深圳风火轮团队 ( 粤ICP备17095099号 )

GMT+8, 2024-11-21 20:04 , Processed in 0.055713 second(s), 20 queries .

快速回复 返回顶部 返回列表
 
【客服1】 商务合作 15289193
【客服2】 业务洽谈 13257599
【客服3】 售前咨询 510313198
【邮箱】
smartfire@smartfire.cn