Lightning inclusion problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Lightning inclusion problem

Denis Washington
Hi,

I am trying to get GNU Smalltalk to compile with JIT compilation. While
I still haven't been able to do so (see my post on the lightning mailing
list for those interested), I have at least found one problematic cause:

When trying to use the system-installed Lightning, I run into the
problem that GNU Smalltalk's build directory is prioritised above the
system include directory (because of "-I ." in CPPFLAGS) and that the
build directory also contains a subdirectory "lightning". This leads to
the situation that lines like

   #include "lightning/foo.h"

in, say, /usr/include/lightning.h actually are resolved as
"$(build_dir)/lightning/foo.h", which is probably not what we want as it
leads to version mismatch problems. A possible solution is to rename the
"lightning" directory in GNU Smalltalk's build directory, in which case
compilation works just fine (except for the problems mentioned in the
lightning mailing list, but those are not related), or to move it in a
subdirectory like "lib" or "extern".

Regards,
Denis

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Lightning inclusion problem

Holger Freyther
On 01/10/2011 08:29 PM, Denis Washington wrote:
> Hi,
>
> I am trying to get GNU Smalltalk to compile with JIT compilation. While I
> still haven't been able to do so (see my post on the lightning mailing list
> for those interested), I have at least found one problematic cause:

Hi Denis,

a note of warning, the JIT is not passing some/many of the regression tests
and was not used in production for a while (or that is my impression of almost
a year with GNU Smalltalk).

holger

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Lightning inclusion problem

Paolo Bonzini-2
In reply to this post by Denis Washington
On 01/10/2011 08:29 PM, Denis Washington wrote:

> Hi,
>
> I am trying to get GNU Smalltalk to compile with JIT compilation. While
> I still haven't been able to do so (see my post on the lightning mailing
> list for those interested), I have at least found one problematic cause:
>
> When trying to use the system-installed Lightning, I run into the
> problem that GNU Smalltalk's build directory is prioritised above the
> system include directory (because of "-I ." in CPPFLAGS) and that the
> build directory also contains a subdirectory "lightning". This leads to
> the situation that lines like
>
> #include "lightning/foo.h"

Yes, GNU Smalltalk tries to use a bundled lightning rather than the
system one.  This is obsolete (it should go away, just like the bundled
libffi/libltdl/libsigsegv are being deprecated).

For the time being your workaround is okay.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk