bug-zile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-zile] Google Summer of Code 2014


From: Gary V. Vaughan
Subject: Re: [Bug-zile] Google Summer of Code 2014
Date: Sat, 8 Mar 2014 13:01:04 +1300

Hi Garnaik,

On Mar 8, 2014, at 10:03 AM, Garnaik Sumeet <address@hidden> wrote:

> Hello Sir,
>           I installed all the required modules and libraries.
> Ran the bootstrap program but it was unable to clone the specl files using 
> git protocol,so I had to manually clone in the same directory using https.
> configure script ran fine,but on running make I got the absence of std.io 
> files....so I had them installed using luarocks(i guess bootstrap should have 
> reminded me to install stdlib for lua).

The bootstrap script is responsible only for taking the checked in files, and 
running
developer tools to bring the build tree into a distributable format.  Arguably, 
the
configure script that bootstrap builds would be a lot more user friendly if it 
warned
of a lack of required run-time modules as early as possible... but at the 
moment, that
task falls to Lua at runtime.

> After installing stdlib and again running make,this is the following error 
> what I got.
> 
> 
>   ZLC      lib/zmacs/commands.lua

If you run 'make V=1' then you will be able to see the actual shell command 
being executed
by the Makefile to build lib/zmacs/commands.lua using the zlc compiler.  You 
might need to
remove lib/zmacs/commands.lua to force zlc to run again.  This will give us all 
a better
idea of what is happening -- plus you can run that command by hand from the 
command prompt
to isolate the problem you're currently experiencing.

I note from your other emails that you are running Lua 5.1.  This might be the 
root of
the problems your having right now, as Zile is Lua 5.2 only... and as such is 
not tested
with Lua 5.1 at all.

The Zile continuous integration has full build logs from first principles on an 
Ubuntu
system that you can compare your progress to in order to see where things 
diverge for
you and hopefully make it obvious where things have gone wrong for you:

   https://travis-ci.org/gvvaughan/zile/builds

Click the 'Current' tab on that page, and wait for the terminal to fill up with 
the build
log, including installation of all dependent luarocks, and running the tiny new 
style
specl tests.

> /usr/bin/lua: ./lib/zmacs/zlc:57: bad argument #2 to 'format' (string 
> expected, got nil)
> stack traceback:
>     [C]: in function 'format'
>     ./lib/zmacs/zlc:57: in function 'writef'
>     ./lib/zmacs/zlc:85: in function <./lib/zmacs/zlc:84>

This tells us that whatever zlisp file zlc is currently compiling has reached a
`(make-variable-buffer-local ...` call, but hasn't been able to determine the 
argument
for some reason.  If this doesn't go away when you upgrade to Lua 5.2, you'll 
be able
to isolate it further by running the zlc command from make you discovered above 
on
each file.

No doubt, zlc needs to give better error messages. Sorry about that!

Cheers,
-- 
Gary V. Vaughan (gary AT vaughan DOT pe)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]