automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird problem with LIBADD


From: Ralf Wildenhues
Subject: Re: Weird problem with LIBADD
Date: Fri, 6 Oct 2006 15:43:07 +0200
User-agent: Mutt/1.5.13 (2006-09-08)

Hello Sylvestre,

I can look at your issue sometime next week at the earliest, but here
are some quick notes:

* Sylvestre Ledru wrote on Fri, Oct 06, 2006 at 03:24:27PM CEST:
> 
> This lib has many dependencies.

The following: ...

> libcore_la_DEPENDENCIES = \
> $(top_builddir)/libs/blas/libblas.la \
> $(top_builddir)/libs/lapack/liblapack.la \
> $(top_builddir)/libs/MALLOC/libmalloc.la \
> $(top_builddir)/modules/cacsd/libcacsd.la \
> $(top_builddir)/modules/differential_equations/libdifferential_equations.la \
> $(top_builddir)/modules/polynomials/libpolynomials.la \
> $(top_builddir)/modules/elementaries_functions/libelementaries_functions.la \
> $(top_builddir)/modules/signal_processing/libsignal_processing.la
> 
> libcore_la_LIBADD = $(libcore_la_DEPENDENCIES)

... is shorter (and more precisely) written as follows: ...

libcore_la_LIBADD = \
$(top_builddir)/libs/blas/libblas.la \
$(top_builddir)/libs/lapack/liblapack.la \
$(top_builddir)/libs/MALLOC/libmalloc.la \
$(top_builddir)/modules/cacsd/libcacsd.la \
$(top_builddir)/modules/differential_equations/libdifferential_equations.la \
$(top_builddir)/modules/polynomials/libpolynomials.la \
$(top_builddir)/modules/elementaries_functions/libelementaries_functions.la \
$(top_builddir)/modules/signal_processing/libsignal_processing.la

... because Automake is able to compute libcore_la_DEPENDENCIES from
this.  If this causes any kind of issues, please report them.  Thanks.

> However, when I try to compile this, it says that :
> grep: /home/sylvestre/dev/scilab5/modules/core/libcore.la: No such file
> or directory

> When I commet the last line of DEPENDENCIES
> ($(top_builddir)/modules/signal_processing/libsignal_processing.la), it
> is working... I have this problem when I try to include other libs.

Show how you create this library:
  $(top_builddir)/modules/signal_processing/libsignal_processing.la
(i.e., the command line used to create it).  It looks like it depends on
libcore.la (which would be a circular dependency).

> It is not the first time that I see that with the autotools.

It would be the first time that I see that and at the same time it were
not a user error.  ;-)

> I am using automake 1.9.6, autoconf 2.60a and libtool 2.1a.

> PS 1 : sorry if it is more a libtool issue than an automake problem.

It may well be, but you're more than forgiven for posting a nice problem
report in the first place.  :-)


If my above assumption is not true, then I would like to see the packed
output of this command below, with --debug added as the first argument
to libtool; like this:
  /bin/sh ../../libtool --debug --tag=F77 --mode=... ...  2>&1 | gzip > log.gz 

> PS 2 :The command which fails is :
> /bin/sh ../../libtool --tag=F77 --mode=link gfortran  -g -Wall
> -I/home/sylvestre/dev/scilab5/modules/core/includes  -lieee -o
> libcore.la -rpath /usr/lib  libcore_la-history.lo libcore_la-inffic.lo
*snip*

> sci_error.lo sci_sciargs.lo
> sci_isglobal.lo ../../libs/blas/libblas.la ../../libs/lapack/liblapack.la 
> ../../libs/MALLOC/libmalloc.la ../../modules/cacsd/libcacsd.la 
> ../../modules/differential_equations/libdifferential_equations.la 
> ../../modules/polynomials/libpolynomials.la 
> ../../modules/elementaries_functions/libelementaries_functions.la 
> ../../modules/signal_processing/libsignal_processing.la

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]