Received: (at 36314) by debbugs.gnu.org; 29 Jun 2019 18:55:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 29 14:55:58 2019 Received: from localhost ([127.0.0.1]:44906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hhIVx-0007lY-FG for submit <at> debbugs.gnu.org; Sat, 29 Jun 2019 14:55:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <carlhansen@HIDDEN>) id 1hhIVt-0007lJ-Jx for 36314 <at> debbugs.gnu.org; Sat, 29 Jun 2019 14:55:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <carlhansen@HIDDEN>) id 1hhIVn-0001Cc-UA for 36314 <at> debbugs.gnu.org; Sat, 29 Jun 2019 14:55:48 -0400 Received: from carlhansen by fencepost.gnu.org with local (Exim 4.82) (envelope-from <carlhansen@HIDDEN>) id 1hhIVn-0004Le-Bl for 36314 <at> debbugs.gnu.org; Sat, 29 Jun 2019 14:55:47 -0400 Date: Sat, 29 Jun 2019 14:55:47 -0400 From: Carl Hansen <carlhansen@HIDDEN> To: 36314 <at> debbugs.gnu.org Subject: [carlhansen@HIDDEN: Re: bug#36314: missing scmconfig.h, guile 2.2.4 and 2.2.5, build error] Message-ID: <20190629185547.GA15746@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36314 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) ----- Forwarded message from Carl Hansen <carlhansen@HIDDEN> ----- Date: Fri, 28 Jun 2019 18:27:23 -0400 From: Carl Hansen <carlhansen@HIDDEN> To: Mark H Weaver <mhw@HIDDEN> Subject: Re: bug#36314: missing scmconfig.h, guile 2.2.4 and 2.2.5, build error User-Agent: Mutt/1.5.21 (2010-09-15) On Thu, Jun 20, 2019 at 06:17:30PM -0400, Mark H Weaver wrote: > Hi Carl, > > Carl Hansen <carlhansen@HIDDEN> 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 <strings.h> (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 Thanks, Mark. Your analysis is right on. It was picking up the wrong strings.h. One comment I have is, is it a good idea to have local dot-h file be same name as well established system one like strings.h ? Anyway, thanks a lot. Carl ----- End forwarded message -----
bug-guile@HIDDEN:bug#36314; Package guile.
Full text available.Ludovic Courtès <ludo@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.
Received: (at 36314) by debbugs.gnu.org; 20 Jun 2019 22:19:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 18:19:57 2019
Received: from localhost ([127.0.0.1]:49389 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1he5PR-0001Vq-GQ
for submit <at> debbugs.gnu.org; Thu, 20 Jun 2019 18:19:57 -0400
Received: from world.peace.net ([64.112.178.59]:50166)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <mhw@HIDDEN>) id 1he5PQ-0001Ve-AP
for 36314 <at> debbugs.gnu.org; Thu, 20 Jun 2019 18:19:56 -0400
Received: from mhw by world.peace.net with esmtpsa
(TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
(envelope-from <mhw@HIDDEN>)
id 1he5PJ-00027W-TF; Thu, 20 Jun 2019 18:19:50 -0400
From: Mark H Weaver <mhw@HIDDEN>
To: Carl Hansen <carlhansen@HIDDEN>
Subject: Re: bug#36314: missing scmconfig.h, guile 2.2.4 and 2.2.5, build error
References: <20190620190825.GA12598@HIDDEN>
Date: Thu, 20 Jun 2019 18:17:30 -0400
In-Reply-To: <20190620190825.GA12598@HIDDEN> (Carl Hansen's message of "Thu,
20 Jun 2019 15:08:26 -0400")
Message-ID: <87h88jyk8a.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36314
Cc: 36314 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Hi Carl,
Carl Hansen <carlhansen@HIDDEN> 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 <strings.h> (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
bug-guile@HIDDEN:bug#36314; Package guile.
Full text available.
Received: (at submit) by debbugs.gnu.org; 20 Jun 2019 19:16:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 15:16:35 2019
Received: from localhost ([127.0.0.1]:49303 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1he2Xz-0004OA-AT
for submit <at> debbugs.gnu.org; Thu, 20 Jun 2019 15:16:35 -0400
Received: from lists.gnu.org ([209.51.188.17]:60540)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <carlhansen@HIDDEN>) id 1he2QA-0002sx-Ex
for submit <at> debbugs.gnu.org; Thu, 20 Jun 2019 15:08:30 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49223)
by lists.gnu.org with esmtp (Exim 4.86_2)
(envelope-from <carlhansen@HIDDEN>) id 1he2Q9-0000fa-0q
for bug-guile@HIDDEN; Thu, 20 Jun 2019 15:08:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00
autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38162)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <carlhansen@HIDDEN>) id 1he2Q7-0006vV-Qr
for bug-guile@HIDDEN; Thu, 20 Jun 2019 15:08:28 -0400
Received: from carlhansen by fencepost.gnu.org with local (Exim 4.82)
(envelope-from <carlhansen@HIDDEN>) id 1he2Q6-0003y9-RD
for bug-guile@HIDDEN; Thu, 20 Jun 2019 15:08:27 -0400
Date: Thu, 20 Jun 2019 15:08:26 -0400
From: Carl Hansen <carlhansen@HIDDEN>
To: bug-guile@HIDDEN
Subject: missing scmconfig.h, guile 2.2.4 and 2.2.5, build error
Message-ID: <20190620190825.GA12598@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 20 Jun 2019 15:16:33 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
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.
Happens with 2.2.5 and 2.2.4
Carl Hansen <carlhansen@HIDDEN>:bug-guile@HIDDEN.
Full text available.bug-guile@HIDDEN:bug#36314; Package guile.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.