Terrence Brannon | 2 Dec 2007 00:55
Picon
Gravatar

compiling on cygwin - part 2

I saw the earlier thread on this subject:
http://sourceforge.net/mailarchive/message.php?msg_id=758962.73965.qm%40web51410.mail.re2.yahoo.com

and the consensus was to build SBCL using SBCL...

I personally dont know how that can create a Cygwin build, but would
appreciate any feedback.

When I run SBCL 1.0.9 under Cygwin, it starts up and runs, but it
expects windows-style pathnames. And invoking SLIME with SBCL 1.0.9
for windows thus does not work because it is sending Unix-style paths
to an SBCL expecting windows style paths.

--

-- 
http://www.aliveandwell.org/ | http://www.SlowChess.com |
http://mostholy.wholefoodfarmacy.com

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Rudi Schlatte | 2 Dec 2007 01:42
Picon
Gravatar

Re: compiling on cygwin - part 2


On 02.12.2007, at 07:55, Terrence Brannon wrote:

> I saw the earlier thread on this subject:
> http://sourceforge.net/mailarchive/message.php?msg_id=758962.73965.qm%40web51410.mail.re2.yahoo.com
>
> and the consensus was to build SBCL using SBCL...
>
> I personally dont know how that can create a Cygwin build, but would
> appreciate any feedback.

cygwin's gcc, make &c, along with sbcl itself, can be used to build  
sbcl on windows.  The second possibility is to use msys.  The binary  
is build using -mno-cygwin and is a native windows executable.

To my knowledge, no one has tried to port sbcl to run on top of  
cygwin; since sbcl is a somewhat demanding application, this might  
uncover bugs or limitations in cygwin itself.  (A similar task, but  
perhaps even grander in scope, would be to try to compile the Unix  
Java VM under cygwin - "it's all Posix, so it should work", right? :) )

> When I run SBCL 1.0.9 under Cygwin, it starts up and runs, but it
> expects windows-style pathnames. And invoking SLIME with SBCL 1.0.9
> for windows thus does not work because it is sending Unix-style paths
> to an SBCL expecting windows style paths.

Just for the record, sbcl/slime/(non-cygwin-)emacs on Windows runs  
fine (at least it did the last time I tried - I don't boot into  
Windows often).

(Continue reading)

Terrence Brannon | 2 Dec 2007 01:52
Picon
Gravatar

Re: compiling on cygwin - part 2

On Dec 1, 2007 7:42 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
>
> On 02.12.2007, at 07:55, Terrence Brannon wrote:
>
> > I saw the earlier thread on this subject:
> > http://sourceforge.net/mailarchive/message.php?msg_id=758962.73965.qm%40web51410.mail.re2.yahoo.com
> >
> > and the consensus was to build SBCL using SBCL...
> >
> > I personally dont know how that can create a Cygwin build, but would
> > appreciate any feedback.
>
> cygwin's gcc, make &c, along with sbcl itself, can be used to build
> sbcl on windows.

what command-line would I type to try this build? would I run the
command-line under the Windows command shell or a cygwin shell?

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Rudi Schlatte | 2 Dec 2007 02:09
Picon
Gravatar

Re: compiling on cygwin - part 2


On 02.12.2007, at 08:52, Terrence Brannon wrote:

> On Dec 1, 2007 7:42 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
>>
>> cygwin's gcc, make &c, along with sbcl itself, can be used to build
>> sbcl on windows.
>
> what command-line would I type to try this build? would I run the
> command-line under the Windows command shell or a cygwin shell?

The build is done within the cygwin shell.  Make sure sbcl is in the  
path, then cd to the top-level source directory and type "sh  
make.sh".  Two out of 15 contribs fail to build (sb-simple-streams and  
another one that I can't remember before coffee) - if you got src/ 
runtime/sbcl.exe and output/sbcl.core and the contribs built, you were  
successful.

Cheers,

Rudi

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Terrence Brannon | 2 Dec 2007 02:21
Picon
Gravatar

Re: compiling on cygwin - part 2

On Dec 1, 2007 8:09 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
>
> On 02.12.2007, at 08:52, Terrence Brannon wrote:
>
> > On Dec 1, 2007 7:42 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
> >>
> >> cygwin's gcc, make &c, along with sbcl itself, can be used to build
> >> sbcl on windows.
> >
> > what command-line would I type to try this build? would I run the
> > command-line under the Windows command shell or a cygwin shell?
>
> The build is done within the cygwin shell.  Make sure sbcl is in the
> path, then cd to the top-level source directory and type "sh
> make.sh".

It fails to find the core. When you call sbcl under the windows
command tool, the --core option doesnt have to be specified. But it
does seem to be required for cygwin.

I have a start script with the correct call, but am not sure how to
integrate this into the SBCL build process:

/cygdrive/c/Program_Files/SBCL/1.0.9/sbcl.exe --core
c:\\Program_Files\\SBCL\\1.0.9\\sbcl.core

Administrator <at> LIFEBOOK ~/mydocs/dl/sbcl-1.0.12 : which sbcl
/cygdrive/c/Program_Files/SBCL/1.0.9/sbcl
Administrator <at> LIFEBOOK ~/mydocs/dl/sbcl-1.0.12 : sh make.sh

(Continue reading)

Terrence Brannon | 2 Dec 2007 02:31
Picon
Gravatar

Re: compiling on cygwin - part 2

Ok, now I'm getting package EXT not found with a call to make.sh
modified per some suggestions  in #lisp on Freenode IRC:

http://paste.lisp.org/display/25668#2

More feedback soon

On Dec 1, 2007 8:21 PM, Terrence Brannon <metaperl <at> gmail.com> wrote:
> On Dec 1, 2007 8:09 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
> >
> > On 02.12.2007, at 08:52, Terrence Brannon wrote:
> >
> > > On Dec 1, 2007 7:42 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
> > >>
> > >> cygwin's gcc, make &c, along with sbcl itself, can be used to build
> > >> sbcl on windows.
> > >
> > > what command-line would I type to try this build? would I run the
> > > command-line under the Windows command shell or a cygwin shell?
> >
> > The build is done within the cygwin shell.  Make sure sbcl is in the
> > path, then cd to the top-level source directory and type "sh
> > make.sh".
>
> It fails to find the core. When you call sbcl under the windows
> command tool, the --core option doesnt have to be specified. But it
> does seem to be required for cygwin.
>
> I have a start script with the correct call, but am not sure how to
> integrate this into the SBCL build process:
(Continue reading)

Rudi Schlatte | 2 Dec 2007 03:35
Picon
Gravatar

Re: compiling on cygwin - part 2


On 02.12.2007, at 09:31, Terrence Brannon wrote:

> Ok, now I'm getting package EXT not found with a call to make.sh
> modified per some suggestions  in #lisp on Freenode IRC:
>
> http://paste.lisp.org/display/25668#2

... which says:

; compilation aborted because of fatal error:
;   READ failure in COMPILE-FILE:
;     READER-ERROR at 295 (line 7, column 17) on #<SB-SYS:FD-STREAM  
for "file c:\\Documents and Settings\\Administrator\\My Documents\\dl\ 
\sbcl-1.0.12\\src\\code\\backq.lisp" {ADE4FF1}>:
;       package "EXT" not found

Here's where I go "huh?" and note that in the backq.lisp in my source  
tree, line 7 is a comment, and the only occurrence of the string "ext"  
in the whole file is within the word "dynamic-extent" ...  Could it be  
that the sources got corrupted somehow?

Rudi

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
(Continue reading)

Terrence Brannon | 2 Dec 2007 03:40
Picon
Gravatar

Re: compiling on cygwin - part 2

It's compiling fine right now... I think some files were mis-created
when I did not supply "sbcl --core ..." after sh make.sh on the
command-line.

On Dec 1, 2007 9:35 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
>
> On 02.12.2007, at 09:31, Terrence Brannon wrote:
>
> > Ok, now I'm getting package EXT not found with a call to make.sh
> > modified per some suggestions  in #lisp on Freenode IRC:
> >
> > http://paste.lisp.org/display/25668#2
>
>
> ... which says:
>
> ; compilation aborted because of fatal error:
> ;   READ failure in COMPILE-FILE:
> ;     READER-ERROR at 295 (line 7, column 17) on #<SB-SYS:FD-STREAM
> for "file c:\\Documents and Settings\\Administrator\\My Documents\\dl\
> \sbcl-1.0.12\\src\\code\\backq.lisp" {ADE4FF1}>:
> ;       package "EXT" not found
>
>
> Here's where I go "huh?" and note that in the backq.lisp in my source
> tree, line 7 is a comment, and the only occurrence of the string "ext"
> in the whole file is within the word "dynamic-extent" ...  Could it be
> that the sources got corrupted somehow?
>
> Rudi
(Continue reading)

Terrence Brannon | 2 Dec 2007 04:18
Picon
Gravatar

Re: compiling on cygwin - part 2

On Dec 1, 2007 8:09 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
>
> On 02.12.2007, at 08:52, Terrence Brannon wrote:
>
> > On Dec 1, 2007 7:42 PM, Rudi Schlatte <rudi <at> constantly.at> wrote:
> >>
> >> cygwin's gcc, make &c, along with sbcl itself, can be used to build
> >> sbcl on windows.
> >
> > what command-line would I type to try this build? would I run the
> > command-line under the Windows command shell or a cygwin shell?
>
> The build is done within the cygwin shell.  Make sure sbcl is in the
> path, then cd to the top-level source directory and type "sh
> make.sh".  Two out of 15 contribs fail to build (sb-simple-streams and
> another one that I can't remember before coffee) - if you got src/
> runtime/sbcl.exe and output/sbcl.core and the contribs built, you were
> successful.

Yep. it compiled. I'll stick with the windows build for the time being:

WARNING! Some of the contrib modules did not build successfully or pass
their self-tests. Failed contribs:"
  sb-cover
  sb-md5
  sb-simple-streams
Administrator <at> LIFEBOOK ~/mydocs/dl/sbcl-1.0.12 :

--

-- 
http://www.aliveandwell.org/ | http://www.SlowChess.com |
(Continue reading)

Terrence Brannon | 2 Dec 2007 11:18
Picon
Gravatar

Alioth shootout SBCL regex-dna program has build error

I'm new to Common Lisp, but the SBCL Shootout results are what caught
my attention. I have a Perl program which takes 40 hours to run and
I'm aiming to cut execution time substantially. Common Lisp has a ton
of libraries and great interfaces to .NET and Java (should I need
them) and the book "Practical Common Lisp" makes your  mouth water.

So anyway, what is needed to get this shootout program error fixed:
http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=sbcl&id=0

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4

Gmane