Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

链接时提示缺少pcre相关函数 #1

Open
hyperiris opened this issue Jul 8, 2022 · 3 comments
Open

链接时提示缺少pcre相关函数 #1

hyperiris opened this issue Jul 8, 2022 · 3 comments

Comments

@hyperiris
Copy link

hyperiris commented Jul 8, 2022

使用readme中链接的:CLFS for LoongArch64 5.0: loongarch64-clfs-system-5.0.tar.bz2.

编译时有如下错误:
[26185/81407] LINK ./generate_colors_info
FAILED: generate_colors_info
python3 "../../build/toolchain/gcc_link_wrapper.py" --output="./generate_colors_info" -- ../../../../../../../../opt/loongarch64/toolchain/bin/clang++ -Wl,--build-id -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now --target=loongarch64-linux-gnu -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -rdynamic -nostdlib++ --sysroot=../../../../../../../../opt/loongarch64/sysroot -Wl,-z,defs -Wl,--as-needed -pie -Wl,--disable-new-dtags -L/opt/loongarch64/sysroot/usr/lib64 -o "./generate_colors_info" -Wl,--start-group @"./generate_colors_info.rsp" -Wl,--end-group -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -latomic -lexpat -luuid
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libpcre.so.1, needed by /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so, not found (try using -rpath or -rpath-link)
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to pcre_exec' ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to pcre_study'
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to pcre_dfa_exec' ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to pcre_fullinfo'
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to pcre_get_stringnumber' ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to pcre_compile2'
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to pcre_get_stringtable_entries' ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to pcre_free'
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libglib-2.0.so: undefined reference to `pcre_config'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[26218/81407] CXX obj/ui/gfx/x/build_xprotos/xinput.o
ninja: build stopped: subcommand failed.

@hyperiris
Copy link
Author

更新到 loongarch64-clfs-system-5.5.tar.bz2 https://github.com/sunhaiyong1978/CLFS-for-LoongArch/releases

编译时错误提示同上

@hyperiris
Copy link
Author

注意到一个问题,generate_colors_info其实是编译时用来生成代码的工具,这玩意只要编译HOST版本并且运行,经过查看在out/Release_GN_loong64/clang_x64是有生成的,并且它生成的out/Release_GN_loong64/gen/chrome/browser/new_tab_page/chrome_colors/generated_colors_info.h也存在。

从Chromium的编译流程来看,不应该出现generate_colors_info的交叉版本

@wjh-la
Copy link
Collaborator

wjh-la commented Jul 14, 2022

是我的编译设置有问题,我修改一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants