* can't configure --with-libgmp-prefix; header search order
@ 2009-08-04 9:26 Ken Raeburn
2009-08-04 19:17 ` Andy Wingo
0 siblings, 1 reply; 3+ messages in thread
From: Ken Raeburn @ 2009-08-04 9:26 UTC (permalink / raw)
To: bug-guile
First, a minor nit:
% ./configure --help |& head -1
`configure' configures guile 1.9.0 to adapt to many kinds of systems.
% ./configure --version | head -1
guile configure 1.9.0
%
But I downloaded 1.9.1, not 1.9.0; the version number reported here is
wrong.
% ../configure --prefix=`pwd`/I --with-libgmp-prefix=/opt/local --with-
libunistring-prefix=`cd ../../libunistring-0.9.1/I/&&pwd`
[...]
checking whether csqrt is usable... yes
checking how to link with libgmp... -L/opt/local/lib -lgmp
checking for __gmpz_init in -lgmp... no
configure: error: GNU MP not found, see README
%
In config.log I see that it's not using the -L option when testing for
__gmpz_init:
configure:44666: checking how to link with libgmp
configure:45113: result: -L/opt/local/lib -lgmp
configure:45150: checking for __gmpz_init in -lgmp
configure:45185: gcc -o conftest -g -O2 -I/Users/raeburn/dev/guile/
libunistring-0.9.1/I/include -I/opt/local/include conftest.c -lgmp -
lm -lltdl >&5
ld: library not found for -lgmp
collect2: ld returned 1 exit status
configure:45192: $? = 1
(This is on Mac OS X 10.5.)
If instead I use CPPFLAGS and LDFLAGS on the configure command line to
specify the /opt/local directories, configure happily runs to
completion. However, the build fails:
Undefined symbols:
"_scm_cells_allocated", referenced from:
_scm_cells_allocated$non_lazy_ptr in libtest_asmobs_la-test-
asmobs-lib.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
This is because the build process for the test suite is picking up the
installed Guile 1.8.7 headers (in the same MacPorts directory where
I'm getting GNU MP from) before the guile-1.9.1 ones, as I reported
back in June.
Ken
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't configure --with-libgmp-prefix; header search order
2009-08-04 9:26 can't configure --with-libgmp-prefix; header search order Ken Raeburn
@ 2009-08-04 19:17 ` Andy Wingo
2009-08-06 6:45 ` Ken Raeburn
0 siblings, 1 reply; 3+ messages in thread
From: Andy Wingo @ 2009-08-04 19:17 UTC (permalink / raw)
To: Ken Raeburn; +Cc: bug-guile
On Tue 04 Aug 2009 11:26, Ken Raeburn <raeburn@raeburn.org> writes:
> First, a minor nit:
>
> % ./configure --help |& head -1
> `configure' configures guile 1.9.0 to adapt to many kinds of systems.
> % ./configure --version | head -1
> guile configure 1.9.0
> %
>
> But I downloaded 1.9.1, not 1.9.0; the version number reported here is
> wrong.
That's odd. Current git yields 1.9.1 as the version. Perhaps Ludo ran
distcheck before bumping the GUILE-VERSION.
> % ../configure --prefix=`pwd`/I --with-libgmp-prefix=/opt/local --with-
> libunistring-prefix=`cd ../../libunistring-0.9.1/I/&&pwd`
> [...]
> checking whether csqrt is usable... yes
> checking how to link with libgmp... -L/opt/local/lib -lgmp
> checking for __gmpz_init in -lgmp... no
> configure: error: GNU MP not found, see README
> %
>
> In config.log I see that it's not using the -L option when testing for
> __gmpz_init:
I think I've fixed this. Can you pull from git and give it another go?
Thanks,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't configure --with-libgmp-prefix; header search order
2009-08-04 19:17 ` Andy Wingo
@ 2009-08-06 6:45 ` Ken Raeburn
0 siblings, 0 replies; 3+ messages in thread
From: Ken Raeburn @ 2009-08-06 6:45 UTC (permalink / raw)
To: Andy Wingo; +Cc: bug-guile
On Aug 4, 2009, at 15:17, Andy Wingo wrote:
>> In config.log I see that it's not using the -L option when testing
>> for
>> __gmpz_init:
>
> I think I've fixed this. Can you pull from git and give it another go?
Starting with the current git code, and fixing an autogen problem (on
Mac OS X we want to run "glibtool" because "libtool" is some other
program), configure with --with-libgmp-prefix seems to work fine.
Compilation fails, first for unrelated reasons:
cc1: warnings being treated as errors
../../libguile/srfi-13.c: In function ‘string_titlecase_x’:
../../libguile/srfi-13.c:2517: warning: comparison is always false due
to limited range of data type
../../libguile/srfi-13.c:2517: warning: comparison is always false due
to limited range of data type
If I disable -Werror with "make GCC_CFLAGS=", it gets a bit further,
and then:
Making all in guile-readline
../libguile/guile-snarf -o readline.x ../../guile-readline/readline.c -
DHAVE_CONFIG_H -I. -I.. -I../../guile-readline/.. -I../../guile-
readline/lib -I./lib -g -O2
In file included from ../../guile-readline/readline.c:29:
../../guile-readline/../libguile.h:25:17: error: gmp.h: No such file
or directory
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-06 6:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-04 9:26 can't configure --with-libgmp-prefix; header search order Ken Raeburn
2009-08-04 19:17 ` Andy Wingo
2009-08-06 6:45 ` Ken Raeburn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).