From: Vladimir V. Zolotych
Subject: defsystem
Date: 
Message-ID: <3B13AC11.E9BF223D@eurocom.od.ua>
Where can I get defsystem that supports
things like the following:

(:file "callback"
  :language :c
  :compiler-options
  (:cflags ,(pkg-cflags "glib-2.0")
    :optimize 2
    :definitions (#+cmu CMUCL)
    :include-paths ("/usr/src/cmucl-2.4.20/src/lisp"))

The defsystem I'm using complains

Source file "home:lisp/src/clg/glib/callback.lisp" and binary file "home:lisp/src/clg/glib/callback.x86f" do not exist.

Using CMUCL 18c, DEFSYSTEM from sourceforge.net CVS revision
1.26.

-- 
Vladimir Zolotych                         ······@eurocom.od.ua

From: Daniel Barlow
Subject: Re: defsystem
Date: 
Message-ID: <87n17wkym7.fsf@noetbook.telent.net>
"Vladimir V. Zolotych" <······@eurocom.od.ua> writes:

> Where can I get defsystem that supports
> things like the following:
> 
> (:file "callback"
>   :language :c
>   :compiler-options
>   (:cflags ,(pkg-cflags "glib-2.0")
>     :optimize 2
>     :definitions (#+cmu CMUCL)
>     :include-paths ("/usr/src/cmucl-2.4.20/src/lisp"))

I _think_ that's a bug in mk-defsystem (of course, without a spec,
who's to say?)

Try adding :source-extension and :binary-extension clauses to the
form; I've found it tends to help.


-dan

-- 

  http://ww.telent.net/cliki/ - Link farm for free CL-on-Unix resources 
From: Marco Antoniotti
Subject: Re: defsystem
Date: 
Message-ID: <y6cofscxcls.fsf@octagon.mrl.nyu.edu>
Daniel Barlow <···@telent.net> writes:

> "Vladimir V. Zolotych" <······@eurocom.od.ua> writes:
> 
> > Where can I get defsystem that supports
> > things like the following:
> > 
> > (:file "callback"
> >   :language :c
> >   :compiler-options
> >   (:cflags ,(pkg-cflags "glib-2.0")
> >     :optimize 2
> >     :definitions (#+cmu CMUCL)
> >     :include-paths ("/usr/src/cmucl-2.4.20/src/lisp"))
> 
> I _think_ that's a bug in mk-defsystem (of course, without a spec,
> who's to say?)

That is correct.  This seems like a change from CLG version of DEFSYTEM.

The problem is that there is no good specification about what to do
with C files.  I perfectly agree with this.

These changes can be made part of the current DEFSYSTEM. The CLOCC is
open. (Please read my signature to understand why these changes have
not been put in there yet).

Cheers

-- 
Marco Antoniotti ========================================================
NYU Courant Bioinformatics Group        tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                 fax  +1 - 212 - 995 4122
New York, NY 10003, USA                 http://bioinformatics.cat.nyu.edu
                    "Hello New York! We'll do what we can!"
                           Bill Murray in `Ghostbusters'.
From: Christophe Rhodes
Subject: Re: defsystem
Date: 
Message-ID: <sq8zjgjjqg.fsf@lambda.jesus.cam.ac.uk>
"Vladimir V. Zolotych" <······@eurocom.od.ua> writes:

> Where can I get defsystem that supports
> things like the following:
> 
> (:file "callback"
>   :language :c
>   :compiler-options
>   (:cflags ,(pkg-cflags "glib-2.0")
>     :optimize 2
>     :definitions (#+cmu CMUCL)
>     :include-paths ("/usr/src/cmucl-2.4.20/src/lisp"))
> 
> The defsystem I'm using complains

Daniel's posted the workaround; on a different note, this looks like
clg's system, and I'd love to hear of success or failure on getting it
working (I'm too scared to install gtk-1.3/2.0...)

Cheers,

Christophe
-- 
Jesus College, Cambridge, CB5 8BL                           +44 1223 524 842
http://www-jcsu.jesus.cam.ac.uk/~csr21/                  (defun pling-dollar 
(str schar arg) (first (last +))) (make-dispatch-macro-character #\! t)
(set-dispatch-macro-character #\! #\$ #'pling-dollar)