From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "H. Dieter Wilhelm" Newsgroups: gmane.emacs.help Subject: Re: Building --with-native-compilation on Ubuntu 18.04 LT Date: Wed, 12 Jan 2022 22:36:52 +0100 Message-ID: <86iluotz4b.fsf@duenenhof-wilhelm.de> References: <861r1cvib0.fsf@duenenhof-wilhelm.de> <83v8yo4ria.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38866"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.90 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 12 22:38:17 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7lJx-0009ww-Rg for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 22:38:17 +0100 Original-Received: from localhost ([::1]:53934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7lJw-0008Sk-R7 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 16:38:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7lIi-0008PN-1E for help-gnu-emacs@gnu.org; Wed, 12 Jan 2022 16:37:01 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.187]:40103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7lIf-000521-1r; Wed, 12 Jan 2022 16:36:59 -0500 Original-Received: from ping ([92.116.167.204]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MvJs9-1mGl0O2nnl-00rGFD; Wed, 12 Jan 2022 22:36:53 +0100 In-Reply-To: <83v8yo4ria.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Jan 2022 22:40:29 +0200") X-Provags-ID: V03:K1:gKwL3+TJGyXc996UM05ry8WPxNsFrLkJwL9NyEQtoWFSFfQ/T5w 1qpDrDG/pMApJY83rjsoDlBRvj8qKU3MfXLRFQusBSKV8GuMI6BnQREHwbP4IPa9I4JoPEn WnqdcK1jUTUXVcSDM2YIk94T/Ai0ORrEiVAezTY6jQ+A20nQDpUDg4wQ5gYaFh7jhZ+dHt+ +ftY8MA97eqicqIaQXj/A== X-UI-Out-Filterresults: notjunk:1;V03:K0:TbLDh8jQr94=:8lCcYeX6U/n0MwRdc/C4Ti I89jqkJpR+hO/uH1D0BoYRsixoKVOkvbHeDaMJ/X6zowaGa1MVXXMMfa01Y6DAJyyugmMoYLF wBQXQag71Iqj1m0qRuAoXEPEIck7LL/xLIWNi//JVsiBeQ4LH8QCu0vwNGdTzmo07JysIkRud k1zD8dUzT5BM3atY80hHTdBCTiKnfd5EovfL7KdOKyBJRmBQzV1MeyfvC76MGg2bal2+zMCb9 YjuAbwI2qt6ZGpn8RoBBs1ZNQTYpewpkORwA9yFF61fMMmNbAwGFFL0g87/C0x9NUNP2rceKq YrDUSsTnOOukHoX77YZXhsxjC73UIL9VgB8gM/d8u5eu6pkwMfoxwarI6wa+Muoy9SqMHGgvE KPbP0x3riXU+5nq7ETsnrhqkgMHRzTxzd0C9hnAxMZHuRvxgAORR++CRFGQ9AEjHkP2z8+mtV Z3O9n6wkiyitZqaL9NYMVdN5Ae/9lXbXZ52CtQhjNdHblattfCyo4CwfkCBXExk2umsNoRW9Q Jxi+nbOGxUFCdNfHvMaxnHUwDL32t7mZYhN0TUqrdxPxWs4x9Lg+KtqUMGdNDSGLFhm+kvDnp OFRBa0mfQcnDfWzXptepZkw9oyXgXZP3ggIrJBwGiwlFFWPcWIMv+nruvKT122o5cUfsnBq2B JKdF0SVbmvqrGnTYDN+w7JQg/oZ67a9yJ0vhVn6SU4e6yE/8L+IDpEav3yeNx12E+JHZ9hH0x UU8F4B6U/b498vQn Received-SPF: none client-ip=212.227.126.187; envelope-from=dieter@duenenhof-wilhelm.de; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135250 Archived-At: Eli Zaretskii writes: >> From: "H. Dieter Wilhelm" >> Date: Wed, 12 Jan 2022 20:57:07 +0100 >> >> I'd like to compile Emacs with the --with-native-compilation support. >> But configure was complaining about a missing libgccjit executable. I >> thought it a good idea to install libgccjit with the same version number >> as the installed gcc: libgccjit-7-dev. >> >> But now configure is complaining that libgccjit can't compile a test >> program. > > What exactly is the error message in config.log that corresponds to > this test? Here we are configure:18882: checking libgccjit.h usability configure:18882: gcc -c -g3 -O2 -pthread -isystem /usr/include/librsvg-2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libpng16 -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 conftest.c >&5 configure:18882: $? = 0 configure:18882: result: yes configure:18882: checking libgccjit.h presence configure:18882: gcc -E conftest.c configure:18882: $? = 0 configure:18882: result: yes configure:18882: checking for libgccjit.h configure:18882: result: yes configure:18946: gcc -o conftest -g3 -O2 -pthread -isystem /usr/include/librsvg-2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libpng16 -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 conftest.c -lgccjit -lX11 -lcairo >&5 configure:18946: $? = 0 configure:18946: ./conftest ./configure: line 3025: 20601 Segmentation fault (core dumped) ./conftest$ac_exeext configure:18946: $? = 139 configure: program exited with status 139 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU Emacs" | #define PACKAGE_TARNAME "emacs" | #define PACKAGE_VERSION "29.0.50" | #define PACKAGE_STRING "GNU Emacs 29.0.50" | #define PACKAGE_BUGREPORT "bug-gnu-emacs@gnu.org" | #define PACKAGE_URL "https://www.gnu.org/software/emacs/" | #define HAVE_PDUMPER 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_LINUX_FS_H 1 | #define HAVE_MALLOC_H 1 | #define HAVE_SYS_SYSINFO_H 1 | #define HAVE_PTY_H 1 | #define HAVE_SYS_RESOURCE_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_PWD_H 1 | #define HAVE_UTMP_H 1 | #define HAVE_SANITIZER_LSAN_INTERFACE_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_SYS_UN_H 1 | #define HAVE_DIRENT_H 1 | #define HAVE_EXECINFO_H 1 | #define HAVE_STDIO_EXT_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_GETOPT_H 1 | #define HAVE_SYS_CDEFS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_IEEE754_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_RANDOM_H 1 | #define HAVE_SYS_STAT_H 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_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 GCC_LINT 1 | #define SYSTEM_TYPE "gnu/linux" | #define HAVE_SYS_SOUNDCARD_H 1 | #define HAVE_ALSA 1 | #define HAVE_SOUND 1 | #define HAVE_PERSONALITY_ADDR_NO_RANDOMIZE 1 | #define HAVE_LINUX_SYSINFO 1 | #define LINUX_SYSINFO_UNIT 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_STRUCT_IFREQ_IFR_FLAGS 1 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | #define HAVE_SBRK 1 | #define HAVE_FCHMOD 1 | #define HAVE_CANONICALIZE_FILE_NAME 1 | #define HAVE_FACCESSAT 1 | #define HAVE_REALPATH 1 | #define HAVE_LSTAT 1 | #define HAVE_READLINKAT 1 | #define HAVE_EXPLICIT_BZERO 1 | #define HAVE_FCHMODAT 1 | #define HAVE_FCNTL 1 | #define HAVE_FDOPENDIR 1 | #define HAVE_FSTATAT 1 | #define HAVE_FSYNC 1 | #define HAVE_FUTIMENS 1 | #define HAVE_GETRANDOM 1 | #define HAVE_TIMESPEC_GET 1 | #define HAVE_GETTIMEOFDAY 1 | #define HAVE_MKOSTEMP 1 | #define HAVE_PIPE2 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_TIMEGM 1 | #define HAVE_UTIMENSAT 1 | #define HAVE_GETDTABLESIZE 1 | #define HAVE_FUTIMES 1 | #define HAVE_FUTIMESAT 1 | #define HAVE_LUTIMES 1 | #define SYSTEM_MALLOC 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_MMAP 1 | #define HAVE_PTHREAD 1 | #define THREADS_ENABLED 1 | #define HAVE_XKB 1 | #define HAVE_XRMSETDATABASE 1 | #define HAVE_XSCREENRESOURCESTRING 1 | #define HAVE_XSCREENNUMBEROFSCREEN 1 | #define HAVE_X11R6 1 | #define HAVE_X_I18N 1 | #define HAVE_X11R6_XIM 1 | #define HAVE_RSVG 1 | #define HAVE_GETADDRINFO_A 1 | #define HAVE_GTK3 1 | #define GDK_DISABLE_DEPRECATION_WARNINGS 1 | #define GLIB_DISABLE_DEPRECATION_WARNINGS 1 | #define USE_GTK 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_GSETTINGS 1 | #define HAVE_LIBSELINUX 1 | #define HAVE_GNUTLS 1 | #define HAVE_INOTIFY 1 | #define USE_FILE_NOTIFY 1 | #define USE_TOOLKIT_SCROLL_BARS 1 | #define HAVE_XIM 1 | #define USE_XIM 1 | #define XRegisterIMInstantiateCallback_arg6 XPointer | #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_OTF_KANNADA_BUG 1 | #define HAVE_M17N_FLT 1 | #define HAVE_HARFBUZZ 1 | #define USE_XCB 1 | #define HAVE_XPM 1 | #define HAVE_JPEG 1 | #define HAVE_LCMS2 1 | #define HAVE_ZLIB 1 | #define HAVE_DLADDR 1 | #define HAVE_MODULES 1 | #define MODULES_SUFFIX ".so" | #define HAVE_LIBGCCJIT 1 | #define HAVE_LIBGCCJIT_H 1 | /* end confdefs.h. */ | | #include | #include | #include | int | main (int argc, char **argv) | { | gcc_jit_context *ctxt; | gcc_jit_result *result; | ctxt = gcc_jit_context_acquire (); | if (!ctxt) | exit (1); | gcc_jit_type *int_type = | gcc_jit_context_get_type (ctxt, GCC_JIT_TYPE_INT); | gcc_jit_function *func = | gcc_jit_context_new_function (ctxt, NULL, | GCC_JIT_FUNCTION_EXPORTED, | int_type, "foo", 0, NULL, 0); | gcc_jit_block *block = gcc_jit_function_new_block (func, "foo"); | gcc_jit_block_end_with_return ( | block, | NULL, | gcc_jit_context_new_rvalue_from_int (ctxt, int_type, 1)); | result = gcc_jit_context_compile (ctxt); | if (!result) | exit (1); | typedef int (*fn_type) (void); | fn_type foo = | (fn_type)gcc_jit_result_get_code (result, "foo"); | if (!foo) | exit (1); | if (foo () != 1) | exit (1); | gcc_jit_context_release (ctxt); | gcc_jit_result_release (result); | return 0; | } configure:18950: error: The installed libgccjit failed to compile and run a test program using the libgccjit library; see config.log for the details of the failure. The test program can be found here: . You can try compiling it yourself to investigate the issues. Please report the issue to your distribution if libgccjit was installed through that. You can find the instructions on how to compile and install libgccjit from source on this site: . > No. :-) Thanks a lot Dieter -- Best wishes H. Dieter Wilhelm Zwingenberg, Germany