From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?TGnEgXUsIEtpb25nLUfEkyDlu5blrq7mr4U=?= Newsgroups: gmane.emacs.devel Subject: Native-comp branch compilation error on Windows Date: Wed, 16 Dec 2020 19:44:05 -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="38130"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 17 02:46:07 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kpiMp-0009qp-NX for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Dec 2020 02:46:07 +0100 Original-Received: from localhost ([::1]:43764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpiMo-0007dp-MB for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Dec 2020 20:46:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpiL7-000792-6T for emacs-devel@gnu.org; Wed, 16 Dec 2020 20:44:21 -0500 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:42416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpiL5-0005IJ-Lk for emacs-devel@gnu.org; Wed, 16 Dec 2020 20:44:20 -0500 Original-Received: by mail-ed1-x532.google.com with SMTP id g24so1358746edw.9 for ; Wed, 16 Dec 2020 17:44:18 -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=xIfrY+7xhKCidsGfAUFXtVwgwIZSm+sYrU1qCcNyb1g=; b=W8Bj1bAmRbt6WtIop0p5t8y+O0WcvLLzWlzTTc4tpP+8RnEpQDIidFc/niXJdejGOY QZnYY68VXyPFCkgOyLQ3c1rLHXTqRECRih/81qQzKNuWIcbxd83YzEltI1ZcPvcvvNUb /mRBnJFnP9y7+XSRlo7fIK9sKwpYVnO64mfEE/fpyshv76vx7JWsfQ4xVxYb7aB1VRE+ LgFKyUX99busqgfFDj8VD4+ylKcXNBWdpjemsRi7akwpqTfASw5l7t56RHDg02ucb2AO ri14ugMG53ivUG/APmK2lCnxtw84CDIOT6JeWnGDjhOPJjYRszD/uMDbYN8wqh9ru7TL YU8Q== 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=xIfrY+7xhKCidsGfAUFXtVwgwIZSm+sYrU1qCcNyb1g=; b=diDeTl76i++C7XTx3uY91Io4pAkrXxIyXmH1XhHUd4TXSqOTuDpLwNSFBZxGlhcyLu 4Zkckc+BPOVwDANNLwY4xz1DxyhaWiH38VMTpnSwItfBdXxWMnA8n+KZyPBDyFZWdlko Ypumfgv5P1fwy1584L4vYb46pE97HODGufYShn4Vpd/gxwMiLI7Tal34OWoe9L73b+Mc 4vAZYQur2hKkmIhyJJCUXDkMwjdw5cXnd/R6Sgu4JkH42quU+gt8ZTwjZ1CkW2LgM6Cx 3FIdBWCJrQY6Ht3FeYzLKOZztOxuqQJV21Kc+7uh1fQFyUhEsezvBgHfFHaEnHKUD+LN lFcg== X-Gm-Message-State: AOAM533l6GkNvlaRu+1qZ9mHbilpoBuZLgWbxqelyg/fKr81sbqfWPtP CjuQkL3Kwq59eAVLIkh525fyYgWSzrTMiyu2xftWcudaa2U= X-Google-Smtp-Source: ABdhPJw7HWqMPjT8pYMI4bbTDo7QZSIrh88uHIviWh4vsSJecf5C0h4xZmo5SfEJbL81PbUsiGYPxISIc6EuavRmEpY= X-Received: by 2002:a50:e8c4:: with SMTP id l4mr36056104edn.337.1608169456899; Wed, 16 Dec 2020 17:44:16 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=gongyi.liao@gmail.com; helo=mail-ed1-x532.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261077 Archived-At: Hi, I used last updated Msys2 as 2020-12-16 to install mingw64-x86_64 version (10.2) of gcc and libgccjit to compile native-comp branch on Windows 10. I configured the build with flag --with-nativecomp, while compile it, I got the following error message: comp.c: In function 'Fcomp_el_to_eln_filename': comp.c:4110:36: error: expected ')' before 'PATH_REL_LOADSEARCH' 4110 | Fregexp_quote (build_string ("/" PATH_REL_LOADSEARCH "/"))); | ^~~~~~~~~~~~~~~~~~~~ | ) comp.c: In function 'Fcomp__compile_ctxt_to_file': comp.c:4458:12: warning: unused variable 'oldset' [-Wunused-variable] 4458 | sigset_t oldset; | ^~~~~~ comp.c: In function 'eln_load_path_final_clean_up': 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 comp.c:23: 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]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/VWinUser0/Downloads/emacs/native-comp/src' make: *** [Makefile:433: src] Error 2 However, with exactly the same emacs source code and configuration, the compilation on Linux (Debian testing, gcc/gccjit 10.2) went well without any issue. Should I pass some special flags in configure or compilers to build the native-comp branch on Windows? Thanks, Kiong-Ge.