From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#36314: missing scmconfig.h, guile 2.2.4 and 2.2.5, build error Date: Thu, 20 Jun 2019 18:17:30 -0400 Message-ID: <87h88jyk8a.fsf@netris.org> References: <20190620190825.GA12598@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207729"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 36314@debbugs.gnu.org To: Carl Hansen Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jun 21 00:20:26 2019 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1he5Pt-000rsE-TZ for guile-bugs@m.gmane.org; Fri, 21 Jun 2019 00:20:26 +0200 Original-Received: from localhost ([::1]:53382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1he5Ps-00045Q-PI for guile-bugs@m.gmane.org; Thu, 20 Jun 2019 18:20:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37916) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1he5Pk-00041h-BD for bug-guile@gnu.org; Thu, 20 Jun 2019 18:20:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1he5Pg-0001kK-Gr for bug-guile@gnu.org; Thu, 20 Jun 2019 18:20:16 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1he5PW-0001f8-LC for bug-guile@gnu.org; Thu, 20 Jun 2019 18:20:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1he5PW-0001WD-FB for bug-guile@gnu.org; Thu, 20 Jun 2019 18:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 20 Jun 2019 22:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36314 X-GNU-PR-Package: guile Original-Received: via spool by 36314-submit@debbugs.gnu.org id=B36314.15610691985823 (code B ref 36314); Thu, 20 Jun 2019 22:20:02 +0000 Original-Received: (at 36314) by debbugs.gnu.org; 20 Jun 2019 22:19:58 +0000 Original-Received: from localhost ([127.0.0.1]:49389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1he5PR-0001Vq-GQ for submit@debbugs.gnu.org; Thu, 20 Jun 2019 18:19:57 -0400 Original-Received: from world.peace.net ([64.112.178.59]:50166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1he5PQ-0001Ve-AP for 36314@debbugs.gnu.org; Thu, 20 Jun 2019 18:19:56 -0400 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1he5PJ-00027W-TF; Thu, 20 Jun 2019 18:19:50 -0400 In-Reply-To: <20190620190825.GA12598@gnu.org> (Carl Hansen's message of "Thu, 20 Jun 2019 15:08:26 -0400") 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: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9352 Archived-At: Hi Carl, Carl Hansen writes: > make[1]: Entering directory '/td2/carlstuff/build/gsrc/pkg/gnu/guile/work/guile-2.2.5' > make -C libguile scmconfig.h > make[2]: Entering directory '/td2/carlstuff/build/gsrc/pkg/gnu/guile/work/guile-2.2.5/libguile' > \ > if [ "no" = "yes" ]; then \ > gcc -std=gnu11 -DHAVE_CONFIG_H -I.. \ > -c -o gen-scmconfig.o gen-scmconfig.c; \ > else \ > gcc -std=gnu11 -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib -I/opt/gsrc/lib/libffi-3.2.1/include -I/td2/carlstuff/build/gsrc/pkg/gnu/guile/work/guile-2.2.5 -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -fwrapv -fvisibility=hidden -g -O2 -c -o gen-scmconfig.o gen-scmconfig.c; \ > fi > In file included from ./strings.h:27, > from /usr/include/string.h:431, > from ../lib/string.h:41, > from gen-scmconfig.c:142: > ../libguile/__scm.h:54:10: fatal error: libguile/scmconfig.h: No such file or directory > 54 | #include "libguile/scmconfig.h" > | ^~~~~~~~~~~~~~~~~~~~~~ > compilation terminated. > make[2]: *** [Makefile:4132: gen-scmconfig.o] Error 1 > > > > In other words, it is trying to create libguile/scmconfig.h, but it includes > libguile/__scm.h which includes libguile/scmconfig.h, therefore.... build error. The problem seems to be that that the 'libguile' directory is somehow being added to the C include search path, although it should not be. The error message above implies that line 431 of /usr/include/string.h includes (it does on my system), which is obviously intended to pick up a system header. Instead, libguile/strings.h is being picked up. I don't see -I. or equivalent on the command line above. Are you adding "." to CPATH, C_INCLUDE_PATH, or some similar environment variable? Note that an empty path component is typically interpreted as ".", so two adjacent colons, or a colon at the beginning or end of the path variable, could also explain this. > Happens with 2.2.5 and 2.2.4 Note that Guile 2.2.4 was released almost a year ago, and you're the first person to report this problem, so I suspect it's something unusual in your build environment. If the ideas above don't lead to a solution, could you send us more details, e.g. the complete set of environment variables and arguments passed to ./configure? Thanks, Mark