From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#30106: Loading file /sources/emacs/lisp/emacs-lisp/ert.elc failed to provide feature `mod-test' Date: Mon, 15 Jan 2018 21:55:33 +0300 Message-ID: <20180115185533.GA6309@protected.rcdrun.com> References: <20180114063602.GA9234@protected.rcdrun.com> <83zi5gzalr.fsf@gnu.org> <20180114174748.GA12223@protected.rcdrun.com> <83shb8z0lz.fsf@gnu.org> <20180114221228.GA17422@protected.rcdrun.com> <833737z2jy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1516042464 9513 195.159.176.226 (15 Jan 2018 18:54:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2018 18:54:24 +0000 (UTC) User-Agent: Mutt/1.9.2 (2017-12-15) Cc: 30106@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 15 19:54:20 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1eb9tc-0001bm-TR for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jan 2018 19:54:13 +0100 Original-Received: from localhost ([::1]:55087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eb9vc-0007hB-QW for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jan 2018 13:56:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eb9vS-0007fV-Lp for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 13:56:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eb9vO-0003iS-PG for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 13:56:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eb9vO-0003i1-Ky for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 13:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eb9vO-0005OI-66 for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 13:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jan 2018 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30106 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30106-submit@debbugs.gnu.org id=B30106.151604255820713 (code B ref 30106); Mon, 15 Jan 2018 18:56:02 +0000 Original-Received: (at 30106) by debbugs.gnu.org; 15 Jan 2018 18:55:58 +0000 Original-Received: from localhost ([127.0.0.1]:57760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eb9vJ-0005O1-Vm for submit@debbugs.gnu.org; Mon, 15 Jan 2018 13:55:58 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:51310 helo=static.rcdrun.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eb9vH-0005Nl-VK for 30106@debbugs.gnu.org; Mon, 15 Jan 2018 13:55:56 -0500 Original-Received: from protected.rcdrun.com (localhost [::1]) (AUTH: PLAIN admin, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by stw1.rcdrun.com with ESMTPSA; Mon, 15 Jan 2018 11:56:20 -0700 id 000000000011B768.000000005A5CF955.00003373 Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local; Mon, 15 Jan 2018 19:55:33 +0100 id 00000000001C03A5.000000005A5CF925.000018CE Content-Disposition: inline In-Reply-To: <833737z2jy.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142184 Archived-At: On Mon, Jan 15, 2018 at 03:14:57PM +0200, Eli Zaretskii wrote: > > Date: Mon, 15 Jan 2018 01:12:28 +0300 > > From: Jean Louis > > Cc: Jean Louis , 30106@debbugs.gnu.org > > > > Output of grep MODULES src/config.h: > > > > #define EMACS_CONFIG_FEATURES "XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES LCMS2" > > #define HAVE_MODULES 1 > > #define MODULES_SUFFIX ".so" > > > > > And does src/Makefile have this line: > > > > > > MODULES_OBJ = dynlib.o emacs-module.o > > > > Output of grep MODULES Makefile: > > > > LIBMODULES = -ldl > > MODULES_OBJ = dynlib.o emacs-module.o > > eval.o floatfns.o fns.o font.o print.o lread.o $(MODULES_OBJ) \ > > $(NOTIFY_LIBS) $(LIB_MATH) $(LIBZ) $(LIBMODULES) $(LIBSYSTEMD_LIBS) \ > > This means your build does have support for modules. > > Returning to the original error: > > ELC src/emacs-module-tests.elc > > In toplevel form: > src/emacs-module-tests.el:32:1:Error: Loading file /sources/emacs/lisp/emacs-lisp/ert.elc failed to provide feature `mod-test' > > line 32 of emacs-module-test.el is this: > > (require 'mod-test mod-test-file) > > So one problem could be that mod-test-file is somehow not calculated > correctly: > > (eval-and-compile > (defconst mod-test-file > (substitute-in-file-name > "$EMACS_TEST_DIRECTORY/data/emacs-module/mod-test") > "File name of the module test file.")) > > So maybe EMACS_TEST_DIRECTORY is incorrect, you your Emacs tree > doesn't have the test/data/emacs-module/mod-test directory, or there's > no mod-test.so file in that directory? I can see that 'make check' fails so: ELC src/emacs-module-tests.elc Emacs module assertion: Module function called from outside the current Lisp thread /bin/sh: line 1: 6214 Aborted EMACSLOADPATH= LC_ALL=C EMACS_TEST_DIRECTORY=/sources/emacs/test "../src/emacs" --module-assertions -batch --no-site-file --no-site-lisp -L ":." -f batch-byte-compile src/emacs-module-tests.el make[3]: *** [Makefile:146: src/emacs-module-tests.elc] Error 134 make[3]: Target 'src/emacs-module-tests.log' not remade because of errors. GEN src/eval-tests.log