Discussion:
bug#32677: Installation of guile-debbugs fails
Michael Albinus
2018-09-10 08:29:37 UTC
Permalink
Package: guile

I have downloaded the git repository of guile-debbugs. My machine runs
Fedora 28. I've followed the instructions in guile-debbugs.texi.

[***@BRONB4NHFYN1 guile-debbugs]$ ./bootstrap.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
[***@BRONB4NHFYN1 guile-debbugs]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2352: syntax error near unexpected token `2.2'
./configure: line 2352: `GUILE_PKG(2.2)'
[***@BRONB4NHFYN1 guile-debbugs]$ make
make: *** No targets specified and no makefile found. Stop.
Arun Isaac
2018-09-10 10:25:51 UTC
Permalink
Post by Michael Albinus
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2352: syntax error near unexpected token `2.2'
./configure: line 2352: `GUILE_PKG(2.2)'
./configure has failed. I think you are missing guile-2.2. Could you try
again with guile installed?
Michael Albinus
2018-09-10 10:59:33 UTC
Permalink
Post by Arun Isaac
Post by Michael Albinus
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2352: syntax error near unexpected token `2.2'
./configure: line 2352: `GUILE_PKG(2.2)'
./configure has failed. I think you are missing guile-2.2. Could you try
again with guile installed?
--8<---------------cut here---------------start------------->8---
[***@BRONB4NHFYN1 ~]$ which guile
/usr/bin/guile
[***@BRONB4NHFYN1 ~]$ guile --version
guile (GNU Guile) 2.0.14
--8<---------------cut here---------------end--------------->8---

Furthermore, a syntax error seems to tell something different. If it is
really true that guile 2.2 is missing, I would expect a respective error
message.

Best regards, Michael.
Ricardo Wurmus
2018-09-10 21:47:17 UTC
Permalink
Hi Michael,

thanks for taking a look at guile-debbugs!
Post by Michael Albinus
Post by Arun Isaac
Post by Michael Albinus
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2352: syntax error near unexpected token `2.2'
./configure: line 2352: `GUILE_PKG(2.2)'
./configure has failed. I think you are missing guile-2.2. Could you try
again with guile installed?
--8<---------------cut here---------------start------------->8---
/usr/bin/guile
guile (GNU Guile) 2.0.14
--8<---------------cut here---------------end--------------->8---
Furthermore, a syntax error seems to tell something different. If it is
really true that guile 2.2 is missing, I would expect a respective error
message.
Do you have pkg-config installed? GUILE_PKG is a macro that depends on
macros provided by pkg-config.

--
Ricardo
Michael Albinus
2018-09-11 07:40:39 UTC
Permalink
Post by Ricardo Wurmus
Hi Michael,
Hi Ricardo,
Post by Ricardo Wurmus
Post by Michael Albinus
Post by Arun Isaac
./configure has failed. I think you are missing guile-2.2. Could you try
again with guile installed?
--8<---------------cut here---------------start------------->8---
/usr/bin/guile
guile (GNU Guile) 2.0.14
--8<---------------cut here---------------end--------------->8---
Meanwhile, I've changed to another machine running Ubuntu 18.04. It has
installed guile 2.2:

--8<---------------cut here---------------start------------->8---
detlef:~/src/guile-debbugs> which guile
/usr/bin/guile
detlef:~/src/guile-debbugs> /usr/bin/guile --version
guile (GNU Guile) 2.2.3
--8<---------------cut here---------------end--------------->8---
Post by Ricardo Wurmus
Post by Michael Albinus
Furthermore, a syntax error seems to tell something different. If it is
really true that guile 2.2 is missing, I would expect a respective error
message.
Do you have pkg-config installed? GUILE_PKG is a macro that depends on
macros provided by pkg-config.
Yes, it is:

--8<---------------cut here---------------start------------->8---
detlef:~/src/guile-debbugs> which pkg-config
/usr/bin/pkg-config
detlef:~/src/guile-debbugs> /usr/bin/pkg-config --version
0.29.1
--8<---------------cut here---------------end--------------->8---

And still the same error:

--8<---------------cut here---------------start------------->8---
detlef:~/src/guile-debbugs> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2364: syntax error near unexpected token `2.2'
./configure: line 2364: `GUILE_PKG(2.2)'
--8<---------------cut here---------------end--------------->8---
Post by Ricardo Wurmus
Ricardo
Best regards, Michael.
Arun Isaac
2018-10-16 16:34:53 UTC
Permalink
Post by Michael Albinus
--8<---------------cut here---------------start------------->8---
detlef:~/src/guile-debbugs> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2364: syntax error near unexpected token `2.2'
./configure: line 2364: `GUILE_PKG(2.2)'
--8<---------------cut here---------------end--------------->8---
A minor update. I was able to reproduce this problem in a Guix
environment. If I install guile in the environment, this problem does
not manifest. If I don't have guile in the environment, this problem
manifests.

In other words, with

guix environment --ad-hoc guile autoconf automake pkg-config

this problem does not manifest. But, with

guix environment --ad-hoc autoconf automake pkg-config

this problem manifests. I have no idea why this is the case, but perhaps
this could be a lead worth investigating.
Ricardo Wurmus
2018-10-16 19:13:14 UTC
Permalink
Post by Arun Isaac
Post by Michael Albinus
--8<---------------cut here---------------start------------->8---
detlef:~/src/guile-debbugs> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
./configure: line 2364: syntax error near unexpected token `2.2'
./configure: line 2364: `GUILE_PKG(2.2)'
--8<---------------cut here---------------end--------------->8---
A minor update. I was able to reproduce this problem in a Guix
environment. If I install guile in the environment, this problem does
not manifest. If I don't have guile in the environment, this problem
manifests.
In other words, with
guix environment --ad-hoc guile autoconf automake pkg-config
this problem does not manifest. But, with
guix environment --ad-hoc autoconf automake pkg-config
this problem manifests. I have no idea why this is the case, but perhaps
this could be a lead worth investigating.
The macros (such as GUILE_PKK) are provided by the Guile package, so I
think that’s expected.

--
Ricardo
Arun Isaac
2018-10-16 20:01:13 UTC
Permalink
Post by Ricardo Wurmus
The macros (such as GUILE_PKK) are provided by the Guile package, so I
think that’s expected.
I forgot to mention. I already have guile in my system profile (the
default one outside any environment created using `guix
environment'). `which guile' outputs the following:

/run/current-system/profile/bin/guile

So, if guile is already in the system profile, why is the GUILE_PKG
macro not recognized by autoconf?

Loading...