Subject: bug#62211: Job build-native-comp-speed2 does not run anymore on EMBA

From: Andrea Corallo <[email-masked]>
Date: Sat, 25 Mar 2023 08:50:57 +0000

Michael Albinus <[email-masked]> writes:

> Michael Albinus <[email-masked]> writes:
>
> Hi Andrea,
>
>> We have upgraded Debian from stretch to bullseye. According to
>> https://packages.debian.org/de/gcc on stretch there is gcc 6.3.0, and on
>> bullseye there is gcc 10.2.1.
>>
>> Does it mean we shall install libgccjit-10-dev now instead of
>> libgccjit-6-dev? Will try it.
>
> That has worked, libgccjit-10-dev is installed now. See <https://emba.gnu.org/emacs/emacs/-/jobs/65033/raw>
>
> #6 [emacs-native-comp 1/1] RUN apt-get update &&     apt-get install -y --n...
> #6 2.884 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
> #6 2.965 Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
> #6 2.982 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
> #6 3.424 Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
> #6 4.477 Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [236 kB]
> #6 5.116 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB]
> #6 6.767 Fetched 8642 kB in 4s (2219 kB/s)
> #6 6.767 Reading package lists...
> #6 8.468 Reading package lists...
> #6 10.30 Building dependency tree...
> #6 10.69 Reading state information...
> #6 11.37 The following additional packages will be installed:
> #6 11.37   libgccjit0
> #6 11.38 Suggested packages:
> #6 11.38   libgccjit-10-dbg
> #6 11.47 The following NEW packages will be installed:
> #6 11.47   libgccjit-10-dev libgccjit0
> #6 11.67 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
> #6 11.67 Need to get 7181 kB of archives.
> #6 11.67 After this operation, 26.2 MB of additional disk space will be used.
> #6 11.67 Get:1 http://deb.debian.org/debian bullseye/main amd64 libgccjit0 amd64 10.2.1-6 [7163 kB]
> #6 12.40 Get:2 http://deb.debian.org/debian bullseye/main amd64 libgccjit-10-dev amd64 10.2.1-6 [17.4 kB]
> #6 12.84 debconf: delaying package configuration, since apt-utils is not installed
> #6 12.97 Fetched 7181 kB in 1s (7969 kB/s)
> #6 13.05 Selecting previously unselected package libgccjit0:amd64.
> #6 13.07 (Reading database ... 16468 files and directories currently installed.)
> #6 13.08 Preparing to unpack .../libgccjit0_10.2.1-6_amd64.deb ...
> #6 13.11 Unpacking libgccjit0:amd64 (10.2.1-6) ...
> #6 15.22 Selecting previously unselected package libgccjit-10-dev:amd64.
> #6 15.23 Preparing to unpack .../libgccjit-10-dev_10.2.1-6_amd64.deb ...
> #6 15.24 Unpacking libgccjit-10-dev:amd64 (10.2.1-6) ...
> #6 15.36 Setting up libgccjit0:amd64 (10.2.1-6) ...
> #6 15.39 Setting up libgccjit-10-dev:amd64 (10.2.1-6) ...
> #6 15.45 Processing triggers for libc-bin (2.31-13+deb11u5) ...
> #6 DONE 17.0s
>
>
> However, calling ./configure results in a new error now:
>
> #11 [emacs-native-comp-speed2 4/5] RUN ./configure --with-native-compilation
> #11 1.365 checking for xcrun... no
> #11 1.370 checking for GNU Make... make
> #11 1.402 checking build system type... x86_64-pc-linux-gnu
> #11 1.907 checking host system type... x86_64-pc-linux-gnu
> #11 1.924 checking for gcc... gcc
> #11 2.004 checking whether the C compiler works... yes
> #11 2.310 checking for C compiler default output file name... a.out
> #11 2.312 checking for suffix of executables...
> #11 2.410 checking whether we are cross compiling... no
> #11 2.648 checking for suffix of object files... o
> #11 2.708 checking whether we are using the GNU C compiler... yes
> #11 2.768 checking whether gcc accepts -g... yes
> #11 2.847 checking for gcc option to enable C11 features... none needed
> #11 3.232 checking whether the compiler is clang... no
> #11 3.289 checking for compiler option needed when checking for declarations... none
> #11 3.290 checking whether gcc and cc understand -c and -o together... yes
> #11 3.544 checking how to run the C preprocessor... gcc -E
> #11 3.728 checking for grep that handles long lines and -e... /bin/grep
> #11 3.734 checking for egrep... /bin/grep -E
> #11 3.740 checking for ANSI C header files... yes
> #11 4.095 checking for sys/types.h... yes
> #11 4.190 checking for sys/stat.h... yes
> #11 4.300 checking for stdlib.h... yes
> #11 4.407 checking for string.h... yes
> #11 4.501 checking for memory.h... yes
> #11 4.631 checking for strings.h... yes
> #11 4.743 checking for inttypes.h... yes
> #11 4.870 checking for stdint.h... yes
> #11 4.987 checking for unistd.h... yes
> #11 5.134 checking for wchar.h... yes
> #11 5.245 checking for minix/config.h... no
> #11 5.349 checking for linux/fs.h... yes
> #11 5.505 checking for malloc.h... yes
> #11 5.626 checking for sys/systeminfo.h... no
> #11 5.725 checking for sys/sysinfo.h... yes
> #11 5.846 checking for coff.h... no
> #11 5.944 checking for pty.h... yes
> #11 6.083 checking for sys/resource.h... yes
> #11 6.217 checking for sys/utsname.h... yes
> #11 6.326 checking for pwd.h... yes
> #11 6.423 checking for utmp.h... yes
> #11 6.564 checking for util.h... no
> #11 6.649 checking for sanitizer/lsan_interface.h... yes
> #11 6.758 checking for sys/socket.h... yes
> #11 6.901 checking for stdlib.h... (cached) yes
> #11 6.918 checking for unistd.h... (cached) yes
> #11 6.934 checking for sys/param.h... yes
> #11 7.108 checking for pthread.h... yes
> #11 7.368 checking for malloc/malloc.h... no
> #11 7.523 checking for sys/un.h... yes
> #11 8.771 checking for dirent.h... yes
> #11 8.889 checking for execinfo.h... yes
> #11 9.009 checking for stdio_ext.h... yes
> #11 9.113 checking for sys/vfs.h... yes
> #11 9.227 checking for sys/fs_types.h... no
> #11 9.327 checking for getopt.h... yes
> #11 9.446 checking for sys/cdefs.h... yes
> #11 9.570 checking for sys/time.h... yes
> #11 9.705 checking for ieee754.h... yes
> #11 9.882 checking for limits.h... yes
> #11 9.982 checking for inttypes.h... (cached) yes
> #11 10.02 checking for sys/types.h... (cached) yes
> #11 10.04 checking for stdint.h... (cached) yes
> #11 10.06 checking for sys/select.h... yes
> #11 10.16 checking for stdalign.h... yes
> #11 10.26 checking for stdbool.h... yes
> #11 10.36 checking for stdckdint.h... no
> #11 10.45 checking for sys/random.h... yes
> #11 10.53 checking for sys/stat.h... (cached) yes
> #11 10.54 checking whether it is safe to define __EXTENSIONS__... yes
> #11 10.65 checking whether _XOPEN_SOURCE should be defined... no
> #11 10.72 checking for Minix Amsterdam compiler... no
> #11 10.74 checking for ar... ar
> #11 10.75 checking for ranlib... ranlib
> #11 10.75 checking for special C compiler options needed for large files... no
> #11 10.75 checking for _FILE_OFFSET_BITS value needed for large files... no
> #11 10.80 checking whether gcc accepts -g3 -O2... yes
> #11 11.02 checking whether the compiler is clang... no
> #11 11.11 checking whether C compiler handles -Werror -Wunknown-warning-option... no
> #11 11.17 checking whether -Wno-missing-field-initializers is supported... yes
> #11 11.22 checking whether -Wno-missing-field-initializers is needed... no
> #11 11.28 checking whether -Wuninitialized is supported... yes
> #11 11.36 checking whether C compiler handles -fno-common... yes
> #11 11.46 checking whether C compiler handles -Wall... yes
> #11 11.55 checking whether C compiler handles -Warith-conversion... yes
> #11 11.66 checking whether C compiler handles -Wdate-time... yes
> #11 11.75 checking whether C compiler handles -Wdisabled-optimization... yes
> #11 11.85 checking whether C compiler handles -Wdouble-promotion... yes
> #11 11.96 checking whether C compiler handles -Wduplicated-cond... yes
> #11 12.06 checking whether C compiler handles -Wextra... yes
> #11 12.18 checking whether C compiler handles -Wformat-signedness... yes
> #11 12.28 checking whether C compiler handles -Winit-self... yes
> #11 12.37 checking whether C compiler handles -Winvalid-pch... yes
> #11 12.47 checking whether C compiler handles -Wlogical-op... yes
> #11 12.56 checking whether C compiler handles -Wmissing-declarations... yes
> #11 12.68 checking whether C compiler handles -Wmissing-include-dirs... yes
> #11 12.84 checking whether C compiler handles -Wmissing-prototypes... yes
> #11 12.98 checking whether C compiler handles -Wnested-externs... yes
> #11 13.22 checking whether C compiler handles -Wnull-dereference... yes
> #11 13.33 checking whether C compiler handles -Wold-style-definition... yes
> #11 13.44 checking whether C compiler handles -Wopenmp-simd... yes
> #11 13.53 checking whether C compiler handles -Wpacked... yes
> #11 13.70 checking whether C compiler handles -Wpointer-arith... yes
> #11 13.81 checking whether C compiler handles -Wstrict-prototypes... yes
> #11 13.92 checking whether C compiler handles -Wsuggest-attribute=format... yes
> #11 14.03 checking whether C compiler handles -Wsuggest-attribute=noreturn... yes
> #11 14.16 checking whether C compiler handles -Wsuggest-final-methods... yes
> #11 14.30 checking whether C compiler handles -Wsuggest-final-types... yes
> #11 14.41 checking whether C compiler handles -Wtrampolines... yes
> #11 14.51 checking whether C compiler handles -Wuninitialized... yes
> #11 14.61 checking whether C compiler handles -Wunknown-pragmas... yes
> #11 14.74 checking whether C compiler handles -Wunused-macros... yes
> #11 14.87 checking whether C compiler handles -Wvariadic-macros... yes
> #11 14.98 checking whether C compiler handles -Wvector-operation-performance... yes
> #11 15.16 checking whether C compiler handles -Wwrite-strings... yes
> #11 15.28 checking whether C compiler handles -Warray-bounds=2... yes
> #11 15.38 checking whether C compiler handles -Wattribute-alias=2... yes
> #11 15.49 checking whether C compiler handles -Wformat=2... yes
> #11 15.66 checking whether C compiler handles -Wformat-truncation=2... yes
> #11 15.76 checking whether C compiler handles -Wimplicit-fallthrough=5... yes
> #11 15.86 checking whether C compiler handles -Wshift-overflow=2... yes
> #11 15.95 checking whether C compiler handles -Wuse-after-free=3... no
> #11 16.00 checking whether C compiler handles -Wvla-larger-than=4031... yes
> #11 16.09 checking whether C compiler handles -Wredundant-decls... yes
> #11 16.17 checking whether C compiler handles -Wno-missing-field-initializers... yes
> #11 16.26 checking whether C compiler handles -Wno-override-init... yes
> #11 16.35 checking whether C compiler handles -Wno-sign-compare... yes
> #11 16.46 checking whether C compiler handles -Wno-type-limits... yes
> #11 16.55 checking whether C compiler handles -Wno-unused-parameter... yes
> #11 16.66 checking whether C compiler handles -Wno-format-nonliteral... yes
> #11 16.77 checking whether C compiler handles -Wno-bidi-chars... no
> #11 16.80 checking for a BSD-compatible install... /usr/bin/install -c
> #11 16.85 checking command to symlink files in the same directory... ln -s
> #11 16.86 checking for install-info... :
> #11 16.87 checking for gzip... /bin/gzip
> #11 16.87 checking for 'find' args to delete a file... -delete
> #11 16.87 checking for brew... no
> #11 18.13 checking for -znocombreloc... not needed
> #11 18.13 checking whether addresses are sanitized... no
> #11 18.17 checking for math library... -lm
> #11 18.73 checking for pkg-config... /usr/bin/pkg-config
> #11 18.73 checking pkg-config is at least version 0.9.0... yes
> #11 18.79 checking for machine/soundcard.h... no
> #11 18.84 checking for sys/soundcard.h... yes
> #11 18.96 checking for soundcard.h... no
> #11 19.00 checking for mmsystem.h... no
> #11 19.04 checking for _oss_ioctl in -lossaudio... no
> #11 19.11 checking for alsa >= 1.0.0... no
> #11 19.13 checking for ADDR_NO_RANDOMIZE... yes
> #11 19.19 checking if Linux sysinfo may be used... yes
> #11 19.34 checking for sys/wait.h that is POSIX.1 compatible... yes
> #11 19.47 checking for net/if.h... yes
> #11 19.60 checking for ifaddrs.h... yes
> #11 19.71 checking for net/if_dl.h... no
> #11 19.85 checking for struct ifreq.ifr_flags... yes
> #11 20.07 checking for struct ifreq.ifr_hwaddr... yes
> #11 20.33 checking for struct ifreq.ifr_netmask... yes
> #11 20.53 checking for struct ifreq.ifr_broadaddr... yes
> #11 20.75 checking for struct ifreq.ifr_addr... yes
> #11 21.03 checking for struct ifreq.ifr_addr.sa_len... no
> #11 21.23 checking whether gcc understands -MMD -MF... yes
> #11 21.29 checking for X... no
> #11 21.41 checking for X... false
> #11 21.42 checking whether malloc is Doug Lea style... no
> #11 21.50 checking for sbrk... yes
> #11 21.66 checking for __lsan_ignore_object... no
> #11 21.81 checking for fchmod... yes
> #11 21.95 checking for canonicalize_file_name... yes
> #11 22.11 checking for faccessat... yes
> #11 22.26 checking for realpath... yes
> #11 22.38 checking for lstat... yes
> #11 22.52 checking for readlinkat... yes
> #11 22.65 checking for explicit_bzero... yes
> #11 22.81 checking for memset_s... no
> #11 22.93 checking for fchmodat... yes
> #11 23.06 checking for lchmod... no
> #11 23.13 checking for fcntl... yes
> #11 23.27 checking for fdopendir... yes
> #11 23.43 checking for fstatat... yes
> #11 23.58 checking for fsync... yes
> #11 23.73 checking for futimens... yes
> #11 23.87 checking for getrandom... yes
> #11 24.01 checking for gettimeofday... yes
> #11 24.14 checking for mkostemp... yes
> #11 24.27 checking for pipe2... yes
> #11 24.41 checking for pselect... yes
> #11 24.54 checking for readlink... yes
> #11 24.68 checking for isblank... yes
> #11 24.83 checking for iswctype... yes
> #11 24.97 checking for strtoimax... yes
> #11 25.11 checking for symlink... yes
> #11 25.26 checking for localtime_r... yes
> #11 25.40 checking for timegm... yes
> #11 25.56 checking for utimensat... yes
> #11 25.74 checking for getdtablesize... yes
> #11 26.36 checking for futimes... yes
> #11 26.52 checking for futimesat... yes
> #11 26.66 checking for lutimes... yes
> #11 26.81 checking for getpagesize... yes
> #11 26.93 checking for working mmap... yes
> #11 27.21 checking for main in -lXbsd... no
> #11 27.32 checking for pthread library... -lpthread
> #11 27.64 checking for thread support... yes
> #11 27.65 checking for sqlite3_open_v2 in -lsqlite3... no
> #11 27.80 checking for getaddrinfo_a in -lanl... yes
> #11 27.95 checking for malloc_trim... yes
> #11 28.08 checking for dbus-1 >= 1.0... yes
> #11 28.13 checking for dbus_watch_get_unix_fd... yes
> #11 28.30 checking for dbus_type_is_valid... yes
> #11 28.48 checking for dbus_validate_bus_name... yes
> #11 28.71 checking for dbus_validate_path... yes
> #11 28.90 checking for dbus_validate_interface... yes
> #11 29.09 checking for dbus_validate_member... yes
> #11 29.27 checking for lgetfilecon in -lselinux... no
> #11 29.44 checking for gnutls >= 2.12.2... yes
> #11 29.51 checking for libsystemd >= 222... no
> #11 29.54 checking for jansson >= 2.7... no
> #11 29.57 checking for tree-sitter >= 0.20.2... no
> #11 29.60 checking for tree-sitter >= 0.6.3... no
> #11 29.63 checking sys/inotify.h usability... yes
> #11 29.78 checking sys/inotify.h presence... yes
> #11 29.84 checking for sys/inotify.h... yes
> #11 29.84 checking for inotify_init1... yes
> #11 30.12 checking for lcms2... no
> #11 30.13 checking for library containing inflateEnd... no
> #11 30.35 checking for dladdr... yes
> #11 30.49 checking for dlfunc... no
> #11 30.63 configure: error: '--with-native-compilation' requires zlib
> #11 ERROR: executor failed running [/bin/sh -c ./configure --with-native-compilation]: exit code: 1
>
> What do we miss?
>
> Best regards, Michael.

Hi Michael,

I guess we are just missing zlib in the docker?  I'm not a debian expert
but I think zlib1g-dev might be the package we need here.

Best Regards

  Andrea