From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Li=C4=81u@debbugs.gnu.org, _?= =?UTF-8?Q?Kiong-G=C4=93_?= =?UTF-8?Q?=E5=BB=96=E5=AE=AE=E6=AF=85?= Newsgroups: gmane.emacs.bugs Subject: bug#45303: 28.0.50; [feature/native-comp] comp.c compilation error on Windows 10 Date: Thu, 17 Dec 2020 14:20:47 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20247"; mail-complaints-to="usenet@ciao.gmane.io" To: 45303@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 17 21:22:12 2020 Return-path: Envelope-to: geb-bug-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 1kpzmu-00058x-Kl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 21:22:12 +0100 Original-Received: from localhost ([::1]:38886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpzmt-0007JQ-FG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 15:22:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpzmk-0007JE-Ex for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 15:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpzmk-0005V1-7P for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 15:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpzmk-00052P-29 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 15:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Li=C4=81u@debbugs.gnu.org, _?= =?UTF-8?Q?Kiong-G=C4=93_?= =?UTF-8?Q?=E5=BB=96=E5=AE=AE=E6=AF=85?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Dec 2020 20:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45303 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160823647019265 (code B ref -1); Thu, 17 Dec 2020 20:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Dec 2020 20:21:10 +0000 Original-Received: from localhost ([127.0.0.1]:37068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpzlt-00050c-CE for submit@debbugs.gnu.org; Thu, 17 Dec 2020 15:21:09 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:32994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpzlq-00050P-D4 for submit@debbugs.gnu.org; Thu, 17 Dec 2020 15:21:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpzlq-0007AZ-81 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 15:21:06 -0500 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:38566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpzln-0005OL-ML for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 15:21:06 -0500 Original-Received: by mail-ej1-x62f.google.com with SMTP id 6so25122733ejz.5 for ; Thu, 17 Dec 2020 12:21:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=m3GF1MicQEYxYcVgQ4Bb0jP3+U37n4Y5DA1a63loXYQ=; b=lYUyIKgnvAQCb7317Lb7mlLg/XnBfF0V3d2eUvctUI1MNNeMNR8YbZUWNquMHVaAoh xw3tiE8UxzfoxZbGqBNPNp0WZP46dcdmpYZrnQfFU/G5DPGc9fL7dHevxTEcPmlpa84Q QTtrEiXxVFT3UgdxsTa8yAKEWVbzF7nAgYpWC5MdDX8sm9d9+cVvcQioX3aZ48tEfxN5 LpC8g2bRr6J7czLcYrfW4zqjOyNNjXsly9h0O1+xiy6MctMjxE7g4j/phZbvf1icvWaZ 45R2Yobcg0sUpWOLQxIE9Dme5Vj2s9avXMMScopvtCr8vK89hX2CeShfpoxkmnO6WNGb gLlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=m3GF1MicQEYxYcVgQ4Bb0jP3+U37n4Y5DA1a63loXYQ=; b=MBHp3MsXzhI3WLOJf7+FOppOxYZAjLfnb0dp67tIZQNJTeR3Bz2p3PwjLQ+WBO9hXR 8Ut96KF5O/eZuU6xYtOuhZIUdpAbPAUY8ogLUw49NWreMcdCAKYd3NDXtxnwBe+FBz8Q KIUeqotr83yvxed3z1grjLwj6wYVsB0/fiIdOSIL3FlBWWB4eMSwXV7DSB8XgVYxrzAG kRsCEOiV+76wFX0P4IWMnuUpmBIGgCoflR5nowht8BYTPWedicZLhMj47+ILzHZfvGvM yt8hGxlUp26TtalAFxbbVIsdco95MGpPk0YYISc4RUeX62ucM3qRYBYFQH51X/5TcOBB NdnQ== X-Gm-Message-State: AOAM530AFXvamsUPk0IDxb4sdCK1p1S42fQuYLN8QtnJt8cqU04LMYT7 PWWRqrlO3guA/7zmzcGk3QeiMadUgTAV7b5VFGlodedTuuk= X-Google-Smtp-Source: ABdhPJzrEQfWtAReqpQzlMJKroW5rzHNbq8vcQMUTZhspnMpy5oU5Ipn1OgjfjB/cKAOi/IXWI6nnEexUet6GvuUtFw= X-Received: by 2002:a17:906:941a:: with SMTP id q26mr737651ejx.227.1608236460723; Thu, 17 Dec 2020 12:21:00 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=gongyi.liao@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196277 Archived-At: I tried to build feature/native-comp branch on Windows 10 using the most up-to-date Msys2 system's mingw-w64-x86_64-gcc and mingw-w64-x86_64-libgccjit as 2020-12-16. The build is configured with flag 'configure --prefix=/home/VWinUser0/Downloads/emacs/native-comp --with-nativecomp' Configured for 'x86_64-w64-mingw32'. Where should the build process find the source code? ../src What compiler should emacs be built with? gcc -g3 -O2 -gdwarf-2 Should Emacs use the GNU version of malloc? no (The GNU allocators don't work with this system configuration.) Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? yes What window system should Emacs use? w32 What toolkit should Emacs use? none Where do we find X Windows header files? NONE Where do we find X Windows libraries? NONE Does Emacs use -lXaw3d? no Does Emacs use -lXpm? yes Does Emacs use -ljpeg? yes Does Emacs use -ltiff? yes Does Emacs use a gif library? yes Does Emacs use a png library? yes Does Emacs use -lrsvg-2? yes Does Emacs use cairo? no Does Emacs use -llcms2? yes Does Emacs use imagemagick? no Does Emacs use native APIs for images? yes (w32) Does Emacs support sound? yes Does Emacs use -lgpm? no Does Emacs use -ldbus? no Does Emacs use -lgconf? no Does Emacs use GSettings? no Does Emacs use a file notification library? yes (w32) Does Emacs use access control lists? yes Does Emacs use -lselinux? no Does Emacs use -lgnutls? yes Does Emacs use -lxml2? yes Does Emacs use -lfreetype? no Does Emacs use HarfBuzz? yes Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? no Does Emacs use -lsystemd? no Does Emacs use -ljansson? yes Does Emacs use the GMP library? yes Does Emacs directly use zlib? yes Does Emacs have dynamic modules support? yes Does Emacs use toolkit scroll bars? yes Does Emacs support Xwidgets? no Does Emacs have threading support in lisp? yes Does Emacs support the portable dumper? yes Does Emacs support legacy unexec dumping? no Which dumping strategy does Emacs use? pdumper Does Emacs have native lisp compiler? yes configure: creating ./config.status config.status: creating nt/emacs.rc config.status: creating nt/emacsclient.rc config.status: creating src/emacs-module.h config.status: creating Makefile config.status: creating lib/gnulib.mk config.status: creating ../src/doc/man/emacs.1 config.status: creating lib/Makefile config.status: creating lib-src/Makefile config.status: creating oldXMenu/Makefile config.status: creating doc/emacs/Makefile config.status: creating doc/misc/Makefile config.status: creating doc/lispintro/Makefile config.status: creating doc/lispref/Makefile config.status: creating src/Makefile The compilation kicked-off using `make`, and it stopped at comp.c with the following error message: CC comp.o ../../src/src/comp.c: In function 'Fcomp_el_to_eln_filename': ../../src/src/comp.c:4110:36: error: expected ')' before 'PATH_REL_LOADSEARCH' 4110 | Fregexp_quote (build_string ("/" PATH_REL_LOADSEARCH "/"))); | ^~~~~~~~~~~~~~~~~~~~ | ) ../../src/src/comp.c: In function 'Fcomp__compile_ctxt_to_file': ../../src/src/comp.c:4458:12: warning: unused variable 'oldset' [-Wunused-variable] 4458 | sigset_t oldset; | ^~~~~~ ../../src/src/comp.c: In function 'eln_load_path_final_clean_up': ../../src/src/comp.c:4621:29: warning: passing argument 1 of 'internal_condition_case_4' from incompatible pointer type [-Wincompatible-pointer-types] 4621 | internal_condition_case_4 (Fdirectory_files, | ^~~~~~~~~~~~~~~~ | | | struct Lisp_X * (*)(struct Lisp_X *, struct Lisp_X *, struct Lisp_X *, struct Lisp_X *, struct Lisp_X *) In file included from ../../src/src/comp.c:23: ../../src/src/lisp.h:4160:47: note: expected 'struct Lisp_X * (*)(struct Lisp_X *, struct Lisp_X *, struct Lisp_X *, struct Lisp_X *)' but argument is of type 'struct Lisp_X * (*)(struct Lisp_X *, struct Lisp_X *, struct Lisp_X *, struct Lisp_X *, struct Lisp_X *)' 4160 | extern Lisp_Object internal_condition_case_4 (Lisp_Object (*) (Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object), Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object (*) (Lisp_Object)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:410: comp.o] Error 1 make[1]: Leaving directory '/home/VWinUser0/Downloads/emacs/native-comp/build/src' make: *** [Makefile:433: src] Error 2 src/epaths.h has the following content: $ cat src/epaths.h /* Hey Emacs, this is -*- C -*- code! */ /* epaths.in file for MS-Windows build that uses the configure script. Since Emacs on Windows must be relocatable to any directory, it cannot have here hard-coded directories determined at configure time. Therefore, each directory must begin with %emacs_dir%, which is resolved at startup to the root of the Emacs installation tree (see w32.c:init_environment). This file is edited at configure time to replace @VER@ by the Emacs version being built (e.g., 25.9.77), @CFG@ by the canonical name of the host system (e.g., i686-pc-mingw32), and @SRC@ by the root of the Emacs source tree used to build Emacs. */ /* Copyright (C) 1993, 1995, 1997, 1999, 2001-2020 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ /* Together with PATH_SITELOADSEARCH, this gives the default value of load-path, which is the search path for the Lisp function "load". Configure (using "make epaths-force") sets this to ${standardlisppath}, which typically has a value like: /emacs/VERSION/lisp where datadir is eg /usr/local/share. */ #define PATH_LOADSEARCH "%emacs_dir%/share/emacs/28.0.50/lisp" /* Like PATH_LOADSEARCH, but contains the non-standard pieces. These are the site-lisp directories. Configure sets this to ${locallisppath}, which typically defaults to something like: /emacs/VERSION/site-lisp:/emacs/site-lisp but can be overridden by the --enable-locallisppath argument. This is combined with PATH_LOADSEARCH to make the default load-path. If the --no-site-lisp option is used, this piece is excluded. */ #define PATH_SITELOADSEARCH "%emacs_dir%/share/emacs/28.0.50/site-lisp;%emacs_dir%/share/emacs/site-lisp" /* Like PATH_LOADSEARCH, but used only during the build process when Emacs is dumping. Configure (using "make epaths-force-w32") sets this to $buildlisppath, which normally has the value: /lisp. */ #define PATH_DUMPLOADSEARCH "C:/msys64/home/VWinUser0/Downloads/emacs/native-comp/src/lisp" /* The extra search path for programs to invoke. This is appended to whatever the PATH environment variable says to set the Lisp variable exec-path and the first file name in it sets the Lisp variable exec-directory. exec-directory is used for finding executables and other architecture-dependent files. */ #define PATH_EXEC "%emacs_dir%/libexec/emacs/28.0.50/x86_64-w64-mingw32" /* Where Emacs should look for its architecture-independent data files, like the NEWS file. The lisp variable data-directory is set to this value. */ #define PATH_DATA "%emacs_dir%/share/emacs/28.0.50/etc" /* Where Emacs should look for X bitmap files. The lisp variable x-bitmap-file-path is set based on this value. */ #define PATH_BITMAPS "" /* Where Emacs should look for its docstring file. The lisp variable doc-directory is set to this value. */ #define PATH_DOC "%emacs_dir%/share/emacs/28.0.50/etc" /* Where the configuration process believes the info tree lives. The lisp variable configure-info-directory gets its value from this macro, and is then used to set the Info-default-directory-list. */ #define PATH_INFO "%emacs_dir%/share/info" /* Where Emacs should store game score files. */ #define PATH_GAME "%emacs_dir%/var/games/emacs" /* Where Emacs should look for the application default file. */ #define PATH_X_DEFAULTS ""