barryk Junior Member
  member is offline
Joined: May 2010 Gender: Male  Posts: 79 Karma: 0 |  | Cannot compile 1.0.21 bacon.bac « Thread Started on Mar 5, 2011, 10:03am » | |
First I tried to compile bacon.bac with my "1.0.21pre" that I had compiled a couple of weeks ago. Got compile errors.
So, I downloaded 1.0.21 bacon.bash, and I have /bin/bash v4, ran
./bacon.bash bacon.bac
And it stopped with this error message (repeated many times):
./bacon.bash: line 5176: [[: ./bacon.bac.Handle_Readln.tmp: syntax error: operand expected (error token is "./bacon.bac.Handle_Readln.tmp")
Regards, Barry Kauler
| |
|
barryk Junior Member
  member is offline
Joined: May 2010 Gender: Male  Posts: 79 Karma: 0 |  | Re: Cannot compile 1.0.21 bacon.bac « Reply #1 on Mar 5, 2011, 10:08am » | |
If I try to compile with my 1.0.21pre binary, get this:
# bacon bacon.bac
Starting conversion... 787
Starting conversion... done. Starting compilation... Compiler emits messages!
...those messages are same as previous post.
Regards, Barry Kauler
| |
|
vovchik Senior Member
    member is offline
Joined: Apr 2010 Gender: Male  Posts: 358 Karma: 6 |  | Re: Cannot compile 1.0.21 bacon.bac « Reply #2 on Mar 5, 2011, 10:22am » | |
Dear Barry,
I compiled the latest release with my pre121 beta and it compiled fine on Puppy and Mac OSX. Are you certain something did not happen during the download of the source? Try getting the source again with wget (wget http://basic-converter.org/bacon.bac). Weird....
With kind regards, vovchik
| |
|
barryk Junior Member
  member is offline
Joined: May 2010 Gender: Male  Posts: 79 Karma: 0 |  | Re: Cannot compile 1.0.21 bacon.bac « Reply #3 on Mar 5, 2011, 10:41am » | |
Well, well, I ran wget as you suggested, and my previous bacon.bac was smaller. So, yes, it was an incomplete download, which is interesting as I used the 'fetch' utility, which downloaded many files and did not give any error messages (that I saw). I might not use 'fetch' in the future!
Downloading bacon.bac properly, it compiles. Thanks for that.
| |
|
Pjot Administrator
     member is offline
![[avatar] [avatar]](http://www.turtle.dds.nl/personal/wapen64.png)
![[icq] [icq]](http://images.proboards.com/icq.gif)
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Apr 2010 Gender: Male  Posts: 938 Location: The Hague, The Netherlands Karma: 9 |  | Re: Cannot compile 1.0.21 bacon.bac « Reply #4 on Mar 5, 2011, 12:00pm » | |
Hi Barry,
It happened with me last week also, but it appears that my ISP was doing some upgrade on their servers causing the webpage sometimes not to be available for a few seconds.
The 'fetch' tool has no error checking or download recovery, and by default times out after 500 msecs:
Code:total$ = "" REPEAT RECEIVE dat$ FROM mynet IF LEN(dat$) > 0 THEN total$ = CONCAT$(total$, dat$) UNTIL ISFALSE(WAIT(mynet, 500))
|
|
So this may be too strict.
The 'wget' utility does have error correction and download resumes.
Regards Peter
| |
|
Pjot Administrator
     member is offline
![[avatar] [avatar]](http://www.turtle.dds.nl/personal/wapen64.png)
![[icq] [icq]](http://images.proboards.com/icq.gif)
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Apr 2010 Gender: Male  Posts: 938 Location: The Hague, The Netherlands Karma: 9 |  | Re: Cannot compile 1.0.21 bacon.bac « Reply #5 on Mar 5, 2011, 3:36pm » | |
So I have improved the 'fetch' program. Each first HTTP response mentions the size of the data to be downloaded. The 'fetch' utility now will crosscheck this information with the actual resulting filesize. If these does not match, it will try to download again, to a maximum of 3 times. If after 3 times the file cannot be downloaded, a warning is displayed and the file will be skipped.
New program is here.
Hopefully this will resolve any download issues.
Regards Peter
| |
|
barryk Junior Member
  member is offline
Joined: May 2010 Gender: Male  Posts: 79 Karma: 0 |  | Re: Cannot compile 1.0.21 bacon.bac « Reply #6 on Mar 7, 2011, 10:43am » | |
Peter, Thanks for fixing fetch!
| |
|