Re: Bad slot inheritance in ECL

2016-12-27 Thread Faré
I'll count that as probably a bug on my side, due to inheritance via selfward-operation adding unexpected results into the list being deconstructed. My apologies for doubting ECL, and thank you for your patience and support. There remains the other problem, regarding linking. —♯ƒ • François-René

Re: Bad slot inheritance in ECL

2016-12-27 Thread Daniel Kochmański
Faré writes: > > OK, so the failures are all explained now. I'm glad to hear that. > However, though the program compiles as expected, trying to link lots > of .o files instead of a handful of .a files leads to another bug: > (ASDF/ACTION:COMPONENT-DEPENDS-ON :STATIC-PROGRAM-OP :HELLO/CHELLO)

Re: Statically linking C code into ECL

2016-12-27 Thread Faré
On Tue, Dec 27, 2016 at 3:07 AM, Daniel Kochmański wrote: >> Unhappily, neither *user-cc-flags* nor *ld-flags* allows me to get the >> desired result: >> the former is not used by build-program, and the latter is only used >> *after* passing the list of .a, too late for a -Wl,--whole-archive. >> M

Re: Bad slot inheritance in ECL

2016-12-27 Thread Faré
When I modify my script, I see (SLOT-VALUE (MAKE-INSTANCE 'CFFI-TOOLCHAIN::FOO-OP) 'ASDF/BUNDLE::GATHER-TYPE) => :STATIC-LIBRARY Which looks weird to me: shouldn't the initialize-instance :before method have triggered an error because I did a make-instance outside of make-operation? That sounds

Re: Bad slot inheritance in ECL

2016-12-27 Thread Daniel Kochmański
(slot-value (make-instance 'foo-op) 'gather-type) ;-> :object Works OK for me. I think that the problem is somewhere with your make-operation and gather-type functions indirection magic (I'm not saying its not triggered by some bug in ECL, but it's doesn't look like a problem with allocation). F

Re: Statically linking C code into ECL

2016-12-27 Thread Daniel Kochmański
Faré writes: > Unhappily, neither *user-cc-flags* nor *ld-flags* allows me to get the > desired result: > the former is not used by build-program, and the latter is only used > *after* passing the list of .a, too late for a -Wl,--whole-archive. > Moreover, on Darwin and/or with lld, I need to use