Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxima build hangs on ubuntu-mantic #36672

Open
mkoeppe opened this issue Nov 7, 2023 · 3 comments
Open

maxima build hangs on ubuntu-mantic #36672

mkoeppe opened this issue Nov 7, 2023 · 3 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Nov 7, 2023

Build of ubuntu-mantic-standard times out consistently. Turns out the maxima build hangs. That's with system ecl 21.2.1.

To reproduce:
DOCKER_TARGETS="with-system-packages configured with-targets-pre" tox -e docker-ubuntu-mantic-standard -- all-sage-local

Entering the container:

$ docker exec a1e602dd650c ps -ef                                                                                                                                                                             
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 04:07 ?        00:00:00 /bin/sh -c make SAGE_SPKG="sage-spkg -y -o" ${USE_MAKEFLAGS} ${TARGETS_PRE}
root         8     1  0 04:07 ?        00:00:00 make SAGE_SPKG=sage-spkg -y -o -k V=0 all-sage-local
root        11     8  0 04:07 ?        00:00:00 /bin/sh -c build/bin/sage-logger \ ."cd build/make && ./install 'all-sage-local'" logs/install.log
root        12    11  0 04:07 ?        00:00:00 bash build/bin/sage-logger cd build/make && ./install 'all-sage-local' logs/install.log
root        16    12  0 04:07 ?        00:00:00 bash build/bin/sage-logger cd build/make && ./install 'all-sage-local' logs/install.log
root        17    12  0 04:07 ?        00:00:00 bash build/bin/sage-logger cd build/make && ./install 'all-sage-local' logs/install.log
root        18    16  0 04:07 ?        00:00:00 bash ./install all-sage-local
root        19    17  0 04:07 ?        00:00:00 tee -a logs/install.log
root        20    17  0 04:07 ?        00:00:00 cat
root       244    18  0 04:07 ?        00:00:00 make -j8 all-sage-local
root       487     0 99 04:37 ?        00:00:00 ps -ef
root     47650   244  0 04:09 ?        00:00:00 make --no-print-directory maxima-SAGE_LOCAL-no-deps
root     47697 47650  0 04:09 ?        00:00:00 /bin/bash -c if [ -z '/sage/local' ]; then echo "Error: The installation tree SAGE_LOCAL has been disabled" 2>&1; echo "" 2>&1; exit 1; else sage-logger -p 'SAGE_CHECK=warn PATH=/sage/src/bin:/sage/local/bin:$PATH sage-spkg -y -o -y -o  maxima-5.46.0 /sage/local' '/sage/logs/pkgs/maxima-5.46.0.log'; fi
root     47698 47697  0 04:09 ?        00:00:00 bash /sage/build/bin/sage-logger -p SAGE_CHECK=warn PATH=/sage/src/bin:/sage/local/bin:$PATH sage-spkg -y -o -y -o  maxima-5.46.0 /sage/local /sage/logs/pkgs/maxima-5.46.0.log
root     47707 47698  0 04:09 ?        00:00:00 bash /sage/build/bin/sage-logger -p SAGE_CHECK=warn PATH=/sage/src/bin:/sage/local/bin:$PATH sage-spkg -y -o -y -o  maxima-5.46.0 /sage/local /sage/logs/pkgs/maxima-5.46.0.log
root     47708 47707  0 04:09 ?        00:00:00 bash /sage/build/bin/sage-spkg -y -o -y -o maxima-5.46.0 /sage/local
root     52483 47708  0 04:09 ?        00:00:00 bash ./spkg-install
root     55371 52483  0 04:09 ?        00:00:00 make
root     55372 55371  0 04:09 ?        00:00:00 /usr/bin/bash -c fail=; \ if (target_option=k; case ${target_option-} in ?) ;; *) echo "am__make_running_with_option: internal error: invalid" "target option '${target_option-}' specified" >&2; exit 1;; esac; has_opt=no; sane_makeflags=$MAKEFLAGS; if test -n 'Makefile' && test -n '3'; then sane_makeflags=$MFLAGS; else case $MAKEFLAGS in *\\[\ \.]*) bs=\\; sane_makeflags=`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs.]*//g"`;; esac; fi; skip_next=no; strip_trailopt () { flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`; }; for flg in $sane_makeflags; do test $skip_next = yes && { skip_next=no; continue; }; case $flg in *=*|--*) continue;; -*I) strip_trailopt 'I'; skip_next=yes;; -*I?*) strip_trailopt 'I';; -*O) strip_trailopt 'O'; skip_next=yes;; -*O?*) strip_trailopt 'O';; -*l) strip_trailopt 'l'; skip_next=yes;; -*l?*) strip_trailopt 'l';; -[dEDm]) skip_next=yes;; -[JT]) skip_next=yes;; esac; case $flg in *$target_option*) has_opt=yes; break;; esac; done; test $has_opt = yes); then \   failcom='fail=yes'; \ else \   failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ case "all-recursive" in \   distclean-* | maintainer-clean-*) list='admin crosscompile-windows src lisp-utils tests doc interfaces share demo plotting desktopintegration locale' ;; \   *) list='admin crosscompile-windows src lisp-utils tests doc interfaces share demo plotting desktopintegration ' ;; \ esac; \ for subdir in $list; do \   echo "Making $target in $subdir"; \   if test "$subdir" = "."; then \     dot_seen=yes; \     local_target="$target-am"; \   else \     local_target="$target"; \   fi; \   (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \   || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \   make  "$target-am" || exit 1; \ fi; test -z "$fail"
root     55381 55372  0 04:09 ?        00:00:00 make all
root     55718 55381  0 04:09 ?        00:00:00 /usr/bin/bash -c echo ' (load "../lisp-utils/defsystem.lisp") (mk:add-registry-location "../src/") (funcall (intern (symbol-name :operate-on-system) :mk) "maxima" :compile :verbose t) (build-maxima-lib) (ext:quit)' | ecl -norc
root     55720 55718  0 04:09 ?        00:00:05 ecl -norc
root     60671 55720  0 04:11 ?        00:00:00 gcc -o binary-ecl/comm.fas -L/usr/lib/x86_64-linux-gnu/ /tmp/eclinitMUZh7E.o binary-ecl/comm.o -shared -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -lecl -lgmp -lgc -lffi -lgc -lgc -lgc -lpthread -ldl -lm
root     60672 60671  0 04:11 ?        00:00:00 /usr/libexec/gcc/x86_64-linux-gnu/13/collect2 -plugin /usr/libexec/gcc/x86_64-linux-gnu/13/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper -plugin-opt=-fresolution=/tmp/ccXAaJ4I.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -flto=auto -flto=auto -flto=auto -flto=auto --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -shared -z relro -o binary-ecl/comm.fas /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/13/crtbeginS.o -L/usr/lib/x86_64-linux-gnu/ -L/sage/local/lib/../lib -L/sage/local/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/13 -L/usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/13/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/sage/local/lib -L/sage/local/lib -L/usr/lib/gcc/x86_64-linux-gnu/13/../../.. /tmp/eclinitMUZh7E.o binary-ecl/comm.o -Bsymbolic-functions -z relro -Bsymbolic-functions -z relro -lecl -lgmp -lgc -lffi -lgc -lgc -lgc -lpthread -ldl -lm -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/13/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/crtn.o
root     60673 60672  0 04:11 ?        00:00:00 /usr/bin/ld -plugin /usr/libexec/gcc/x86_64-linux-gnu/13/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper -plugin-opt=-fresolution=/tmp/ccXAaJ4I.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -shared -z relro -o binary-ecl/comm.fas /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/13/crtbeginS.o -L/usr/lib/x86_64-linux-gnu/ -L/sage/local/lib/../lib -L/sage/local/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/13 -L/usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/13/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/sage/local/lib -L/sage/local/lib -L/usr/lib/gcc/x86_64-linux-gnu/13/../../.. /tmp/eclinitMUZh7E.o binary-ecl/comm.o -Bsymbolic-functions -z relro -Bsymbolic-functions -z relro -lecl -lgmp -lgc -lffi -lgc -lgc -lgc -lpthread -ldl -lm -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/13/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/crtn.o
root     60674 60673  0 04:11 ?        00:00:00 /usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper @/tmp/cczGUMO8.lto_wrapper_args
root     60676 60674  0 04:11 ?        00:00:00 gcc @/tmp/ccBMKtXe
root     60677 60676  0 04:11 ?        00:00:00 /usr/libexec/gcc/x86_64-linux-gnu/13/lto1 -quiet -dumpbase binary-ecl/comm.fas.wpa -mtune=generic -march=x86-64 -g -O2 -O2 -fno-openmp -fno-openacc -fPIC -fasynchronous-unwind-tables -fcf-protection=full -ffat-lto-objects -fltrans-output-list=/tmp/ccVDCtUT.ltrans.out -fwpa=jobserver -fresolution=/tmp/ccXAaJ4I.res -flinker-output=dyn @/tmp/ccToLS1z

tail of the build log:

;      - Loading binary file "binary-ecl/outmis.fas" 
;      - Compiling source file
;        "/sage/local/var/tmp/sage/build/maxima-5.46.0/src/src/ar.lisp"
;;;
;;; Compiling /sage/local/var/tmp/sage/build/maxima-5.46.0/src/src/ar.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=2
;;;
;;; End of Pass 1.
;;; Finished compiling /sage/local/var/tmp/sage/build/maxima-5.46.0/src/src/ar.lisp.
;;;

;      - Loading binary file "binary-ecl/ar.fas" 
;    - Compiling module "commands" 
;      - Compiling source file
;        "/sage/local/var/tmp/sage/build/maxima-5.46.0/src/src/comm.lisp"
;;;
;;; Compiling /sage/local/var/tmp/sage/build/maxima-5.46.0/src/src/comm.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=2
;;;
;;; End of Pass 1.
;;; Finished compiling /sage/local/var/tmp/sage/build/maxima-5.46.0/src/src/comm.lisp.
;;;
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 7, 2023

Upgrading to maxima 5.47.0 does not help.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 7, 2023

Building our own ecl fixes it

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 13, 2023

@spaghettisalat

@mkoeppe mkoeppe removed this from the sage-10.2 milestone Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant