Comments (10)
from chromium.
@Chilledheart 感谢您的反馈,我们计划放到ftp上,github说明中附上链接地址
from chromium.
@ClarkWang-2013 放在Github 上面是方便Github Action上下载跑自动化测试CI。希望后续能随着chromium能定期更新
from chromium.
Thanks for the update!
通过新的链接地址 我已经能下载debian_bullseye_loong64-sysroot.tar.bz2了。
但是这里提供的版本是和其他通过龙芯官网下载的一样是ABI 0 的版本。这个版本是无法和上游的clang 编译结果进行链接的。
具体错误 如下图所示:
I0430 13:40:48.538988 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o: unsupported object file ABI version
I0430 13:40:48.538995 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/crti.o: unsupported object file ABI version
I0430 13:40:48.538997 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/gcc/loongarch64-linux-gnu/8/crtbeginS.o: unsupported object file ABI version
I0430 13:40:48.539000 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/libc_nonshared.a(elf-init.oS): unsupported object file ABI version
I0430 13:40:48.539003 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/libc_nonshared.a(pthread_atfork.oS): unsupported object file ABI version
I0430 13:40:48.539006 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/gcc/loongarch64-linux-gnu/8/crtendS.o: unsupported object file ABI version
I0430 13:40:48.539010 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/crtn.o: unsupported object file ABI version
I0430 13:40:48.539018 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/libc_nonshared.a(pthread_atfork.oS):(function __pthread_atfork: .text+0x0): unknown relocation (22) against symbol __dso_handle
I0430 13:40:48.539021 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/gcc/loongarch64-linux-gnu/8/crtbeginS.o:(.text+0xc): unknown relocation (22) against symbol __TMC_LIST__
I0430 13:40:48.539025 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/gcc/loongarch64-linux-gnu/8/crtbeginS.o:(.text+0xc): unknown relocation (23) against symbol
I0430 13:40:48.539029 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o:(function _start: .text+0x4): unknown relocation (22) against symbol _GLOBAL_OFFSET_TABLE_
I0430 13:40:48.539036 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o:(function _start: .text+0x4): unknown relocation (25) against symbol main
I0430 13:40:48.539040 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o:(function _start: .text+0x4): unknown relocation (35) against symbol
I0430 13:40:48.539042 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o:(function _start: .text+0x4): unknown relocation (22) against symbol _GLOBAL_OFFSET_TABLE_
I0430 13:40:48.539045 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o:(function _start: .text+0x4): unknown relocation (25) against symbol main
I0430 13:40:48.539048 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o:(function _start: .text+0x4): unknown relocation (35) against symbol
I0430 13:40:48.539051 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o:(function _start: .text+0x4): unknown relocation (23) against symbol
I0430 13:40:48.539057 14456 build.go:688] ld.lld: error: relocation R_LARCH_64 cannot be used against symbol 'L0'; recompile with -fPIC
I0430 13:40:48.539060 14456 build.go:688] >>> defined in /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o
I0430 13:40:48.539062 14456 build.go:688] >>> referenced by /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/Scrt1.o:(.eh_frame+0x1C)
I0430 13:40:48.539065 14456 build.go:688]
I0430 13:40:48.539068 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/loongarch64-linux-gnu/libc_nonshared.a(pthread_atfork.oS):(function __pthread_atfork: .text+0x0): unknown relocation (23) against symbol
I0430 13:40:48.539071 14456 build.go:688] ld.lld: error: /home/hky/yass-develop/debian_bullseye_loongarch64-sysroot/usr/lib/gcc/loongarch64-linux-gnu/8/crtbeginS.o:(.text+0xc): unknown relocation (34) against symbol
I0430 13:40:48.539074 14456 build.go:688] ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
I0430 13:40:48.539076 14456 build.go:688] clang++: error: linker command failed with exit code 1 (use -v to see invocation)
但是build-tools 提供的sysroot tarball 是可以和上游的clang编译的结果链接的(ABI version1):
CLFS-loongarch64-8.1-x86_64-cross-tools-gcc-glibc.tar.xz
比如这个 https://github.com/Chilledheart/yass/actions/runs/8889250911/job/24407334808
from chromium.
由于各种原因(依赖最新的libc++需要至少clang 17),所以我用的clang 是上游的版本(trunk, clang 19)
➜ yass-develop git:(develop) ./third_party/llvm-build/Release+Asserts/bin/clang -v
clang version 19.0.0git (https://chromium.googlesource.com/a/external/github.com/llvm/llvm-project ab037c4ff3452a680efb758ccacb6ee210ce333b)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/hky/yass-develop/third_party/llvm-build/Release+Asserts/bin
Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/13
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
from chromium.
from chromium.
@Chilledheart 你是想构建新世界吗?如果是需要下载debian_bullseye_loongarch64-sysroot.tar.bz2 http://ftp.loongnix.cn/browser/build/sysroot/debian_bullseye_loongarch64-sysroot.tar.bz2
from chromium.
@Chilledheart 你是想构建新世界吗?如果是需要下载debian_bullseye_loongarch64-sysroot.tar.bz2 http://ftp.loongnix.cn/browser/build/sysroot/debian_bullseye_loongarch64-sysroot.tar.bz2
好的,我试试
from chromium.
@Chilledheart 你是想构建新世界吗?如果是需要下载debian_bullseye_loongarch64-sysroot.tar.bz2 http://ftp.loongnix.cn/browser/build/sysroot/debian_bullseye_loongarch64-sysroot.tar.bz2
好的,我试试
嗯,构建配置有新旧世界构建区分的,还请仔细查看下,以免下错编译器和sysroot以及对应的patch
from chromium.
➜ build-linux-loongarch64 git:(develop) ~/yass-develop/third_party/llvm-build/Release+Asserts/bin/llvm-readobj -h yass
File: yass
Format: elf64-loongarch
Arch: loongarch64
AddressSize: 64bit
LoadName: <Not found>
ElfHeader {
Ident {
Magic: (7F 45 4C 46)
Class: 64-bit (0x2)
DataEncoding: LittleEndian (0x1)
FileVersion: 1
OS/ABI: SystemV (0x0)
ABIVersion: 0
Unused: (00 00 00 00 00 00 00)
}
Type: SharedObject (0x3)
Machine: EM_LOONGARCH (0x102)
Version: 1
Entry: 0xDF620
ProgramHeaderOffset: 0x40
SectionHeaderOffset: 0x1F904E0
Flags [ (0x43)
EF_LOONGARCH_ABI_DOUBLE_FLOAT (0x3)
EF_LOONGARCH_OBJABI_V1 (0x40)
]
HeaderSize: 64
ProgramHeaderEntrySize: 56
ProgramHeaderCount: 12
SectionHeaderEntrySize: 64
SectionHeaderCount: 45
StringTableSectionIndex: 43
}
@ClarkWang-2013 谢谢,新世界的sysroot已经可以用了。
from chromium.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromium.