Argons / bher

Automatically exported from code.google.com/p/bher
0 stars 0 forks source link

bher command line issue Ubuntu 64bit #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed bher on ubuntu 12.04 LTS 64bit.
2. Try to execute the attached file test.church.
3. An error is thrown up that isn't thrown up that isn't seen when using 
ChurchServ i.e. the same code works on ChurchServ 
http://projects.csail.mit.edu/church/wiki/Installing_Bher.

What is the expected output? 
(a b c d a b c d a b c e a b c d a b c d a b c d a b c d a b c e a b c d a b c 
d a b c e a b c d a b c d a b c e a b c d a b c e a b c d a b c e a b c e a b c 
e a b c e a b c e a b c e a b c d a b c e a b c d a b c d a b c e a b c d a b c 
d a b c d a b c d a b c e a b c d a b c e a b c d a b c e a b c d a b c d a b c 
d a b c e a b c d a b c e a b c e a b c d a b c e a b c e a b c d a b c d a b c 
e a b c d a b c e a b c e a b c d a b c e a b c d a b c d a b c e a b c d a b c 
e a b c e a b c d a b c d a b c e a b c e a b c e a b c e a b c e a b c e a b c 
d a b c d a b c e a b c e a b c e a b c e a b c e a b c d a b c e a b c e a b c 
d a b c d a b c d a b c e a b c d a b c e a b c e a b c e a b c d a b c d a b c 
d a b c d a b c e a b c e a b c d a b c d a b c e a b c d a b c d a b c e a b c 
e)

What do you see instead?
Unhandled exception:
 Condition components:
   1. &who: void
   2. &message: "unbound identifier"
   3. &undefined
   4. &source-position:
       file-name: "/home/louis/Dropbox/Private/CognitiveModelling/Project/test.church.ss"
       character: 9640
   5. &trace: #<syntax void [char 9640 of /home/louis/Dropbox/Private/CognitiveModelling/Project/test.church.ss]>
command failed:
vicare  --r6rs-script 
'/home/louis/Dropbox/Private/CognitiveModelling/Project/test.church.ss

What version of the product are you using? 

The latest linked to on the Church website see 
http://projects.csail.mit.edu/church/wiki/Installing_Bher

On what operating system?

ubuntu 12.04 LTS 64bit

Please provide any additional information below.

Original issue reported on code.google.com by Snagabl...@gmail.com on 29 May 2012 at 8:13

Attachments:

GoogleCodeExporter commented 9 years ago
Add the following line to bher/scheme-compilers/header-vicare.sc:
(define (void) (set! void void))

That (void) is undefined is a consequence of calling vicare with --r6rs-script. 

Without it, (void) is defined, i.e., the default interaction environment 
includes it, but not the r6rs base environment.

A portable conditional definition is somewhere between nontrivial and 
impossible in Scheme (i.e., provide a definition for void only if not already 
provided...)

https://groups.google.com/forum/#!topic/ikarus-users/tP3wxQYKn3I

Original comment by william.cushing@gmail.com on 19 Sep 2013 at 7:04