From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikos Patikas Newsgroups: gmane.emacs.devel Subject: Building emacs with native compilation fails Date: Tue, 31 Oct 2023 14:18:39 -0400 Message-ID: <877cn23b00.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5016"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.5; emacs 30.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 31 19:56:11 2023 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 1qxtuN-0001Ab-5T for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Oct 2023 19:56:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxttS-0001G3-T2; Tue, 31 Oct 2023 14:55:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxtRD-0008Mv-0Z for emacs-devel@gnu.org; Tue, 31 Oct 2023 14:26:03 -0400 Original-Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxtRB-0008Ra-HV for emacs-devel@gnu.org; Tue, 31 Oct 2023 14:26:02 -0400 Original-Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-777719639adso401912085a.3 for ; Tue, 31 Oct 2023 11:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698776760; x=1699381560; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=/VBcZIGvzsKmg45NnPT5E/Rywk7JwB06rrqI3SG0hhg=; b=J7Bpoj3SlDxNgTy+QNKMBdsBnvSzSRHMF457WhZtzUZpDIzvUJRixwj0fxn/SqyGDX DKHJWhWlFf80GsNs0u5SnE9oTkgH4A1y5YDfBH5TRJylIGX11JAXwAuX8JfALt5iN5QO NxfpcCghuDFFVeWXI1CqVG57scBSI4vE/J9+LXylNsMSWv1BzVJq6wwNRoId++X7Zkpl WwYl9aAc1qszvtBjM4lk15477oJkXkXm4lDsqJgUvk/4o8vgpd0cubHXRRfGB7VsBZCo JaupLcCNGhRRnNZZDh0pkrtzv1B9EQFaZ8PUqoBv3f/qwIbWIQuQ/6j9u4bZsDHE7LHW QLBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698776760; x=1699381560; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/VBcZIGvzsKmg45NnPT5E/Rywk7JwB06rrqI3SG0hhg=; b=CQU06pmVEdztZJtmmx4nkZYWgww2KAM/QfcZkI0WLLqPKdD13HkCT4y6WVPY9CEBt/ hwF53orW0rnvQzbUDY1eIHVbvvR4N4P3DUmaPy93LhMo40DXeGDfXEQ5PKHdMcmnRbjV WXT1+SGxIAXEsdWDF3fzygAaMQpWqR7317mo2TO+ylqqFueeEXjSl1AtTacR7vvGpT7V B8VJsYLwJV3a5eGh4IGOKJJhdMZ4XdMeYt9t1IXf2nbx8JeE6dykp9KmcLj3KPqh/Z9D j9HjUtjS7n0han6fNXllc6DUL3yDiWn9JErT6EsR+3cDVQK2xKLDuL+cyH2uurHXT8qW jlHQ== X-Gm-Message-State: AOJu0YwW8Mh6Z9EHX/evOzMnKfj6qpwcjg4LlF9D/0LOosn+fHUVOk+b 22LWsVoPZA1Gzkcuo8PWsi8SJYmxtV0= X-Google-Smtp-Source: AGHT+IE1bNcEYv0kv28YZttuAm4WU18kGh885vOJW+KG1xOnv4U4twS3NSpwaA4lNVXHit9Kv0gIBg== X-Received: by 2002:a05:620a:170d:b0:774:3742:31e4 with SMTP id az13-20020a05620a170d00b00774374231e4mr15984680qkb.52.1698776759698; Tue, 31 Oct 2023 11:25:59 -0700 (PDT) Original-Received: from smartheater ([132.183.56.68]) by smtp.gmail.com with ESMTPSA id x16-20020ae9e910000000b00767dba7a4d3sm719440qkf.109.2023.10.31.11.25.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 11:25:59 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=nik.patik@gmail.com; helo=mail-qk1-x732.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 31 Oct 2023 14:55:13 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312024 Archived-At: Hi, I am having trouble to build emacs with the native-compilation flag. I am using the following build options on the current master: commit 5f371ca07be891cc41e8e80b8a1bc9ffcc909363 (HEAD -> master, origin/mas= ter, origin/HEAD) Author: Stefan Monnier Date: Tue Oct 31 12:24:51 2023 -0400 * lisp/emacs-lisp/comp.el: Remove redundant requires I build with the following options:=20 ./configure --with-json \ --with-imagemagick\ --with-pgtk\ --with-tree-sitter\ --with-native-compilation During make, I get a huge lisp code truncation followed by this error message: Symbol=E2=80=99s function definition is void: cl-find-class make[3]: *** [Makefile:323: emacs-lisp/loaddefs-gen.elc] Error 255 Symbol=E2=80=99s function definition is void: cl-find-class make[3]: *** [Makefile:323: emacs-lisp/radix-tree.elc] Error 255 make[3]: Leaving directory '/home/main/git/emacs/lisp' make[2]: *** [Makefile:1015: bootstrap-emacs.pdmp] Error 2 make[2]: Leaving directory '/home/main/git/emacs/src' make[1]: *** [Makefile:554: src] Error 2 make[1]: Leaving directory '/home/main/git/emacs' make[1]: Entering directory '/home/main/git/emacs' *** *** "make all" failed with exit status 2. If remove the native comp flag then it builds fine. Best, Nikos