GNU bug report logs - #36170
configure fails on FreeBSD

Previous Next

Package: guile;

Reported by: Roger Mason <rmason <at> mun.ca>

Date: Tue, 11 Jun 2019 14:14:04 UTC

Severity: normal

Tags: notabug

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36170 in the body.
You can then email your comments to 36170 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#36170; Package guile. (Tue, 11 Jun 2019 14:14:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Roger Mason <rmason <at> mun.ca>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Tue, 11 Jun 2019 14:14:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roger Mason <rmason <at> mun.ca>
To: bug-guile <at> gnu.org
Subject: configure fails on FreeBSD
Date: Tue, 11 Jun 2019 09:13:31 -0230
Hello,

I cloned the git repo yesterday (2019-06-10, most recent commit
8d469660525d74734f3184cb9ed01b6f2dcd0445).  I ran autogen.sh in the
source directory.  I had to comment out the call to m4 --version, which
failed (I have m4-1.4.18).  I created a build directory.  When I
configure like this:

../guile/configure --with-bdw-gc=bdw-gc-threaded

it works:

---snip---
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands

When I configure like this:

../guile/configure --prefix="/home/rmason/32-bit-install" --with-bdw-gc=bdw-gc-threaded

it fails to find various libraries & headers unless I list them
explicitly in the invocation of configure like this:

../guile/configure --prefix=/home/rmason/32-bit-install \
		   --with-bdw-gc=bdw-gc-threaded \
		   --with-libltdl-prefix=/usr/local \
		   --with-libgmp-prefix=/usr/local \
		   --with-libunistring-prefix=/usr/local \
		   --with-libiconv-prefix=/usr/local

Is that how it is supposed to work, or is there a bug in the build
system?

I note also that configure claims my readline library is too old (<
2.1), but I have:

pkg info -x readline
readline-7.0.5

Cheers,
Roger

FreeBSD 11.2-RELEASE-p10 (i386)




Information forwarded to bug-guile <at> gnu.org:
bug#36170; Package guile. (Tue, 11 Jun 2019 22:25:01 GMT) Full text and rfc822 format available.

Message #8 received at 36170 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Roger Mason <rmason <at> mun.ca>
Cc: 36170 <at> debbugs.gnu.org
Subject: Re: bug#36170: configure fails on FreeBSD
Date: Tue, 11 Jun 2019 18:22:03 -0400
Hi Roger,

Roger Mason <rmason <at> mun.ca> writes:

> I cloned the git repo yesterday (2019-06-10, most recent commit
> 8d469660525d74734f3184cb9ed01b6f2dcd0445).  I ran autogen.sh in the
> source directory.  I had to comment out the call to m4 --version, which
> failed (I have m4-1.4.18).  I created a build directory.  When I
> configure like this:
>
> ../guile/configure --with-bdw-gc=bdw-gc-threaded
>
> it works:
>
> ---snip---
> config.status: executing depfiles commands
> config.status: executing libtool commands
> config.status: executing po-directories commands
>
> When I configure like this:
>
> ../guile/configure --prefix="/home/rmason/32-bit-install" --with-bdw-gc=bdw-gc-threaded
>
> it fails to find various libraries & headers unless I list them
> explicitly in the invocation of configure like this:
>
> ../guile/configure --prefix=/home/rmason/32-bit-install \
> 		   --with-bdw-gc=bdw-gc-threaded \
> 		   --with-libltdl-prefix=/usr/local \
> 		   --with-libgmp-prefix=/usr/local \
> 		   --with-libunistring-prefix=/usr/local \
> 		   --with-libiconv-prefix=/usr/local
>
> Is that how it is supposed to work, or is there a bug in the build
> system?

I guess what's happening here is that ./configure automatically looks
for libraries in the prefix directory as specified by --prefix=DIR.
I don't have time right now to verify that guess.

> I note also that configure claims my readline library is too old (<
> 2.1), but I have:
>
> pkg info -x readline
> readline-7.0.5

Something went wrong here.  The relevant check involves compiling a
small test program that references 'rl_getc_function', which was
apparently added in readline 2.1.  Something must have gone wrong
compiling that test program.

After running ./configure, there should be a file 'config.log' which
includes the failed test program, the compile command used to compile
it, and the compiler error messages.  Can you search for 'readline' in
that file and see what went wrong?

      Thanks,
        Mark




Information forwarded to bug-guile <at> gnu.org:
bug#36170; Package guile. (Tue, 11 Jun 2019 22:44:02 GMT) Full text and rfc822 format available.

Message #11 received at 36170 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Roger Mason <rmason <at> mun.ca>
Cc: 36170 <at> debbugs.gnu.org
Subject: Re: bug#36170: configure fails on FreeBSD
Date: Tue, 11 Jun 2019 18:41:09 -0400
Roger Mason <rmason <at> mun.ca> writes:

> I cloned the git repo yesterday (2019-06-10, most recent commit
> 8d469660525d74734f3184cb9ed01b6f2dcd0445).  I ran autogen.sh in the
> source directory.  I had to comment out the call to m4 --version, which
> failed (I have m4-1.4.18).

That's the latest stable m4 release, and the same version that I have.
It's surprising that "m4 --version" failed.  It makes me wonder if
autogen.sh is using Bash-specific syntax.

Does "bash -x autogen.sh" work, when using the autogen.sh that we
provide?

      Mark




Information forwarded to bug-guile <at> gnu.org:
bug#36170; Package guile. (Wed, 12 Jun 2019 15:50:02 GMT) Full text and rfc822 format available.

Message #14 received at 36170 <at> debbugs.gnu.org (full text, mbox):

From: Roger Mason <rmason <at> mun.ca>
To: Mark H Weaver <mhw <at> netris.org>
Cc: Roger Mason <rmason <at> mun.ca>, 36170 <at> debbugs.gnu.org
Subject: Re: bug#36170: configure fails on FreeBSD
Date: Wed, 12 Jun 2019 12:22:14 -0230
Hello Mark,

Mark H Weaver <mhw <at> netris.org> writes:

> That's the latest stable m4 release, and the same version that I have.
> It's surprising that "m4 --version" failed.  It makes me wonder if
> autogen.sh is using Bash-specific syntax.

'm4 --version' fails on the command-line too:
m4: illegal option -- -

> Does "bash -x autogen.sh" work, when using the autogen.sh that we
> provide?

No, it still fails on 'm4 --version'.

Cheers,
Roger





Information forwarded to bug-guile <at> gnu.org:
bug#36170; Package guile. (Wed, 12 Jun 2019 15:50:03 GMT) Full text and rfc822 format available.

Message #17 received at 36170 <at> debbugs.gnu.org (full text, mbox):

From: Roger Mason <rmason <at> mun.ca>
To: Mark H Weaver <mhw <at> netris.org>
Cc: Roger Mason <rmason <at> mun.ca>, 36170 <at> debbugs.gnu.org
Subject: Re: bug#36170: configure fails on FreeBSD
Date: Wed, 12 Jun 2019 12:33:29 -0230
Hello Mark,

Mark H Weaver <mhw <at> netris.org> writes:

>> I note also that configure claims my readline library is too old (<
>> 2.1), but I have:
>>
>> pkg info -x readline
>> readline-7.0.5
>
> Something went wrong here.  The relevant check involves compiling a
> small test program that references 'rl_getc_function', which was
> apparently added in readline 2.1.  Something must have gone wrong
> compiling that test program.
>
> After running ./configure, there should be a file 'config.log' which
> includes the failed test program, the compile command used to compile
> it, and the compiler error messages.  Can you search for 'readline' in
> that file and see what went wrong?
>
>       Thanks,
>         Mark

config.log says:

configure:54907: cc -std=gnu11 -o conftest -I/usr/local/include -g -O2
-I/usr/local/include conftest.c -lreadline -lncurses -lcrypt -lm >&5

/usr/bin/ld: cannot find -lreadline

So the error message is a bit misleading.

Cheers,
Roger




Information forwarded to bug-guile <at> gnu.org:
bug#36170; Package guile. (Wed, 12 Jun 2019 15:50:04 GMT) Full text and rfc822 format available.

Message #20 received at 36170 <at> debbugs.gnu.org (full text, mbox):

From: Roger Mason <rmason <at> mun.ca>
To: Roger Mason <rmason <at> mun.ca>
Cc: Mark H Weaver <mhw <at> netris.org>, 36170 <at> debbugs.gnu.org
Subject: Re: bug#36170: configure fails on FreeBSD
Date: Wed, 12 Jun 2019 12:41:35 -0230
Hello Again,

Roger Mason <rmason <at> mun.ca> writes:

> config.log says:
>
> configure:54907: cc -std=gnu11 -o conftest -I/usr/local/include -g -O2
> -I/usr/local/include conftest.c -lreadline -lncurses -lcrypt -lm >&5
>
> /usr/bin/ld: cannot find -lreadline
>
> So the error message is a bit misleading.

Adding LDFLAGS="-L/usr/local/lib" to the configure invocation fixed it.

Cheers,
Roger




Added tag(s) notabug. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 25 Jun 2019 08:36:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 36170 <at> debbugs.gnu.org and Roger Mason <rmason <at> mun.ca> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 25 Jun 2019 08:36:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Jul 2019 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 277 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.