Hello,
Looking to build Emacs 31.0.91 pretest announced at https://lists.gnu.org/archive/html/emacs-devel/2026-06/msg00118.html I get stuck at this message when calling `configure' with options lifted from pkgsrc. checking for gcc_jit_context_acquire in -lgccjit... no configure: error: Lisp native compiler was requested, but libgccjit was not found. Please try installing libgccjit or a similar package. configure is run as follows. And, NetBSD 11.0_RC4 is the os. /local/u/v/src/emacs-31.0.90/configure --srcdir=/local/u/v/src/emacs-31.0.90 --localstatedir=/var --disable-autodepend --with-native-compilation --without-ns --without-xaw3d --x-includes=/usr/X11R7/include --x-libraries=/usr/X11R7/lib --with-x-toolkit=athena --prefix=/usr/pkg --build=x86_64--netbsd --host=x86_64--netbsd --infodir=/usr/pkg/info --mandir=/usr/pkg/man --enable-option-checking=yes 'CFLAGS=-O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libxml2 -I/usr/X11R7/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/ImageMagick-7 -I/usr/pkg/gcc14/include' 'CPPFLAGS=-DTERMINFO -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libxml2 -I/usr/X11R7/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/ImageMagick-7 -I/usr/pkg/gcc14/include' 'LDFLAGS=-Wl,-R/usr/pkg/gcc14/lib -Wl,-zrelro -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib' I have the gcc14-libjit package located as follows. $ pkg_info -L gcc14-libjit pkg_info -L gcc14-libjit Information for gcc14-libjit-14.3.0: Files: /usr/pkg/gcc14/include/libgccjit++.h /usr/pkg/gcc14/include/libgccjit.h /usr/pkg/gcc14/info/libgccjit.info /usr/pkg/gcc14/lib/libgccjit.so /usr/pkg/gcc14/lib/libgccjit.so.0 /usr/pkg/gcc14/lib/libgccjit.so.0.0.1 I was told to see the config.log to understand the failure and it is as follows. Any ideas? The local `bmake' pkgsrc/editors/emacs build completes but attempting to build the Emacs pretest distribution gets stuck. configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU Emacs" | #define PACKAGE_TARNAME "emacs" | #define PACKAGE_VERSION "31.0.90" | #define PACKAGE_STRING "GNU Emacs 31.0.90" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE_URL "https://www.gnu.org/software/emacs/" | #define HAVE_PDUMPER 1 | #define GC_REMEMBER_LAST_MARKED 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_MALLOC_H 1 | #define HAVE_SYS_RESOURCE_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_PWD_H 1 | #define HAVE_UTIL_H 1 | #define HAVE_SANITIZER_LSAN_INTERFACE_H 1 | #define HAVE_SANITIZER_ASAN_INTERFACE_H 1 | #define HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_SYS_UN_H 1 | #define HAVE_STDBOOL_H 1 | #define HAVE_UTMP_H 1 | #define HAVE_UTMPX_H 1 | #define HAVE_DIRENT_H 1 | #define HAVE_EXECINFO_H 1 | #define HAVE_GETOPT_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_RANDOM_H 1 | #define HAVE_ENDIAN_H 1 | #define HAVE_SYS_ENDIAN_H 1 | #define STDC_HEADERS 1 | #define _ALL_SOURCE 1 | #define _DARWIN_C_SOURCE 1 | #define _GNU_SOURCE 1 | #define _HPUX_ALT_XOPEN_SOCKET_API 1 | #define _NETBSD_SOURCE 1 | #define _OPENBSD_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 | #define _TANDEM_SOURCE 1 | #define __EXTENSIONS__ 1 | #define _LINUX_SOURCE_COMPAT 1 | #define __USE_MINGW_ANSI_STDIO 1 | #define SYSTEM_TYPE "berkeley-unix" | #define HAVE_SYS_SOUNDCARD_H 1 | #define HAVE_SOUNDCARD_H 1 | #define HAVE_SOUND 1 | #define HAVE_TERM_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_NET_IF_H 1 | #define HAVE_IFADDRS_H 1 | #define HAVE_NET_IF_DL_H 1 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | #define USER_FULL_NAME pw->pw_gecos | #define ALIGNOF_EMACS_INT 8 | #define SIZEOF_LONG 8 | #define HAVE_STRUCT_ATTRIBUTE_ALIGNED 1 | #define HAVE_SBRK 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_FORK 1 | #define HAVE_VFORK 1 | #define HAVE_FCHMOD 1 | #define HAVE_UTMPNAME 1 | #define HAVE_UTMPXNAME 1 | #define HAVE_REALPATH 1 | #define HAVE_LSTAT 1 | #define HAVE_FCHMODAT 1 | #define HAVE_LCHMOD 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSYNC 1 | #define HAVE_GETTIMEOFDAY 1 | #define HAVE_STRFTIME_Z 1 | #define HAVE_PSELECT 1 | #define HAVE_READLINK 1 | #define HAVE_ISBLANK 1 | #define HAVE_ISWCTYPE 1 | #define HAVE_STRTOIMAX 1 | #define HAVE_SYMLINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_GETDTABLESIZE 1 | #define HAVE_UTIMENS 1 | #define HAVE_LUTIMENS 1 | #define SYSTEM_MALLOC 1 | #define HAVE_MMAP 1 | #define HAVE_PTHREAD 1 | #define ALIGNOF_MAX_ALIGN_T 16 | #define ALIGNOF_PTHREAD_COND_T 8 | #define ALIGNOF_PTHREAD_MUTEX_T 8 | #define THREADS_ENABLED 1 | #define HAVE_XKB 1 | #define HAVE_XKBREFRESHKEYBOARDMAPPING 1 | #define HAVE_XKBFREENAMES 1 | #define HAVE_XRMSETDATABASE 1 | #define HAVE_XSCREENRESOURCESTRING 1 | #define HAVE_XSCREENNUMBEROFSCREEN 1 | #define HAVE_XDISPLAYCELLS 1 | #define HAVE_XDESTROYSUBWINDOWS 1 | #define HAVE_X11R6 1 | #define HAVE_X_I18N 1 | #define HAVE_XICCALLBACK_CALLBACK 1 | #define HAVE_X11R6_XIM 1 | #define HAVE_RSVG 1 | #define HAVE_WEBP 1 | #define HAVE_SQLITE3_LOAD_EXTENSION 1 | #define HAVE_SQLITE3 1 | #define HAVE_DBUS 1 | #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 | #define HAVE_DBUS_TYPE_IS_VALID 1 | #define HAVE_DBUS_VALIDATE_BUS_NAME 1 | #define HAVE_DBUS_VALIDATE_PATH 1 | #define HAVE_DBUS_VALIDATE_INTERFACE 1 | #define HAVE_DBUS_VALIDATE_MEMBER 1 | #define HAVE_DBUS_MESSAGE_SET_ALLOW_INTERACTIVE_AUTHORIZATION 1 | #define HAVE_GSETTINGS 1 | #define HAVE_GNUTLS 1 | #define HAVE_TREE_SITTER 1 | #define HAVE_TS_TREE_CURSOR_GOTO_PREVIOUS_SIBLING 1 | #define HAVE_KQUEUE 1 | #define USE_FILE_NOTIFY 1 | #define HAVE_X11XTR6 1 | #define USE_TOOLKIT_SCROLL_BARS 1 | #define HAVE_XIM 1 | #define USE_XIM 1 | #define HAVE_XRENDER 1 | #define USE_CAIRO 1 | #define HAVE_FREETYPE 1 | #define HAVE_FT_FACE_GETCHARVARIANTINDEX 1 | #define HAVE_LIBOTF 1 | #define HAVE_OTF_GET_VARIATION_GLYPHS 1 | #define HAVE_HARFBUZZ 1 | #define HAVE_HB_FONT_SET_VAR_NAMED_INSTANCE 1 | #define USE_XCB 1 | #define HAVE_XPM 1 | #define HAVE_JPEG 1 | #define HAVE_LCMS2 1 | #define HAVE_ZLIB 1 | #define DYNAMIC_LIB_SUFFIX ".so" | #define DYNAMIC_LIB_SECONDARY_SUFFIX "" | #define HAVE_DLADDR 1 | /* end confdefs.h. */ | /* Define dlfunc to an innocuous variant, in case <limits.h> declares dlfunc. | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | #define dlfunc innocuous_dlfunc | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char dlfunc (void); below. */ | | #include <limits.h> | #undef dlfunc | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char dlfunc (void); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_dlfunc || defined __stub___dlfunc | choke me | #endif | | int | main (void) | { | return dlfunc (); | ; | return 0; | } configure:28342: result: no configure:28473: checking for gcc_jit_context_acquire in -lgccjit configure:28502: gcc -o conftest -I/usr/X11R7/include -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libxml2 -I/usr/X11R7/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/ImageMagick-7 -I/usr/pkg/gcc14/include -I/usr/pkg/include/librsvg-2.0 -I/usr/pkg/include/gdk-pixbuf-2.0 -I/usr/pkg/include -I/usr/pkg/include/cairo -I/usr/pkg/include/libxml2 -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/fribidi -I/usr/X11R7/include -D_REENTRANT -I/usr/X11R7/include/pixman-1 -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libpng16 -pthread -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/cairo -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libpng16 -I/usr/X11R7/include -D_REENTRANT -I/usr/X11R7/include/pixman-1 -I/usr/X11R7/include -fno-tree-sra -DTERMINFO -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libxml2 -I/usr/X11R7/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/ImageMagick-7 -I/usr/pkg/gcc14/include -Wl,-R/usr/pkg/gcc14/lib -Wl,-zrelro -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/X11R7/lib conftest.c -lgccjit -lsqlite3 -lX11 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lcairo >&5 ld: cannot find -lgccjit: No such file or directory configure:28502: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU Emacs" | #define PACKAGE_TARNAME "emacs" | #define PACKAGE_VERSION "31.0.90" | #define PACKAGE_STRING "GNU Emacs 31.0.90" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE_URL "https://www.gnu.org/software/emacs/" | #define HAVE_PDUMPER 1 | #define GC_REMEMBER_LAST_MARKED 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_MALLOC_H 1 | #define HAVE_SYS_RESOURCE_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_PWD_H 1 | #define HAVE_UTIL_H 1 | #define HAVE_SANITIZER_LSAN_INTERFACE_H 1 | #define HAVE_SANITIZER_ASAN_INTERFACE_H 1 | #define HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_SYS_UN_H 1 | #define HAVE_STDBOOL_H 1 | #define HAVE_UTMP_H 1 | #define HAVE_UTMPX_H 1 | #define HAVE_DIRENT_H 1 | #define HAVE_EXECINFO_H 1 | #define HAVE_GETOPT_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_RANDOM_H 1 | #define HAVE_ENDIAN_H 1 | #define HAVE_SYS_ENDIAN_H 1 | #define STDC_HEADERS 1 | #define _ALL_SOURCE 1 | #define _DARWIN_C_SOURCE 1 | #define _GNU_SOURCE 1 | #define _HPUX_ALT_XOPEN_SOCKET_API 1 | #define _NETBSD_SOURCE 1 | #define _OPENBSD_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 | #define _TANDEM_SOURCE 1 | #define __EXTENSIONS__ 1 | #define _LINUX_SOURCE_COMPAT 1 | #define __USE_MINGW_ANSI_STDIO 1 | #define SYSTEM_TYPE "berkeley-unix" | #define HAVE_SYS_SOUNDCARD_H 1 | #define HAVE_SOUNDCARD_H 1 | #define HAVE_SOUND 1 | #define HAVE_TERM_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_NET_IF_H 1 | #define HAVE_IFADDRS_H 1 | #define HAVE_NET_IF_DL_H 1 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | #define USER_FULL_NAME pw->pw_gecos | #define ALIGNOF_EMACS_INT 8 | #define SIZEOF_LONG 8 | #define HAVE_STRUCT_ATTRIBUTE_ALIGNED 1 | #define HAVE_SBRK 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_FORK 1 | #define HAVE_VFORK 1 | #define HAVE_FCHMOD 1 | #define HAVE_UTMPNAME 1 | #define HAVE_UTMPXNAME 1 | #define HAVE_REALPATH 1 | #define HAVE_LSTAT 1 | #define HAVE_FCHMODAT 1 | #define HAVE_LCHMOD 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_LISTXATTR 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSYNC 1 | #define HAVE_GETTIMEOFDAY 1 | #define HAVE_STRFTIME_Z 1 | #define HAVE_PSELECT 1 | #define HAVE_READLINK 1 | #define HAVE_ISBLANK 1 | #define HAVE_ISWCTYPE 1 | #define HAVE_STRTOIMAX 1 | #define HAVE_SYMLINK 1 | #define HAVE_LOCALTIME_R 1 | #define HAVE_GETDTABLESIZE 1 | #define HAVE_UTIMENS 1 | #define HAVE_LUTIMENS 1 | #define SYSTEM_MALLOC 1 | #define HAVE_MMAP 1 | #define HAVE_PTHREAD 1 | #define ALIGNOF_MAX_ALIGN_T 16 | #define ALIGNOF_PTHREAD_COND_T 8 | #define ALIGNOF_PTHREAD_MUTEX_T 8 | #define THREADS_ENABLED 1 | #define HAVE_XKB 1 | #define HAVE_XKBREFRESHKEYBOARDMAPPING 1 | #define HAVE_XKBFREENAMES 1 | #define HAVE_XRMSETDATABASE 1 | #define HAVE_XSCREENRESOURCESTRING 1 | #define HAVE_XSCREENNUMBEROFSCREEN 1 | #define HAVE_XDISPLAYCELLS 1 | #define HAVE_XDESTROYSUBWINDOWS 1 | #define HAVE_X11R6 1 | #define HAVE_X_I18N 1 | #define HAVE_XICCALLBACK_CALLBACK 1 | #define HAVE_X11R6_XIM 1 | #define HAVE_RSVG 1 | #define HAVE_WEBP 1 | #define HAVE_SQLITE3_LOAD_EXTENSION 1 | #define HAVE_SQLITE3 1 | #define HAVE_DBUS 1 | #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 | #define HAVE_DBUS_TYPE_IS_VALID 1 | #define HAVE_DBUS_VALIDATE_BUS_NAME 1 | #define HAVE_DBUS_VALIDATE_PATH 1 | #define HAVE_DBUS_VALIDATE_INTERFACE 1 | #define HAVE_DBUS_VALIDATE_MEMBER 1 | #define HAVE_DBUS_MESSAGE_SET_ALLOW_INTERACTIVE_AUTHORIZATION 1 | #define HAVE_GSETTINGS 1 | #define HAVE_GNUTLS 1 | #define HAVE_TREE_SITTER 1 | #define HAVE_TS_TREE_CURSOR_GOTO_PREVIOUS_SIBLING 1 | #define HAVE_KQUEUE 1 | #define USE_FILE_NOTIFY 1 | #define HAVE_X11XTR6 1 | #define USE_TOOLKIT_SCROLL_BARS 1 | #define HAVE_XIM 1 | #define USE_XIM 1 | #define HAVE_XRENDER 1 | #define USE_CAIRO 1 | #define HAVE_FREETYPE 1 | #define HAVE_FT_FACE_GETCHARVARIANTINDEX 1 | #define HAVE_LIBOTF 1 | #define HAVE_OTF_GET_VARIATION_GLYPHS 1 | #define HAVE_HARFBUZZ 1 | #define HAVE_HB_FONT_SET_VAR_NAMED_INSTANCE 1 | #define USE_XCB 1 | #define HAVE_XPM 1 | #define HAVE_JPEG 1 | #define HAVE_LCMS2 1 | #define HAVE_ZLIB 1 | #define DYNAMIC_LIB_SUFFIX ".so" | #define DYNAMIC_LIB_SECONDARY_SUFFIX "" | #define HAVE_DLADDR 1 | #define HAVE_MODULES 1 | #define MODULES_SUFFIX ".so" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. | The 'extern "C"' is for builds by C++ compilers; | although this is not generally supported in C code supporting it here | has little cost and some practical benefit (sr 110532). */ | #ifdef __cplusplus | extern "C" | #endif | char gcc_jit_context_acquire (void); | int | main (void) | { | return gcc_jit_context_acquire (); | ; | return 0; | } configure:28514: result: no configure:28541: error: Lisp native compiler was requested, but libgccjit was not found. Please try installing libgccjit or a similar package. If you are sure you want Emacs be compiled without the Lisp native compiler, pass the --without-native-compilation option to configure. -- vl
