From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: org-plus-contrib fails to compile Date: Wed, 02 May 2018 04:00:08 +1000 Message-ID: <877eonxnmf.fsf@gmail.com> References: <87lgd3vjag.fsf@nowhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDZZX-0006Ie-Br for emacs-orgmode@gnu.org; Tue, 01 May 2018 14:00:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDZZW-0006sb-I7 for emacs-orgmode@gnu.org; Tue, 01 May 2018 14:00:15 -0400 Received: from mail-pg0-x233.google.com ([2607:f8b0:400e:c05::233]:42087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDZZW-0006qx-7C for emacs-orgmode@gnu.org; Tue, 01 May 2018 14:00:14 -0400 Received: by mail-pg0-x233.google.com with SMTP id p9-v6so5867173pgc.9 for ; Tue, 01 May 2018 11:00:13 -0700 (PDT) In-reply-to: <87lgd3vjag.fsf@nowhere.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: glyn@millingtons.org Cc: Emacs-orgmode Glyn Millington writes: > Good morning list! > > Emacs 25.3.1 on Linux > > For many upgrades now (over the last year or so) when I have tried > to upgrade org-plus-contrib with the package management system > pointed at the Org repository, the package is installed but > compilation fails with a massive (23.6MB!) backtrace which begins > like this: > > > Debugger entered--Lisp error: (void-variable This) > eval-buffer(# nil > "/home/glyn/.emacs.d/elpa/org-plus-contrib-20180430/org" nil t) > ; Reading at buffer position 5 > load-with-code-conversion("/home/glyn/.emacs.d/elpa/org-plus-contrib-20180430/org" > "/home/glyn/.emacs.d/elpa/org-plus-contrib-20180430/org" nil t) > > None of the lisp files in the package are compiled. > > Can anyone point me to likely sources of the problem (my own > cluelessness goes without saying! ) ? > I found this will most often occur because you have org loaded before you try to do the upgrade. Basically, org gets confused because of having an already loaded version while trying to install a new version. I was seeing this quite often. Once I re-arranged by init file to ensure that I can do a package upgrade before org is loaded, all works fairly reliably. An easy way to 'fix' the problem is to just delete the org-plus-contrib directory from your ELPA directory, then restart emacs. Your emacs will probably downlload and install the package during startup. Just make sure your org setup comes after your package setup. -- Tim Cross