-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
SRS server doesn't compile on respberrypi 4B Debian 10 #3873
Comments
The reason is command |
The build summary: |
So the problem is the autoconf seemed missed the dependency of libatomic add -latomic in the configure file did fix the problem |
Does the SRT library depend on Not only do we need to know how to do it, but we also need to understand why.
|
On the newset version of libsrt I found a note in
So on raspberry piOS 10, gcc version is gcc8.3. as it said, typically all versions later than gcc4.7 atomic features were implemented as |
Thanks for the feedback. A suitable solution would be to try and detect the environment. If there is a need to link the Could you consider submitting a Patch to SRS?
|
The problem persists after addition Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux |
As a workaround, you can set the ldflags, which is passed to linker: ./configure -h |grep ldflags
--extra-ldflags=<ELDFLAGS> Set ELDFLAGS as LDFLAGS. For example: ./configure --extra-ldflags="-latomic" If it's a common flags for RaspberryPI, I think it's acceptable to do this automatically. |
Describe the bug
SRS server doesn't compile on respberrypi 4B Debian 10
Version
Newest git clone
To Reproduce
/usr/bin/ld: core.cpp:(.text+0x135dc): undefined reference to `__atomic_load_8'
The text was updated successfully, but these errors were encountered: