From: <sm...@wa...> - 2001-02-10 02:10:50
|
it seems to me that i've produced a fix for this bug. i am relatively new to common lisp, so i had quite some trouble understanding what was going on; and perhaps DEFAULT-SOURCE-EXTENSION should be called somewhere else than at the place i inserted it .. i added this .diff to the following to CREATE-COMPONENT (original was defsystem.lisp from the clocc-02-09-01.tgz snapshot: 2561,2570d2560 < ;; 2001-02-10, Tijs van Bakel < ;; if the language is set, but extensions aren't, we use the < ;; language default < (unless (find :source-extension definition-body) < (setf (component-source-extension component) < (default-source-extension component))) < (unless (find :binary-extension definition-body) < (setf (component-binary-extension component) < (default-binary-extension component))) i'd love to have feedback on whether i actually solved something or just made a workaround .. the next bug(?) i'm trying to fix is that even though gcc returns without any sign of error or warning, defsystem halts with an error after compilation. this might be a cmucl related bug (i'm using CMU Common Lisp release x86-linux 2.4.19 8 February 2000 build 456) ;; here's a sample input file test.lisp (unless (find-package :mk) (load "tools/defsystem" :verbose nil))) (mk:defsystem foo :language :lisp :components ((:module c :language :c :source-pathname "" :components ("bar")))) (mk:operate-on-system 'foo 'compile) ;; * (load "test") ;; ;; Running gcc -c /home/x/bar.c -o bar.o ;; bar.o written ;; Running of gcc finished ;; ;; ;; Error in function C-COMPILE-FILE: Compilation failed ;; ;; Restarts: ;; 0: [CONTINUE] Return NIL from load of "test". ;; 1: [ABORT ] Return to Top-Level. ;; ;; Debug (type H for help) ;; ;; (C-COMPILE-FILE "bar.c" :OUTPUT-FILE "bar.o" :ERROR-FILE ...)[:OPTIONAL] ;; Source: (ERROR "Compilation failed") ;; 0] the next time i run MK:OPERATE-ON-SYSTEM, things are perfectly fine and the file gets loaded correctly. greetings, -- Tijs van Bakel, <sm...@wa...> |
From: Marco A. <ma...@cs...> - 2001-02-10 18:17:20
|
Hi is this from the latest defsystem? 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://galt.mrl.nyu.edu/valis Like DNA, such a language [Lisp] does not go out of style. Paul Graham, ANSI Common Lisp |