YY3568 源码编译失败问题!!!请教(新手)
source build/envsetup.shlunch 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: *** Error 1
make: *** Waiting for unfinished jobs....
LEX scripts/genksyms/lex.lex.c
CC arch/arm64/kernel/asm-offsets.s
YACC scripts/genksyms/parse.tab.h
HOSTCCscripts/mod/file2alias.o
HOSTCCscripts/dtc/dtc-lexer.lex.o
HOSTCCscripts/dtc/dtc-parser.tab.o
HOSTCCscripts/genksyms/parse.tab.o
HOSTCCscripts/genksyms/lex.lex.o
HOSTLDscripts/dtc/dtc
CALL scripts/checksyscalls.sh
HOSTLDscripts/mod/modpost
HOSTLDscripts/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: *** 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) ####
在这句之前报什么错,collect2: error: ld returned 1 exit status #### build completed successfully (9 seconds) ####
scripts/kconfig/conf--syncconfig Kconfig
HOSTCCscripts/bin2c
HOSTCCscripts/mkkrnlimg
HOSTCCscripts/kallsyms
HOSTCCscripts/resource_tool
HOSTCCscripts/sortextable
HOSTCCscripts/asn1_compiler
HOSTCCscripts/dtc/data.o
HOSTCCscripts/dtc/dtc.o
HOSTCCscripts/mod/mk_elfconfig
HOSTCCscripts/dtc/flattree.o
HOSTCCscripts/dtc/fstree.o
CC scripts/mod/empty.o
HOSTCCscripts/dtc/livetree.o
HOSTCCscripts/genksyms/genksyms.o
HOSTCCscripts/selinux/genheaders/genheaders
YACC scripts/genksyms/parse.tab.c
LEX scripts/genksyms/lex.lex.c
HOSTCCscripts/dtc/treesource.o
HOSTCCscripts/selinux/mdp/mdp
HOSTCCscripts/dtc/srcpos.o
CC scripts/mod/devicetable-offsets.s
YACC scripts/genksyms/parse.tab.h
CC kernel/bounds.s
HOSTCCscripts/genksyms/parse.tab.o
HOSTCCscripts/dtc/checks.o
HOSTCCscripts/dtc/util.o
LEX scripts/dtc/dtc-lexer.lex.c
MKELF scripts/mod/elfconfig.h
HOSTCCscripts/extract-cert
HOSTCCscripts/mod/modpost.o
HOSTCCscripts/mod/sumversion.o
YACC scripts/dtc/dtc-parser.tab.h
HOSTCCscripts/genksyms/lex.lex.o
HOSTCCscripts/mod/file2alias.o
CC arch/arm64/kernel/asm-offsets.s
YACC scripts/dtc/dtc-parser.tab.c
HOSTCCscripts/dtc/dtc-lexer.lex.o
HOSTCCscripts/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: *** Error 1
make: *** Waiting for unfinished jobs....
HOSTLDscripts/dtc/dtc
CALL scripts/checksyscalls.sh
HOSTLDscripts/genksyms/genksyms
HOSTLDscripts/mod/modpost
Makefile:1210: recipe for target 'scripts' failed
make: *** Error 2
风火轮用户V5WMk 发表于 2023-2-28 15:24
#### build completed successfully (9 seconds) ####
scripts/kconfig/conf--syncconfig Kconfig
你用的是那个版本的Ubuntu编译 18.04 风火轮用户V5WMk 发表于 2023-3-1 10:04
18.04
安装一下编译环境
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
makeARCH=arm64 rockchip_defconfig android-11.config
makeARCH=arm64 rk3568-evb1-ddr4-v10.img -j16
cd -
页:
[1]