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

ninja build failed #7

Open
RangoW opened this issue Dec 10, 2024 · 1 comment
Open

ninja build failed #7

RangoW opened this issue Dec 10, 2024 · 1 comment

Comments

@RangoW
Copy link

RangoW commented Dec 10, 2024

Hi, loongson brothers, how to solve this problem :(

rango@rango-VirtualBox:~/chromium/src$ ninja -C out/la64_cross chrome
ninja: Entering directory `out/la64_cross'
[47/64340] SOLINK ./libvk_swiftshader.so
FAILED: libvk_swiftshader.so libvk_swiftshader.so.TOC 
"python3" "../../build/toolchain/gcc_solink_wrapper.py" --readelf="/opt/llvm_chromium/llvm_install_15.0.7/bin/llvm-readelf" --nm="/opt/llvm_chromium/llvm_install_15.0.7/bin/llvm-nm"  --sofile="./libvk_swiftshader.so" --tocfile="./libvk_swiftshader.so.TOC" --output="./libvk_swiftshader.so" -- /opt/llvm_chromium/llvm_install_15.0.7/bin/clang++ -shared -Wl,-soname="libvk_swiftshader.so" -Wl,-Bsymbolic -Wl,--version-script=../../third_party/swiftshader/src/Vulkan/vk_swiftshader.lds -fuse-ld=lld -Wl,--build-id -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--undefined-version -Wl,--no-call-graph-profile-sort --target=loongarch64-linux-gnu -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ --sysroot=../../build/linux/debian_bullseye_loong64-sysroot -o "./libvk_swiftshader.so" @"./libvk_swiftshader.so.rsp"  
ld.lld: error: undefined symbol: X8632::createTargetLowering(Ice::Cfg*)
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))

ld.lld: error: undefined symbol: ARM32::createTargetLowering(Ice::Cfg*)
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))

ld.lld: error: undefined symbol: MIPS32::createTargetLowering(Ice::Cfg*)
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))

ld.lld: error: undefined symbol: X8664::createTargetLowering(Ice::Cfg*)
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))
>>> referenced by IceTargetLowering.cpp
>>>               obj/third_party/swiftshader/src/Reactor/swiftshader_subzero/IceTargetLowering.o:(Ice::TargetLowering::createLowering(Ice::TargetArch, Ice::Cfg*))

@cyydev
Copy link

cyydev commented Dec 12, 2024

How to reproduce this error?
Maybe you can try set "supports_subzero=false" in your out/la64_cross/args.gn.

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