[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?

Thanks,



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:
>>
>>   https://www.samadhiweb.com/blog/2019.07.20.alpine.pharo.minimal.html
>>
>>
> Hi Pierce,
>
> This is very interesting. I have been playing with docker too [1] [2] [3]
> and indeed I also tried to make it work with alpine [4]. 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 [5]
>
> Anyway, I will be curious to know your progress. Would cog VM work
> correctly with musl instead of glibc?
>
> Best,
>
> [1]
> https://dev.to/martinezpeck/getting-started-with-docker-and-smalltalk-4po1
> [2]
> https://dev.to/martinezpeck/step-2-single-node-docker-swarm-and-smalltalk-46i0
> [3]
> https://dev.to/martinezpeck/docker-swarm-cloud-on-a-arm64-diy-sbc-cluster-running-a-smalltalk-webapp-9l1
> <https://dev.to/martinezpeck/docker-swarm-cloud-on-a-arm64-diy-sbc-cluster-running-a-smalltalk-webapp-9l1>
> [4]
> https://github.com/vasmalltalk/docker-examples/blob/master/source/SeasideTrafficLights/Raspberry/experiments/alpine-raspbian_Dockerfile
> [5] 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
> <https://www.linkedin.com/in/mariano-mart%C3%ADnez-peck/>
> Blog: https://marianopeck.wordpress.com/
>


-- 
Mariano Martinez Peck
Email: marianopeck at gmail.com
Twitter: @MartinezPeck
LinkedIn: www.linkedin.com/in/mariano-martinez-peck
<https://www.linkedin.com/in/mariano-mart%C3%ADnez-peck/>
Blog: https://marianopeck.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190720/bbed8470/attachment.html>


More information about the Vm-dev mailing list