-
-
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 not lauching after compile on ARM #485
Comments
Winlinvip Did you confirmed this bug? |
Seems a bug. I will confirm it when I got time. |
What is the minimum version of GCC and G++ to build it ? I even tried building it natively on an ARM V7 machine (not pi) just using:
It builds successfully, but does not run. I see no errors on output, all libraries are present:
Very strange. |
You must specifies the |
Ahh so might be that the problem, I will cross compile it using ubuntu when i got time, to check. |
Well today I tried two different ways, I built it using a Debian machine with cross-build-essential and --arm flag, and it compiles fine, but still don't run. Then I tried with less options, like disable hls, hds and stream-caster but no luck either. |
What's your ARM version? Any coredumps? |
|
The raspberrypi is armv7, seems ok to run SRS, but I have not test it. |
Nop, neither that version runs, friend feel free to access one of my nodes it is with Ubuntu 12.04 Precise, it is an ARM like that example before, check your email please. Thanks. |
I will try on my arm device, I not finger the bug out, I will try your device. |
I fix some bug for run with
And SRS 2.0.191:
I will try armv7 device later. |
Seems my cubieboard(armv7) corrupt, I will cross build on ubuntu14 then copy to your armv7 machine. |
Thank you for your efforts fixing this really appreciate it! |
|
I find a bug for cross build, introduced by SRS2 configure script refined.
Then copy the objs/srs to your armv7 os. Then I got another segment fault:
|
I finger it out, the ubuntu14 gcc/g++ version too high, which changed the longjmp context buffer layout, then cause srs/st to crash. The version of ubuntu14 gcc/g++ to cross build srs: For gcc 4.7.3, gdb the
Nothing match the sp. For gcc 4.6.3, gdb the file:
The jmpbuf[8] is the sp. Please read bug #190 |
I will try to fix the high version of gcc for arm, maybe we can use the x86-64 st setjmp and longjmp. |
It's very hard to implments the setjmp and longjmp for arm for me.
I have tried your armv7 debian server, glibc is ok, srs is built to |
I have confirmed:
For 1, I have fixed it, please use 2.0.192. What happended when all gcc upgrade to 4.7? SRS cannot run on ARM, maybe SRS will migrate to GO, haha. |
Directly build on your server:
|
U can use the following url to visit your arm server:
Please use your server ip. |
Thank you man you are tha best! |
Something weird happening here, i run it and just closes no process is created, here is the log, it was compiled on a PI with --pi flag.
The text was updated successfully, but these errors were encountered: