sagemathinc / cocalc-docker

DEPRECATED (was -- Docker setup for running CoCalc as downloadable software on your own computer)
https://cocalc.com
Other
398 stars 103 forks source link

Unable to build the recent Docker #107

Closed arm2arm closed 3 years ago

arm2arm commented 3 years ago

Unable to rebuild the current docker image

git clone https://github.com/sagemathinc/cocalc-docker.git
cd cocalc-docker/
docker build -t cocalc .

Getting following error

make[1]: Leaving directory '/usr/local/sage'
make: *** [Makefile:32: base-toolchain] Error 2
# Because of "stupid" static GMP's get left around that break the build.
# So we try again with the static GMP's removed.
rm "$SAGE_SRC_TARGET"/sage/local/lib/libgmp*.a
rm: cannot remove '/usr/local/sage/local/lib/libgmp*.a': No such file or directory
The command '/bin/sh -c mkdir -p /usr/local/sage     && chown -R sage:sage /usr/local/sage     && sudo -H -E -u sage /tmp/scripts/install_sage.sh /usr/local/ master     && sync' returned a non-zero code: 1

Are there way to get some workaround??

arm2arm commented 3 years ago

Looks like in https://github.com/sagemathinc/cocalc-docker/blob/462dbec0e0eaf824c12bfd17c64a9934252a771b/scripts/install_sage.sh#L30 we need to add configure before make

williamstein commented 3 years ago

This must be caused by fundamental changes in sage-9.2, which was just released.