<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 27, 2014 at 5:27 AM, Camm Maguire <span dir="ltr"><<a href="mailto:camm@maguirefamily.org" target="_blank">camm@maguirefamily.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Greetings!<br>
<span class=""><br>
Gabriel Dos Reis <<a href="mailto:gdr@integrable-solutions.net">gdr@integrable-solutions.net</a>> writes:<br>
<br>
><br>
</span><span class="">> If someone can<br>
><br>
> cd unixport<br>
> make raw_pre_gcl<br>
> readelf -a raw_pre_gcl<br>
><br>
> and post the output, that would be helpful.<br>
><br>
<br>
</span>Are you able to do this, or provide me access so that I can?<br></blockquote><div><br></div><div>Camm:</div><div><br></div><div>Lawrence fixed the Macports port of GCL-2.6.12 so I was able to install it.</div><div><br></div><div>The next thing, though, is that GCL appears not to be work properly with Clang on this platform -- Clang is the default system compiler on new versions on Mac OS X.</div><div><br></div><div>For example, I tried to build OpenAxiom with it, but was stumped by:</div><div><br></div><div><p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">Finished compiling core.lisp.</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">gcl \</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span class="" style="white-space:pre">                </span>-eval '(load "core")' \</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span class="" style="white-space:pre">                </span>-eval '(|AxiomCore|::|link| "base-lisp" (quote nil) "|AxiomCore|::|topLevel|")'</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">Unrelocated non-local symbol: ___stack_chk_fail</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:14px"><br></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">Error: </p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">Fast links are on: do (si::use-fast-links nil) for debugging</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">Signalled by LOAD.</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">Condition in LOAD [or a callee]: INTERNAL-SIMPLE-ERROR: The assertion !fprintf(stderr,"Unrelocated non-local symbol: %s\n",st1+n->n_un.n_strx) on line 147 of /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcl/gcl/work/gcl/o/sfaslmacho.c in function relocate_symbols failed</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:14px"><br></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">Broken at LOAD. Type :H for Help.</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"> 1 Return to top level. </p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">>></p></div><div><br></div><div><br></div><div>Clang is also unhappy that GCL is declaring standard C functions instead of including the appropriate headers, plus some other stylistic issues:</div><div><p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">; Note: Tail-recursive call of |processCommandLine| was replaced by iteration.</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">;; Note: Tail-recursive call of |processCommandLine| was replaced by iteration.</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">;; Note: Tail-recursive call of |processCommandLine| was replaced by iteration.</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">;; Note: Tail-recursive call of DO-IMPORT-MODULE was replaced by iteration.</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">End of Pass 2. </p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(255,255,255);background-color:rgb(0,0,0)">core.c:765:5: <span style="color:rgb(213,59,211)">warning: </span>declaration of built-in function 'setjmp' requires</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(255,255,255);background-color:rgb(0,0,0)"> inclusion of the header <setjmp.h> [-Wbuiltin-requires-header]</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">int setjmp();</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"> ^</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(255,255,255);background-color:rgb(0,0,0)">core.c:766:5: <span style="color:rgb(213,59,211)">warning: </span>declaration of built-in function '_setjmp' requires</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(255,255,255);background-color:rgb(0,0,0)"> inclusion of the header <setjmp.h> [-Wbuiltin-requires-header]</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">int _setjmp();</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"> ^</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(255,255,255);background-color:rgb(0,0,0)">core.c:779:71: <span style="color:rgb(213,59,211)">warning: </span>for loop has empty body [-Wempty-body]</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"> {char i;for (i=0;i<sizeof(x)*8 && !((x>>(sizeof(x)*8-1-i))&0x1);i++); return i;}</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"> ^</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="color:rgb(255,255,255)">core.c:779:71: </span><span style="color:rgb(0,0,0)">note: </span>put the semicolon on a separate line to silence this</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"> warning</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(255,255,255);background-color:rgb(0,0,0)">core.c:783:55: <span style="color:rgb(213,59,211)">warning: </span>for loop has empty body [-Wempty-body]</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"> {char i;for (i=0;i<sizeof(x)*8 && !((x>>i)&0x1);i++); return i;}</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"> ^</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="color:rgb(255,255,255)">core.c:783:55: </span><span style="color:rgb(0,0,0)">note: </span>put the semicolon on a separate line to silence this</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)"> warning</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">4 warnings generated.</p></div><div><br></div><div>I know you worry about including standard headers, but the world is moving in that direction...</div><div><br></div><div>-- Gaby</div><div><br></div><div><br></div></div></div></div>