Skip to content

bootstrap fails in docker using ecl with: Socket error in "socket": EINVAL (Invalid argument). #22

@Kreyren

Description

@Kreyren

SOLVED: #22 (comment) (Credit irc.freenode.net/#lisp)


kreyren@leonid:~/Repositories/s7i$ docker build --file docker/debian.Dockerfile --tag kreyren .
Sending build context to Docker daemon  19.97kB

Step 1/8 : FROM debian:testing
 ---> 03c237d6b0a4
Step 2/8 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> c35184f3b94d
Step 3/8 : USER root
 ---> Using cache
 ---> 48682f2eac52
Step 4/8 : ENV LANG=en_US.UTF-8
 ---> Using cache
 ---> 9645af937249
Step 5/8 : ENV LC_ALL=C
 ---> Using cache
 ---> 70dc6401ff08
Step 6/8 : RUN true 	&& apt-get update -q 	&& apt-get install -qy 		apt-utils 		wget 	&& apt-get autoremove -qy 	&& rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 440537154b7e
Step 7/8 : RUN true 	&& apt-get update -q 	&& apt-get install -qy 		ecl 		clisp 	&& apt-get autoremove -qy 	&& rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 78ad929b927d
Step 8/8 : RUN true 	&& wget https://beta.quicklisp.org/quicklisp.lisp -O /tmp/quicklisp.lisp 	&& printf '%s\n' 		'(load #p"/tmp/quicklisp.lisp")' 		'(quicklisp-quickstart:install)' > /tmp/my.lisp 	&& ecl --norc --quiet --shell /tmp/my.lisp 	&& rm -r /tmp/*.lisp
 ---> Running in f86102fd934c
�[91m--2020-11-13 16:25:11--  https://beta.quicklisp.org/quicklisp.lisp
�[0m�[91mResolving beta.quicklisp.org (beta.quicklisp.org)... �[0m�[91m99.86.243.53, 99.86.243.113, 99.86.243.74, ...
Connecting to beta.quicklisp.org (beta.quicklisp.org)|99.86.243.53|:443... �[0m�[91mconnected.
�[0m�[91mHTTP request sent, awaiting response... �[0m�[91m200 OK
Length: 57144 (56K) [text/plain]
Saving to: '/tmp/quicklisp.lisp'
�[0m�[91m
     0K .......... ......�[0m�[91m.... ....�[0m�[91m...... ..�[0m�[91m........ ........�[0m�[91m.. 89% 2.13M 0s
    50K .....�[0m�[91m                 �[0m�[91m                                �[0m�[91m100% 92.7M=0.02s

�[0m�[91m2020-11-13 16:25:11 (2.37 MB/s) - '/tmp/quicklisp.lisp' saved [57144/57144]

�[0m;;; Loading "/tmp/quicklisp.lisp"
;;; Loading #P"/usr/lib/x86_64-linux-gnu/ecl-20.4.24/sockets.fas"

  ==== quicklisp quickstart 2015-01-28 loaded ====

    To continue with installation, evaluate: (quicklisp-quickstart:install)

    For installation options, evaluate: (quicklisp-quickstart:help)

�[91mAn error occurred during initialization:
�[0m�[91mSocket error in "socket": EINVAL (Invalid argument).
�[0mThe command '/bin/sh -c true 	&& wget https://beta.quicklisp.org/quicklisp.lisp -O /tmp/quicklisp.lisp 	&& printf '%s\n' 		'(load #p"/tmp/quicklisp.lisp")' 		'(quicklisp-quickstart:install)' > /tmp/my.lisp 	&& ecl --norc --quiet --shell /tmp/my.lisp 	&& rm -r /tmp/*.lisp' returned a non-zero code: 1
FROM debian:testing

# To avoid bricked workspaces (https://github.com/gitpod-io/gitpod/issues/1171)
ENV DEBIAN_FRONTEND=noninteractive

USER root

ENV LANG=en_US.UTF-8
ENV LC_ALL=C

# Get dependencies
RUN true \
	&& apt-get update -q \
	&& apt-get install -qy \
		apt-utils \
		wget \
	&& apt-get autoremove -qy \
	&& rm -rf /var/lib/apt/lists/*

# Get implementations
RUN true \
	&& apt-get update -q \
	&& apt-get install -qy \
		ecl \
		clisp \
	&& apt-get autoremove -qy \
	&& rm -rf /var/lib/apt/lists/*

# Install quicklisp
RUN true \
	&& wget https://beta.quicklisp.org/quicklisp.lisp -O /tmp/quicklisp.lisp \
	&& printf '%s\n' \
		'(load #p"/tmp/quicklisp.lisp")' \
		'(quicklisp-quickstart:install)' > /tmp/my.lisp \
	&& ecl --norc --quiet --shell /tmp/my.lisp \
	&& rm -r /tmp/*.lisp

Works using clisp -> Assuming bug

Backtrace: http://ix.io/2E1U

/usr/lib/x86_64-linux-gnu/libecl.so.20.4(cl_error+0xf0) [0x7fadebe796a0]
/usr/lib/x86_64-linux-gnu/ecl-20.4.24/sockets.fas(+0x4080) [0x7fade9073080]

Strace: http://ix.io/2E1Z / https://rust-lang.github.io/rust-log-analyzer/log-viewer/#https://cors-anywhere.herokuapp.com/ix.io/2E1Z

socket(AF_INET, SOCK_STREAM, 0xffffffff /* IPPROTO_??? */) = -1 EINVAL (Invalid argument)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions