Jens Thiele | 27 Apr 18:09 2015
Picon

debian's gauche 0.9.4 not good enough to build current master? ERROR: unbound variable: LOCAL-ENV-SHIFT

on debian/jessie/armhf using debian's gauche 0.9.4-3 to build current
master i get errors on make check:
...
Testing module ...                                               passed.
Testing macro ...                                                *** ERROR: unbound variable: LOCAL-ENV-SHIFT
    While compiling "../../Gauche/test/macro.scm" at line 574: (test "%do" 1024 (lambda () (%do ((y 1) (x 0 (+
x 1))) ((>= x 10) y) (set! y (* y 2)))))
    While loading "../../Gauche/test/macro.scm" at line 578
Stack Trace:
_______________________________________
Testing numbers ...                                              passed.
Testing characters ...                                           passed.
...
Testing binary ...                                               *** ERROR: unbound variable: LOCAL-ENV-SHIFT
    While compiling "../../lib/binary/pack.scm" at line 541: (define (read-one-packer fixed-len
var-len? vlp slash-count) (let loop ((c (read-char))) (cond ((eof- ...
    While loading "../../lib/binary/pack.scm" at line 922
    While compiling "./../../../Gauche/ext/binary/test.scm" at line 661: (use binary.pack)
    While loading "./../../../Gauche/ext/binary/test.scm" at line 661
Stack Trace:
_______________________________________
../Makefile.ext:88: recipe for target 'check' failed
make[2]: *** [check] Error 70
make[2]: Leaving directory '/home/prisirah/build-gauche/ext/binary'
Makefile:60: recipe for target 'check' failed
make[1]: *** [check] Error 1
make[1]: Leaving directory '/home/prisirah/build-gauche/ext'
Makefile:44: recipe for target 'check' failed
make: *** [check] Error 1

(Continue reading)

Blake McBride | 27 Apr 05:48 2015
Picon

Problem building master

I am on 64 bit Linux.  When I try to build from git master, I get:

./configure
make
...
gcc -std=gnu99 -g -O2 -fPIC     -shared -o text--tr.so text--tr.o -L../../src   -ldl -lcrypt -lutil -lrt -lm  -lpthread
../../src/gosh -ftest ../../src/precomp -e -P -o text--unicode ./unicode.scm
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../src -I../../src -I../../gc/include    -g -O2 -fPIC  -fomit-frame-pointer  -o text--unicode.o -c text--unicode.c
gcc -std=gnu99 -g -O2 -fPIC     -shared -o text--unicode.so text--unicode.o -L../../src   -ldl -lcrypt -lutil -lrt -lm  -lpthread
../../src/gosh -ftest ../../ext/xlink -l -g "text" \
 -b ../.. -s . text--gettext.so text--tr.so text--unicode.so gettext.sci tr.sci unicode.sci
make[2]: Leaving directory `/home/blake/Backup/Gauche.git/ext/text'
(cd rfc; make default)
make[2]: Entering directory `/home/blake/Backup/Gauche.git/ext/rfc'
make[2]: *** No rule to make target `default'.  Stop.
make[2]: Leaving directory `/home/blake/Backup/Gauche.git/ext/rfc'
make[1]: *** [rfc] Error 2
make[1]: Leaving directory `/home/blake/Backup/Gauche.git/ext'
make: *** [all] Error 1

Thanks.

Blake McBride

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Andy Keep (akeep | 19 Apr 19:21 2015
Picon

[CFP] Scheme and Functional Programming Workshop 2015

Call For Papers:

Scheme and Functional Programming Workshop 2015
Vancouver, British Columbia, Canada
(Co-located with ICFP 2015)

http://andykeep.com/SchemeWorkshop2015/

========================================================================

Submissions related to Scheme, Racket, Clojure, and functional
programming are welcome and encouraged. Topics of interest include
but are not limited to:

  * Program-development environments, debugging, testing
  * Implementation (interpreters, compilers, tools, benchmarks, etc.)
  * Syntax, macros, hygiene
  * Distributed computing, concurrency, parallelism
  * Interoperability with other languages, FFIs
  * Continuations, modules, object systems, types
  * Theory, formal semantics, correctness
  * History, evolution and standardization of Scheme
  * Applications, experience and industrial uses of Scheme
  * Education
  * Scheme pearls (elegant, instructive uses of Scheme)

We also welcome submissions related to dynamic or multiparadigmatic
languages and programming techniques.

========================================================================

Important Dates:

May 22nd, 2015 - Paper deadline
June 26th, 2015 - Author notification
July 19th, 2015 - Camera-ready deadline
September 4th, 2015 - Workshop

========================================================================

Submissions must be in ACM proceedings format, no smaller than 9-point
type (10-point type preferred). Microsoft Word and LaTeX templates for
this format are available at:
http://www.acm.org/sigs/sigplan/authorInformation.htm

Submissions should be in PDF and printable on US Letter.

To encourage authors to submit their best work, this year we are
encouraging shorter papers (around 6 pages, excluding references). This
is to allow authors to submit longer, revised versions of their papers
to archival conferences or journals. Longer papers (10--12 pages) are
also acceptable, if the extra space is needed. There is no maximum
length limit on submissions, but good submissions will likely be in the
range of 6 to 12 pages.

More information available at: http://andykeep.com/SchemeWorkshop2015/

========================================================================

Organizers:
Andy Keep, Cisco Systems Inc. (General Chair)
Ryan Culpepper, Northeastern University (Program Chair)

(Apologies for duplications from cross-posting.)

Attachment (smime.p7s): application/pkcs7-signature, 4823 bytes
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Jens Thiele | 16 Apr 22:21 2015
Picon

regression: can't load gauche.h with c-wrapper anymore

Hi,

Using old gauche version I could do something like this:

gosh> (gauche-version)
"0.9"
gosh> (c-load "gauche.h" :cppflags-cmd "gauche-config -I")
#<undef>
gosh> (SCM_LIST1 1)
#<c-ptr:c-struct:ScmHeaderRec 0x2f51470>

using newer gauche version I get a "lost macro body" error.

gosh> (gauche-version)
"0.9.3.3"
gosh> (use c-wrapper)
#<undef>
gosh> (c-load "gauche.h" :cppflags-cmd "gauche-config -I")
<stdin>:2772:52: error: macro "SCM__DEFINE_SUBR_INT" requires 9 arguments, but only 8 given
/usr/lib/gauche-0.9/0.9.3.3/include/gauche/scmconst.h:52: GCC exitted abnormally (at token: *eoi*)
/usr/lib/gauche-0.9/0.9.3.3/include/gauche/scmconst.h:52: #f
/usr/lib/gauche-0.9/0.9.3.3/include/gauche/scmconst.h:52: [bug] lost macro body (at token: *eoi*)
*** ERROR: [bug] lost macro body
Stack Trace:
_______________________________________
  0  (with-error-handler (lambda (e) (let ((e e)) (%guard-rec e e (else ...
        [unknown location]
  1  (#:loop849 (cddr #:args848) #:G850)
        [unknown location]
  2  (with-error-handler (lambda (e) (let ((e e)) (%guard-rec e e (else ...
        [unknown location]
  3  (parse-macro include-dirs headers options)
        At line 1159 of "/usr/share/gauche-0.9/site/lib/c-wrapper/c-parser.scm"
  4  (with-error-handler (lambda (e) (let ((e e)) (%guard-rec e e (else ...
        [unknown location]
  5  (c-parse (if (list? include-dirs) include-dirs (list include-dirs) ...
        At line 105 of "/usr/share/gauche-0.9/site/lib/c-wrapper.scm"

if i remove the broken SCM__DEFINE_SUBR_INT macro i still get the error
"ERROR: [bug] lost macro body"

tried to add some debug output to Scm_ParseMacroCode to get an idea
where the parsing fails, but didn't succeed so far.

There is also a similar bug report for debian where newer system headers
seem to cause problems:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777861

Thanks, for any help.

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
Alessandro | 6 Apr 17:42 2015
Picon

directory-list2 behavior

Hello,

According to the manual the function "directory-list2" returns 2 values (see http://practical-scheme.net/gauche/man/gauche-refe_164.html#Filesystem-utilities),

but I found a strange result, for example by giving in input a directory with 1 file (dirs.scm) and 1 subdirectory (dummy_dir):

$ gosh -V
Gauche scheme shell, version 0.9.4 [utf-8,pthreads], x86_64-unknown-linux-gnu


$ pwd
/home/frog/Devel/Sc/Gauche/test

$ ls -la
total 16
drwxrwxr-x. 3 frog frog 4096 Apr  6 17:12 .
drwxrwxr-x. 9 frog frog 4096 Apr  6 16:58 ..
-rw-rw-r--. 1 frog frog  161 Apr  6 16:57 dirs.scm
drwxrwxr-x. 2 frog frog 4096 Apr  6 17:12 dummy_dir

$ gosh

gosh> (use file.util)
#<undef>

gosh> (define current "/home/frog/Devel/Sc/Gauche/test")  
current

gosh> (display (directory-list current))
(. .. dirs.scm dummy_dir)#<undef>

gosh> (display (directory-list2 current))
(. .. dummy_dir)#<undef>

maybe I used it wrongly or misunderstood the manual ?

Thank you in advance for the feedback.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Duy Nguyen | 3 Apr 07:10 2015
Picon

IPv6 detection on Raspberry Pi

I tried to run gauche-makiki and got this

$ gosh -I. examples/minimal.scm
*** SYSTEM-ERROR: couldn't create socket: Address family not supported
by protocol
Stack Trace:
_______________________________________
  0  (make-server-sockets host port :reuse-addr? #t)
        At line 510 of "./makiki.scm"

strace says this happens when PF_INET6 is used, and ipv6-capable in
gauche.net is #t so it's probably it. Perhaps there's a better way to
detect this? Or any workaround so I can run makiki without changing
it?
--

-- 
Duy

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
JP T | 26 Mar 16:12 2015
Picon

with-post-parameters hang

Hi all,

I have a little problem that I dont really know how to solve.

Using (with-post-parameters ..) in Makiki, it hang undefinitelly or
until the client time-out.

Is this a gauche/Makiki problem or is it something in my own system?

[Using the latest Makiki /  Gauche 0.9.4  /  Linux Mint 17.1]

Thank you

--
Jean-Philippe
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Jens Thiele | 7 Mar 10:06 2015
Picon

FYI: debian bugs #779949 and #774886

Hi,

didn't check wether it applies to current gauche git / just to make sure
the work done by James Cowgill isn't "lost".

Bug #779949: gauche: possible data race around PORT_UNLOCK
https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=779949

Bug #774886: gauche: update libatomic-ops for mips64el
https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=774886

Greetings,
jens

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
JP T | 24 Feb 16:14 2015
Picon

base64 encode and :url-safe

Hi,

Using 0.9.3.3

The gauche manual mention the :url-safe? keyword argument for base64_encode.

Function: base64-encode :key line-width url-safe

However I got error

*** ERROR: unknown keyword :url-safe?
Stack Trace:
_______________________________________
  0  (errorf "unknown keyword ~S" (car #:args4))
        [unknown location]

And when I check in .../rfc/base64.scm i only see  a :line-width keyword

(define (base64-encode :key (line-width 76))...

and no such thing as :url-safe?

Is this a mistake or is the doc for a newer version of gauche (or the
base64 lib) than the one I have?

Thank you!

--
JP Theberge

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Duy Nguyen | 1 Feb 11:16 2015
Picon

Dump stack trace of a hanging thread?

I have a thread handling I/O from network. If it calculates packet
length incorrectly, it may expect more data than what the server
actually sends and could wait forever (or long enough). Is there any
way to dump the stack trace of that thread to determine where it
hangs? I have a remote repl running on another thread to examine data,
if it helps.
--

-- 
Duy

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Seth Alves | 16 Dec 21:12 2014

srfi-25 import error

I get an error when I try to import srfi-25:

$ ./gauche-srfi-25.scm *** ERROR: cannot find "srfi-25" in 
("/usr/local/share/gauche-0.9/site/lib" 
"/usr/local/share/gauche-0.9/0.9.5_pre1/lib" 
"/usr/local/share/gauche/site/lib" "/usr/local/share/gauche/0.9/lib")
     While compiling 
"/usr/local/share/gauche-0.9/0.9.5_pre1/lib/srfi/25.scm" at line 2: 
(define-module srfi.25 (extend srfi-25))
     While loading 
"/usr/local/share/gauche-0.9/0.9.5_pre1/lib/srfi/25.scm" at line 2
     While compiling "././gauche-srfi-25.scm" at line 6: (import (scheme 
base) (scheme write) (srfi 25))
     While loading "././gauche-srfi-25.scm" at line 8
Stack Trace:
_______________________________________

Attachment (gauche-srfi-25.scm): text/x-scheme, 136 bytes
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel

Gmane