[Vm-dev] Building on Alpine Linux
Mariano Martinez Peck
marianopeck at gmail.com
Sat Jul 20 17:35:54 UTC 2019
I read you say "I've successfully built the pharo.cog.spur.minheadless
OpenSmalltalk VM on Alpine Linux."
Can you elaborate more on that? Where did you put your work? A separate
branch/fork? Did you change the VM to link against musl?
Did it compile out of the box?
What our happened in our case is that even if `musl` would give us a
compatible API in the sense the VM would compile, then, on usage we
detected things that internally had different behaviors (like iconv). Did
you encounter anything of this?
On Sat, Jul 20, 2019 at 10:54 AM Mariano Martinez Peck <
marianopeck at gmail.com> wrote:
> On Sat, Jul 20, 2019 at 6:05 AM Pierce Ng <pierce at samadhiweb.com> wrote:
>> Hi all,
>> I've built pharo.cog.spur.minheadless on Alpine Linux. I did it by
>> mucking around with the files in the repo, mostly to add library files
>> to link with, in line with Alpine's packaging conventions.
>> I'd like to make the process reproducible. Is there any documentation on
>> how the repo uses CMake? In particular, say, which files should I work
>> on to produce link.txt suitable for use on Alpine?
>> Here's my related blog post:
> Hi Pierce,
> This is very interesting. I have been playing with docker too   
> and indeed I also tried to make it work with alpine . But it was
> complicated because alpine doesn't come with `glibc` but instead `musl`.
> And there are differences between them. So for example for VA Smalltalk I
> had to install `glibc`. I succeeded but the final size of the docker image
> with alpine + glibc was almost the same size as the debian lite... so it
> didn't make much sense to me.
> The support for glic is not official and as you can see I reported it 
> Anyway, I will be curious to know your progress. Would cog VM work
> correctly with musl instead of glibc?
>  https://github.com/sgerrand/alpine-pkg-glibc/issues/113
> Mariano Martinez Peck
> Email: marianopeck at gmail.com
> Twitter: @MartinezPeck
> LinkedIn: www.linkedin.com/in/mariano-martinez-peck
> Blog: https://marianopeck.wordpress.com/
Mariano Martinez Peck
Email: marianopeck at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev