The BAsic CONverter Forum
« Cannot compile 1.0.21 bacon.bac »

Welcome Guest. Please Login or Register.
May 24, 2013, 3:59pm




The BAsic CONverter Forum :: General :: Bugs, features :: Cannot compile 1.0.21 bacon.bac
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Cannot compile 1.0.21 bacon.bac (Read 1,012 times)
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
Link to Post - Back to Top  IP: Logged
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
« Last Edit: Mar 5, 2011, 10:13am by barryk »Link to Post - Back to Top  IP: Logged
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
Link to Post - Back to Top  IP: Logged
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.

Link to Post - Back to Top  IP: Logged
Pjot
Administrator
*****
member is offline

[avatar]

[icq]
[homepage]

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
Link to Post - Back to Top  IP: Logged
Pjot
Administrator
*****
member is offline

[avatar]

[icq]
[homepage]

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
Link to Post - Back to Top  IP: Logged
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!
Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile