no rule to make target cl_N_err_d0.lo

Richard B. Kreckel kreckel at ThEP.Physik.Uni-Mainz.DE
Thu Jul 20 13:34:16 CEST 2000


On Thu, 20 Jul 2000, er-chan wrote:
>  I wish to run GiNaC to simplify some very complicated algebraic 
> expressions(Bessel, Legendre,etc. polynomials) and evaluate them,
> and in order to do that I must first compile cln-1.0.3.tar.gz
> I am in difficulty doing this.  I don't know what the problem(s) is
> and I would appreciate some help.   What I did was:
>  tar -zxvf cln-1.0.3.tar.gz; cd cln-1.0.3;   CC="gcc -V egcs-2.91.66" 
> CFLAGS="-O2 -fno-exceptions" CXX="g++ -V egcs-2.91.66"
> CXXFLAGS="-O2 -fno-exceptions" ./compile; make -n; 
> It stops with error 2 because No rule to make target
> `cl_N_err_d0.lo' needed by `libcln.la'
> 
> ====================================================================
> The tail of the scriptfile follows:
> ====================================================================

There are two common problems when compiling CLN.  The first one is on
parallel machines when you say make -j 2.  Objects are missing when it
tries to link, which is because libtool and deep directory structures
simply don't go together.  Big deal: just say make again.  But I don't see
any -j here.  My next guess is that your version of make is broken.  There
was a bug in GNU make-3.78.1: it didn't properly initialize d_type.  It
was discussed on debian-devel in February and Andreas Schwap proposed this
patch for GNU make-3.78.1:

--- dir.c
+++ dir.c       2000/01/20 15:40:41
@@ -1044,6 +1044,9 @@
 #ifdef _DIRENT_HAVE_D_NAMLEN
              d->d_namlen = len - 1;
 #endif
+#ifdef _DIRENT_HAVE_D_TYPE
+             d->d_type = DT_UNKNOWN;
+#endif
              memcpy (d->d_name, df->name, len);
              return d;
            }

Unfortunately we haven't found a simple test for make to see if it is
broken.  But I do suggest you have a very close look at your version of
make.

> =======================================================================
> This is on  a RedHat 6.1 linux 486 machine.  Should I switch to 
> Slackware 7.1 or Debian? Thanks for any help.
> =====================================================================

This really shouldn't matter at all as long as your software is new
enough (which it seems to be, judging from your compiler flags)!
On the other hand, Debian 2.2 (potato) does come with a conveniently 
packaged libcln-1.0.3.

Regards
    -richy.
-- 
Richard Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>

-
To UNSUBSCRIBE, email to ginac-list at ginac.de with a subject of "unsubscribe".



More information about the GiNaC-list mailing list