Segmentation fault when trying to run Haxe on Alpine Linux with Docker

355 views
Skip to first unread message

Clark Jones

unread,
Apr 30, 2016, 4:34:07 PM4/30/16
to Haxe
I'm new to Docker and I'm not a regular Linux user, but after some trial and error I've got Neko and Haxelib running on Alpine 3.3, but every time I try to run Haxe all it says is "Segmentation fault", so I'm a bit lost on where I need to go from here. 

Any help or suggestions would be appreciated. 

Thanks in advance. 

Jack Lehman

unread,
May 2, 2016, 7:08:04 AM5/2/16
to Haxe
you have to reinstall haxe

Clark Jones

unread,
May 2, 2016, 9:45:14 AM5/2/16
to Haxe
I'll try compiling Haxe on Alpine. I was just downloading the Linux binaries and putting them in the image, which works on Debian. 

wighawag

unread,
May 3, 2016, 9:40:54 AM5/3/16
to haxe...@googlegroups.com
it might be due to the use of musl libc(which Alpine use) which is not 100% compatible with normal glibc that I guess haxe expect ?

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Dion Whitehead Amago

unread,
May 3, 2016, 3:08:02 PM5/3/16
to Haxe
Ubuntu works fine, but the docker image is probably a lot bigger:

# Haxe environment variables
ENV HAXE_STD_PATH /root/haxe/std/
ENV PATH /root/haxe/:$PATH
# Neko environment variables
ENV NEKOPATH /root/neko/
ENV LD_LIBRARY_PATH /root/neko/
ENV PATH /root/neko/:$PATH


# Dependencies
RUN apt-get update && \
apt-get install -y wget curl g++ g++-multilib libgc-dev git python build-essential && \
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - && \
sudo apt-get -y install nodejs && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir /root/haxe && \
wget -O - $HAXE_DOWNLOAD_URL | tar xzf - --strip=1 -C "/root/haxe" && \
mkdir /root/neko && \
wget -O - http://nekovm.org/_media/neko-2.0.0-linux64.tar.gz | tar xzf - --strip=1 -C "/root/neko"

Dion Whitehead Amago

unread,
Jun 13, 2016, 7:11:42 PM6/13/16
to Haxe
Ok, now I want haxe on alpine linux, since the size is so small.

Did you ever get this working Clark?

Clark Jones

unread,
Jun 13, 2016, 8:12:50 PM6/13/16
to Haxe
No, I haven't. I had to stop trying and settle with Debian for now. Eventually I'll start looking into this again unless some one else is able to do it before then. 
Reply all
Reply to author
Forward
0 new messages