From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: pure-fns in byte-opt.el Date: Wed, 26 Jul 2017 22:36:08 -0400 Message-ID: <20170727023608.GA1895@holos.localdomain> References: <20170725020650.GA12601@holos.localdomain> <20170726010000.GA14292@holos.localdomain> <83o9s75kus.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1501123020 29518 195.159.176.226 (27 Jul 2017 02:37:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2017 02:37:00 +0000 (UTC) User-Agent: Mutt/1.8.3 (2017-05-23) Cc: schwab@suse.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 27 04:36:54 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daYfR-0007Ah-Ax for ged-emacs-devel@m.gmane.org; Thu, 27 Jul 2017 04:36:49 +0200 Original-Received: from localhost ([::1]:40825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daYfX-0002Hw-4h for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 22:36:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daYeu-0001x8-QX for emacs-devel@gnu.org; Wed, 26 Jul 2017 22:36:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daYeq-0003GJ-RH for emacs-devel@gnu.org; Wed, 26 Jul 2017 22:36:16 -0400 Original-Received: from mail-qt0-x234.google.com ([2607:f8b0:400d:c0d::234]:37747) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1daYeq-0003EB-LM for emacs-devel@gnu.org; Wed, 26 Jul 2017 22:36:12 -0400 Original-Received: by mail-qt0-x234.google.com with SMTP id 16so16529336qtz.4 for ; Wed, 26 Jul 2017 19:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=0GtX/boM5q/0dig8WT5CHEwqfXhgBlD6oBbnGRw5dCM=; b=w981rdnlhhSFWNkUm2ZV4vTt4L4LMZWyZsz2S/759S5zsZUBbZK6gBbLqCk6aUtbLT Q+3dhf0uQ0HHrddOuAxBjdL1Z0Dc90fCZwQaM/gPtAjnBcH4OzmtODPKA8cTyddv19A9 3jgCXeUiFygYmibZplCbUtItjk9814JAmN6vsLR7LOQIGI7aWDQbNCxzHi9NGmayzbdj Q0ZvUAawZWh5CkaxYDwyYtsl8F2cMNhdKvEfq1GaoD/GQs3ztlAEw639JYIxY5q/PLpZ qNyndsMwDDQzJNi/XbMWw0yz2XQcPPJGRIjS+nHNQTNkF5HnX2lI+3zIzJjyuPYCTkwh ueqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=0GtX/boM5q/0dig8WT5CHEwqfXhgBlD6oBbnGRw5dCM=; b=gn5nvtamRgX3lbBFrdFHSewT2saFsIoBwtFcdv3puZ6IbMVlRZbJr24pAr2yRJgMJ2 B++VvkLx931oI+WtUsn9lWBS9XkgbNlbeWVTBDHx/FryMl9RdjM7rNstQSWC/6fR0oSY bTii/48TRSL9J5dKdupigLb9S8ly61SqNYSE3dNJdFkGRsNzKgNpxG28xDJzdKvU+qiz tbtuRWyMNrYcD7X7dJ8Ox7IQ8WpdwRm2aA1Nq14R/YcLVbftgP7F5uMvSA1okNHS5+Xl hzK2gi4YHkk6+1/dJhVQtPOGtsucQed2f9IgubXo7ZpQvtHEUVfpQMdhgx0pePAqpCN8 F5ng== X-Gm-Message-State: AIVw111naPppDX3+hX1YbtARAOJs9l4FrBKlN2cVR7wgag7mBXmHq+lx Kh4DxcsfJBiVvtv1 X-Received: by 10.200.42.107 with SMTP id l40mr4253637qtl.260.1501122969923; Wed, 26 Jul 2017 19:36:09 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-64-125-158.bltmmd.fios.verizon.net. [173.64.125.158]) by smtp.gmail.com with ESMTPSA id v140sm12755007qka.74.2017.07.26.19.36.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Jul 2017 19:36:09 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 5ECAA6BB97; Wed, 26 Jul 2017 22:36:08 -0400 (EDT) Content-Disposition: inline In-Reply-To: <83o9s75kus.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217064 Archived-At: On 26/07/17 at 05:33pm, Eli Zaretskii wrote: >> Date: Tue, 25 Jul 2017 21:00:00 -0400 >> From: Mark Oteiza >> Cc: emacs-devel@gnu.org >> >> The "listp" in the error makes me wonder if the byte compiler is >> perhaps turning a quoted form into a string. > >If you could run the offending command under a debugger and show both >C-level and Lisp-level backtrace from the error, maybe we could become >wiser. (Let me know if you need help in staging the experiment and/or >collecting the data after you catch the error.) Here is the point during the build the error happens: "../../src/bootstrap-emacs" -batch --no-site-file --no-site-lisp -L . -l unidata-gen \ -f unidata-gen-file ../../lisp/international/uni-decomposition.el . Loading macroexp.elc... Wrong type argument: listp, "щай" I set a breakpoint at wrong_type_argument Thread 1 "bootstrap-emacs" hit Breakpoint 4, wrong_type_argument ( predicate=XIL(0x8550), value=XIL(0x3dee414)) at data.c:154 154 xsignal2 (Qwrong_type_argument, predicate, value); (gdb) xbacktrace "unidata-gen-table-word-list" (0xffffb690) "unidata-gen-table-decomposition" (0xffffbb20) "unidata-gen-file" (0xffffc108) "funcall" (0xffffc100) "if" (0xffffc2c0) "cond" (0xffffc430) "let*" (0xffffc5d0) "while" (0xffffc760) "let*" (0xffffc900) "progn" (0xffffca30) "if" (0xffffcb70) "let" (0xffffcd50) "let" (0xffffcf30) "command-line-1" (0xffffd0b0) "command-line" (0xffffd300) "unwind-protect" (0xffffd4f0) "let" (0xffffd6d0) "if" (0xffffd840) "normal-top-level" (0xffffd9c0) I would need help with digging deeper. Also, I made an error in my OP--it is make-vector being marked pure that's a problem: diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 962a7ae5cd..297e43884f 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -1281,7 +1281,8 @@ byte-optimize-set ;; errors to compile time. (let ((pure-fns - '(concat symbol-name regexp-opt regexp-quote string-to-syntax))) + '(concat symbol-name regexp-opt regexp-quote string-to-syntax + make-vector))) (while pure-fns (put (car pure-fns) 'pure t) (setq pure-fns (cdr pure-fns)))