Lisp HUG Maillist Archive

inconsistent results with FLI:PRINT-COLLECTED-TEMPLATE-INFO

I'm attempting to deliver a shared library for another application (Mac, 64bit).  I deliver it at level 0, 
call FLI:START-COLLECTING-TEMPLATE-INFO, test all the entry points, and then call FLI:PRINT-COLLECTED-TEMPLATE-INFO. Sometimes it works and other times I get no output (and no errors). 

Next problem, I added a new call with a different foreign type. It gave some templates for this new foreign type, but dropped all of the previous ones that had been generated with other calls (every entry point was included in the test).

Any ideas or suggestions? 

John DeSoi, Ph.D.


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: inconsistent results with FLI:PRINT-COLLECTED-TEMPLATE-INFO

Shot in the dark: maybe you need to call #'finish-output to ensure that buffers are flushed before the process ends?

> On 2 Jun 2018, at 04:08 , John DeSoi <desoi@pgedit.com> wrote:
> 
> I'm attempting to deliver a shared library for another application (Mac, 64bit).  I deliver it at level 0, 
> call FLI:START-COLLECTING-TEMPLATE-INFO, test all the entry points, and then call FLI:PRINT-COLLECTED-TEMPLATE-INFO. Sometimes it works and other times I get no output (and no errors). 
> 
> Next problem, I added a new call with a different foreign type. It gave some templates for this new foreign type, but dropped all of the previous ones that had been generated with other calls (every entry point was included in the test).
> 
> Any ideas or suggestions? 
> 
> John DeSoi, Ph.D.
> 
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: inconsistent results with FLI:PRINT-COLLECTED-TEMPLATE-INFO

Good thought, but I double checked what was being written by returning the output from FLI:PRINT-COLLECTED-TEMPLATE-INFO to the program that called it.

John DeSoi, Ph.D.


> On Jun 2, 2018, at 12:43 AM, Raymond Wiker <rwiker@gmail.com> wrote:
> 
> Shot in the dark: maybe you need to call #'finish-output to ensure that buffers are flushed before the process ends?


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: inconsistent results with FLI:PRINT-COLLECTED-TEMPLATE-INFO

Solved: When I was building the debug version of the library to test and collect the template information, I was including the templates. This causes nothing to be generated or only new types that were not in the last set. I just needed to adjust the build file to exclude the generated templates file when delivering at level 0.

John DeSoi, Ph.D.


> On Jun 1, 2018, at 9:08 PM, John DeSoi <desoi@pgedit.com> wrote:
> 
> I'm attempting to deliver a shared library for another application (Mac, 64bit).  I deliver it at level 0, 
> call FLI:START-COLLECTING-TEMPLATE-INFO, test all the entry points, and then call FLI:PRINT-COLLECTED-TEMPLATE-INFO. Sometimes it works and other times I get no output (and no errors). 
> 
> Next problem, I added a new call with a different foreign type. It gave some templates for this new foreign type, but dropped all of the previous ones that had been generated with other calls (every entry point was included in the test).


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Updated at: 2020-12-10 08:29 UTC