-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Trying to build for alpine docker (musl libc) #38
Comments
@diginc How do you use/install Concerning the
You can see that in your example that your forward-destinations are shown as e.g. Hence, I'm not a very big fan of the |
I was using ubuntu but I think debian has the same packages I used. I installed |
Okay, did you do that on Raspberry hardware or does docker (however it does it) not require architecture specific packages? I don't seem to find |
I built it on normal x86 ubuntu xenial. |
Compilation works with
|
Looking good building off development and copying it into my alpine docker.
|
PR #44 will add a |
We talked about this is chat but I thought I should probably put everything in an issue for full documentation of things attempted/results, and to let others voice opinions. I have been trying to get my docker upgraded and part of that includes getting FTL in my primary docker tag, which is alpine traditionally. Now I could drop alpine support but the size differences is pretty big between alpine and debian and I'm sure I wouldn't be the only one disappointed.
The first approach I decided on trying was just use the musl-gcc wrapper application, which fills in the necessary paths and such for GCC compiling for musl. I didn't get very far in fixing the first compilation error, where it cannot seem to find the qsort's 4th arg type of
__compar_fn_t
I messed with that for a while but C is not my forte and I couldn't seem to google my way past that type error so I next tried a glibc static binary...it seems to actually start up inside of my alpine docker but it does have these 2 warnings, which I'm not sure if that'll cause problems down the road or not...this is more an FYI.
Note:
-pie -fPIE
are replaced by-static -fPIC
to get this build.working I guess?
I'll keep you posted as I go down the static glibc road more since I'm in over my head with musl libc compilation which sounds like it may require some rewriting.
The text was updated successfully, but these errors were encountered: