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

libcef链接失败 #2

Open
hyperiris opened this issue Jul 8, 2022 · 1 comment
Open

libcef链接失败 #2

hyperiris opened this issue Jul 8, 2022 · 1 comment

Comments

@hyperiris
Copy link

hyperiris commented Jul 8, 2022

issue 1中,屏蔽
chrome/browser/BUILD.gn 4445 #"//chrome/browser/new_tab_page/chrome_colors:generate_colors_info",
chrome/browser/ui/BUILD.gn 3350 #"//chrome/browser/new_tab_page/chrome_colors:generate_colors_info",
可以跳过pcre链接错误继续编译,到了libcef的链接时,会出现以下错误:
(已经确认sysroot没有问题)

ninja: Entering directory out/Release_GN_loong64/' [0/1] Regenerating ninja files [9/9] LINK ./cefsimple FAILED: cefsimple python3 "../../build/toolchain/gcc_link_wrapper.py" --output="./cefsimple" -- ../../../../../../../../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 -Wl,-rpath=\$ORIGIN -L/opt/loongarch64/sysroot/usr/lib64 -o "./cefsimple" -Wl,--start-group @"./cefsimple.rsp" ./libcef.so -Wl,--end-group -lX11 -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libsmime3.so, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libnss3.so, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libnssutil3.so, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libnspr4.so, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libatk-1.0.so.0, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libatk-bridge-2.0.so.0, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libcups.so.2, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libgio-2.0.so.0, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libXcomposite.so.1, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libXdamage.so.1, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libXext.so.6, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libXfixes.so.3, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libXrandr.so.2, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libXtst.so.6, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libgbm.so.1, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libexpat.so.1, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libdrm.so.2, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libxcb.so.1, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libxkbcommon.so.0, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libwayland-client.so.0, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libdbus-1.so.3, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libpango-1.0.so.0, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libcairo.so.2, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libasound.so.2, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libatspi.so.0, needed by ./libcef.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libXau.so.6, needed by /opt/loongarch64/sysroot/usr/lib64/libX11.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libXdmcp.so.6, needed by /opt/loongarch64/sysroot/usr/lib64/libX11.so, not found (try using -rpath or -rpath-link) ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: warning: libffi.so.8, needed by /opt/loongarch64/sysroot/usr/lib64/libgobject-2.0.so, not found (try using -rpath or -rpath-link) ../../../../../../../../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: ./libcef.so: undefined reference to PORT_NewArena@NSS_3.2'
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: ./libcef.so: undefined reference to `atk_hyperlink_get_start_index'

太长,删除了一部分

../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: ./libcef.so: undefined reference to snd_pcm_hw_params_set_rate_near@ALSA_0.9.0rc4' ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: ./libcef.so: undefined reference to dbus_connection_set_dispatch_status_function@LIBDBUS_1_3'
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: ./libcef.so: undefined reference to dbus_message_iter_next@LIBDBUS_1_3' ../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: /opt/loongarch64/sysroot/usr/lib64/libgobject-2.0.so: undefined reference to ffi_type_void@LIBFFI_BASE_8.0'
../../../../../../../../opt/loongarch64/toolchain/bin/loongarch64-linux-gnu-ld: ./libcef.so: undefined reference to `dbus_connection_send_with_reply_and_block@LIBDBUS_1_3'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: cannot make progress due to previous errors.

@wjh-la
Copy link
Collaborator

wjh-la commented Jul 14, 2022

关于链接问题是编译binutils-gdb的配置问题,已经修复

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