Closed
Description
Building Julia v0.7.0-beta, as well as the current master, on stock CentOS-7 (official Docker container) fails:
CC ui/repl.dbg.obj
LINK usr/bin/julia-debug
Creating usr/etc/julia/startup.jl
Copying in usr/share/man/man1/julia.1
/opt/julia/contrib/install.sh 755 /opt/julia/contrib/julia-config.jl /opt/julia/usr/share/julia/
PERL base/pcre_h.jl
PERL base/errno_h.jl
PERL base/build_h.jl.phony
PERL base/file_constants.jl
PERL base/uv_constants.jl
PERL base/version_git.jl.phony
JULIA usr/lib/julia/corecompiler.ji
/bin/sh: /opt/julia/usr/bin/julia: No such file or directory
make[1]: *** [/opt/julia/usr/lib/julia/corecompiler.ji] Error 127
make: *** [julia-sysimg] Error 2
However, Julia v0.7.0-alpha builds without problems.
I'm using this (fairly minimal) Dockerfile to build:
FROM centos:7
# User and workdir settings:
USER root
WORKDIR /root
# Initial steps:
RUN true \
&& sed -i '/tsflags=nodocs/d' /etc/yum.conf \
&& dbus-uuidgen > /etc/machine-id
# Install current CMake:
RUN true \
&& yum install -y wget \
&& wget -O- https://cmake.org/files/v3.11/cmake-3.11.4-Linux-x86_64.tar.gz \
| tar --strip-components=1 -x -z -f - -C /usr/local/
# Install Julia build dependencies:
RUN true\
&& yum groupinstall -y "Development Tools" \
&& yum install -y wget git which
# Build Julia:
RUN true\
&& cd /opt \
&& git clone "https://github.com/JuliaLang/julia" julia \
&& cd julia \
&& git checkout "v0.7.0-alpha" \
&& time \
MARCH=x86-64 \
JULIA_PKG3_PRECOMPILE=enable \
make -j"$(nproc)" all debug
ENV \
PATH="/opt/julia/usr/bin:$PATH" \
MANPATH="/opt/julia/usr/share/man:$MANPATH"