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

Compiling sox on Synology Diskstation DS216play #229

Closed
gbaderg opened this issue Nov 12, 2017 · 5 comments
Closed

Compiling sox on Synology Diskstation DS216play #229

gbaderg opened this issue Nov 12, 2017 · 5 comments

Comments

@gbaderg
Copy link

gbaderg commented Nov 12, 2017

Qtip from EBI stated that, according to the optware-ng developer, it's development environment is not complete and not fit to compile hardfloat sox binary for this NAS.

http://www.synology-forum.de/showthread.html?68335-EBI-Easy-Bootstrap-Installer&p=739279&viewfull=1#post739279

Would you shed some light please what's the issue with it?
Thank you in advance.

@alllexx88
Copy link
Collaborator

Hi,

Qtip from EBI stated that, according to the optware-ng developer, it's development environment is not complete and not fit to compile hardfloat sox binary for this NAS.

http://www.synology-forum.de/showthread.html?68335-EBI-Easy-Bootstrap-Installer&p=739279&viewfull=1#post739279

I can't see a post about optware-ng development environment not being complete on the URL you posted. The post739279 actually has nothing to do with Optware-ng: it's about Entware-ng, which has no hard-float ARMv7 feed. With buildroot-armeabihf Optware-ng feed gcc should build hard-float binaries fine.

@gbaderg
Copy link
Author

gbaderg commented Nov 14, 2017

sorry, the link was wrong. Reference post is actually #291
http://www.synology-forum.de/showthread.html?68335-EBI-Easy-Bootstrap-Installer&p=739426&viewfull=1#post739426

Interesting, thank you! So I picked the wrong option in EBI it seems, not knowing of this difference.

@alllexx88
Copy link
Collaborator

http://www.synology-forum.de/showthread.html?68335-EBI-Easy-Bootstrap-Installer&p=739426&viewfull=1#post739426

Ah, now it makes sense. Yes, some while ago, compiling with Optware-ng gcc required some specific flags, but after patching gcc, and setting binutils and libc prefix, dev tools are pretty much fine. E.g., try this "hello world" example:

$ cat hello_world.c
#include <stdio.h>

int main() {
        printf("Hello world\n");

        return 0;
}
$ gcc hello_world.c -o hello_world
$ ./hello_world
Hello world
$ ldd hello_world
        linux-gate.so.1 (0xf7794000)
        libc.so.6 => /opt/lib/libc.so.6 (0xf75da000)
        /opt/lib/ld-linux.so.2 (0xf7795000)

@alllexx88
Copy link
Collaborator

I think this issue can be closed now

@gbaderg
Copy link
Author

gbaderg commented Aug 21, 2018

thank you @alllexx88 and sorry my laptop crashed soon after this post and only now realised your answer.
Will definitely try and exchange Entware-NG for Optware-ng. Big misunderstanding when I installed at first. Absolutely need hard float in this binary.

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