Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix build for Alpine Linux #205

Merged
merged 1 commit into from Jul 10, 2016
Merged

Fix build for Alpine Linux #205

merged 1 commit into from Jul 10, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jul 9, 2016

Alpine Linux uses musl-libc and Android uses bionic; what both have in
common is __GLIBC__ unavailable. This fixes the condition in
Casablanca header where an explicit __ANDROID__ is used. Instead
checking for __GLIBC__ fixes the build for both platforms.

Another fix is to include <sys/time.h> header which is required for
timeval on some Unix platforms.

Progress towards: https://github.com/dotnet/coreclr/issues/917#issuecomment-229827373

/cc @schellap, @ericstj, @jkotas

@dnfclas
Copy link

dnfclas commented Jul 9, 2016

Hi @jasonwilliams200OK, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

Alpine Linux uses musl-libc and Android uses bionic; what both have in
common is `__GLIBC__` unavailable. This fixes the condition in
Casablanca header where an explicit `__ANDROID__` is used. Instead
checking for `__GLIBC__` fixes the build for both platforms.

Another fix is to include `<sys/time.h>` header which is required for
`timeval` on some Unix platforms.
@ghost
Copy link
Author

ghost commented Jul 9, 2016

With this fix, I have able to take first step, build muxer binary (with libhostpolicy.so and libhostfxr.so) on Alpine Linux.

git clone https://github.com/dotnet/core-setup

mkdir $HOME/muxer-build && cd $HOME/muxer-build

../core-setup/src/corehost/build.sh --arch x64 --hostver 1.0.2-beta-000559-00 \
--fxrver 1.0.2-beta-000559-00 --policyver 1.0.2-beta-000559-00 \
--rid alpine.3.4.0-x64 --commithash 3c8ad46cb09d1ac87159b2cc17cb410afb835c9b

Now time to fiddle with dotnet-ubuntu-x64.latest.tar.gz, to get Microsoft.NETCore.App working. :)

@schellap schellap merged commit faf62af into dotnet:master Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants