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
Build faild in Gentoo RISCV: undefined reference to `__atomic_compare_exchange_1' #17449
Comments
Well, no one here has RISC-V hardware, maybe you can propose fix on your own with a PR? |
Hmm, looking at the log, you need to link with libatomic, tdesktop's build system tries to link with it if it can find libatomic, maybe it's in some directory that cmake is not aware of, you can set the path to libatomic directory with |
I tried just adding "-latomic" and the result is the same as before: https://gist.github.com/liangyongxiang/2230c6e76df4c0adc7d2f05d8725e035#file-homeyongxiangriscv-workbtrfs-imagesriscv-systemd-2021-12-23rootbuild-append-log-L408 I'll try |
It won't help apparently, then |
In my environment libatomic is here.
What should
|
/usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1 |
Yes. It worked. |
so, 3rd party bug? |
Not a bug, just libatomic is not in standard directories on his system |
I reworked libdl/libpthread handling, now (on dev branch) -pthread is used instead of -lpthread and manual atomic linking is removed |
Thanks, was about to comment this, |
Steps to reproduce
Expected behaviour
It can be compiled successfully without manually appending '-pthread' to LDFLAGS.
Actual behaviour
Build faild:
And if I append '-pthread' to LDFLAGS manually, it compiles successfully and works fine
Operating system
Gentoo RISCV
Version of Telegram Desktop
3.3.0
Installation source
Other (unofficial) source
Logs
The full log is too long, so I put it in gists: https://gist.github.com/bc3a35f7a5a0c829b8c6bf188eb4b696
The text was updated successfully, but these errors were encountered: