<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">For the record, I just stuffed it in its own file.  This works and is good enough for what I want.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 7, 2017 at 9:17 PM, Faré <span dir="ltr"><<a href="mailto:fahree@gmail.com" target="_blank">fahree@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm not sure it is allowed to use defsystem in a .lisp file — maybe<br>
add :pathname nil so at least it doesn't try to associate the<br>
current-lisp-file-pathname's to it? Or else put it in its own .asd<br>
file?<br>
<span class=""><br>
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• <a href="http://fare.tunes.org" rel="noreferrer" target="_blank">http://fare.tunes.org</a><br>
</span>"I wish there was a knob on the TV to turn up the intelligence.<br>
There's a knob called `brightness', but it doesn't work."<br>
                — Gallagher<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Sun, Oct 8, 2017 at 12:08 AM, Raymond Toy <<a href="mailto:toy.raymond@gmail.com">toy.raymond@gmail.com</a>> wrote:<br>
> That's the entire defsystem.  But it's inside the file<br>
> <a href="https://gitlab.common-lisp.net/cmucl/cmucl/blob/master/tests/pcl.lisp" rel="noreferrer" target="_blank">https://gitlab.common-lisp.<wbr>net/cmucl/cmucl/blob/master/<wbr>tests/pcl.lisp</a><br>
><br>
> The entire error message (sorry for not including it earlier):<br>
><br>
> Error while trying to load definition for system pcl-test from pathname<br>
> /Volumes/share2/src/clnet/<wbr>cmucl/snapshot-2017-10/tests/<wbr>pcl.lisp: Circular<br>
> dependency: ((#<ASDF/FIND-SYSTEM:DEFINE-<wbr>OP> . #<ASDF/SYSTEM:SYSTEM<br>
> "pcl-test">) (#<ASDF/LISP-ACTION:LOAD-OP> . #<ASDF/SYSTEM:SYSTEM<br>
> "pcl-test">) (#<ASDF/LISP-ACTION:LOAD-OP> .<br>
> #<ASDF/LISP-ACTION:CL-SOURCE-<wbr>FILE "pcl-test" "pkg">)<br>
> (#<ASDF/LISP-ACTION:PREPARE-<wbr>OP> . #<ASDF/LISP-ACTION:CL-SOURCE-<wbr>FILE<br>
> "pcl-test" "pkg">) (#<ASDF/LISP-ACTION:PREPARE-<wbr>OP> . #<ASDF/SYSTEM:SYSTEM<br>
> "pcl-test">))<br>
> Restarts:<br>
>   0: [CONTINUE                     ] Return NIL from load of<br>
> #P"/Volumes/share2/src/clnet/<wbr>cmucl/snapshot-2017-10/tests/<wbr>pcl.lisp".<br>
>   1: [RETRY                        ] Retry #<DEFINE-OP> on #<SYSTEM<br>
> "pcl-test">.<br>
>   2: [ACCEPT                       ] Continue, treating #<DEFINE-OP> on<br>
> #<SYSTEM "pcl-test"> as having been successful.<br>
>   3:                                 Retry ASDF operation.<br>
>   4: [CLEAR-CONFIGURATION-AND-<wbr>RETRY] Retry ASDF operation after resetting<br>
> the configuration.<br>
>   5:                                 Retry ASDF operation.<br>
>   6:                                 Retry ASDF operation after resetting<br>
> the configuration.<br>
>   7:                                 Return NIL from load of<br>
> #P"/Volumes/share2/src/clnet/<wbr>cmucl/snapshot-2017-10/tests/<wbr>pcl.lisp".<br>
>   8: [ABORT                        ] Skip remaining initializations.<br>
><br>
> The file gets loaded from tests/run-tests.lisp<br>
><br>
> I guess maybe that defsystem should be in its own file that pcl.lisp loads?<br>
> I have a vague memory that you helped fix some similar issues with some asdf<br>
> defsystems that I had, that were working fine but stopped working after some<br>
> upgrade, maybe to 3.2.x.<br>
><br>
><br>
> On Sat, Oct 7, 2017 at 8:55 PM, Faré <<a href="mailto:fahree@gmail.com">fahree@gmail.com</a>> wrote:<br>
>><br>
>> Maybe the circularity is at a wider level. What is the complete error<br>
>> message? The complete set of .asd files? Are you using<br>
>> defsystem-depends-on anywhere? Or manually loading .asd's from other<br>
>> .asd's? How can I reproduce?<br>
>><br>
>> —♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics•<br>
>> <a href="http://fare.tunes.org" rel="noreferrer" target="_blank">http://fare.tunes.org</a><br>
>> Passive hope is wishful thinking, a poison of the mind.<br>
>> Active hope is creative passion, the mover of the universe.<br>
>><br>
>><br>
>> On Sat, Oct 7, 2017 at 11:44 PM, Raymond Toy <<a href="mailto:toy.raymond@gmail.com">toy.raymond@gmail.com</a>><br>
>> wrote:<br>
>> > The following defsystem worked in asdf 3.2.1 but no longer works in<br>
>> > 3.3.0.<br>
>> > The error message doesn't really help in figuring out what's circular.<br>
>> > And<br>
>> > I just can't see what's circular.<br>
>> ><br>
>> > The system:<br>
>> ><br>
>> > (asdf:defsystem :pcl-test<br>
>> >   :pathname "pcl/"<br>
>> >   :components<br>
>> >   ((:file "pkg")<br>
>> >    #+gerds-pcl<br>
>> >    (:file "ctor"<br>
>> >     :depends-on ("pkg"))<br>
>> >    (:file "defclass"<br>
>> >     :depends-on ("pkg"))<br>
>> >    (:file "make-instance"<br>
>> >     :depends-on ("pkg" #+gerds-pcl "ctor"))<br>
>> >    (:file "reinitialize-instance"<br>
>> >     :depends-on ("pkg" "make-instance"))<br>
>> >    (:file "slot-value"<br>
>> >     :depends-on ("pkg" "make-instance"))<br>
>> >    (:file "slot-boundp"<br>
>> >     :depends-on ("pkg" "make-instance"))<br>
>> >    (:file "slot-missing"<br>
>> >     :depends-on ("pkg" "make-instance"))<br>
>> >    (:file "slot-accessors"<br>
>> >     :depends-on ("pkg" "make-instance"))<br>
>> >    (:file "slot-type"<br>
>> >     :depends-on ("pkg" "slot-value"))<br>
>> >    (:file "inline-access"<br>
>> >     :depends-on ("pkg" "slot-type"))<br>
>> >    (:file "method-combination"<br>
>> >     :depends-on ("pkg"))<br>
>> >    (:file "pv"<br>
>> >     :depends-on ("pkg"))<br>
>> >    (:file "defgeneric"<br>
>> >     :depends-on ("pkg"))<br>
>> >    (:file "defmethod"<br>
>> >     :depends-on ("pkg"))<br>
>> >    (:file "find-method"<br>
>> >     :depends-on ("pkg"))<br>
>> >    (:file "methods"<br>
>> >     :depends-on ("pkg"))))<br>
>> ><br>
>> > --<br>
>> > Ray<br>
><br>
><br>
><br>
><br>
> --<br>
> Ray<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div></div>Ray<br></div></div>
</div>