Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 31 Oct 2014, 04:31
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
BaCon
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
newphil82

Joined: 19 Feb 2013
Posts: 8

PostPosted: Tue 19 Feb 2013, 04:03    Post_subject:  BaCon
Sub_title: Converts OK but compile error.
 

I'm (obviously) a newbie: I can get my demo.bac converted but the compiler goes:-
cc: error trying to exec '/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/as': execv: Input/output error

I've tried making lots of room - no good. What am I doing wrong? ... Phil
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2536
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Fri 22 Feb 2013, 15:00    Post_subject: Re: BaCon
Sub_title: Converts OK but compile error.
 

newphil82 wrote:
...What am I doing wrong? ... Phil


I have bacon but not your demo.bac
So attaching or posting it here could help. Wink

----

edited

..and some reading too
http://bkhome.org/bacon/ Laughing

Edited_time_total
Back to top
View user's profile Send_private_message 
6502coder

Joined: 23 Mar 2009
Posts: 101
Location: Western United States

PostPosted: Fri 22 Feb 2013, 23:19    Post_subject: BaCon  

Not knowing anything about your setup or degree of experiece, I'd start with the basics:

1. Are you sure your C compiler setup is OK? Can you compile a simple "Hello, world" program?

2. Have you tried just compiling a simple one-liner program in BaCon just to make sure that your BaCon setup is OK?

3. Are you compiling from the command line, or you compiling from within an IDE?

4. What version of Puppy are you running?
Back to top
View user's profile Send_private_message 
newphil82

Joined: 19 Feb 2013
Posts: 8

PostPosted: Sat 23 Feb 2013, 08:17    Post_subject: Re: BaCon
Sub_title: converts but doesn't compile
 

6502coder wrote:
Not knowing anything about your setup or degree of experiece, I'd start with the basics:

1. Are you sure your C compiler setup is OK? Can you compile a simple "Hello, world" program?

2. Have you tried just compiling a simple one-liner program in BaCon just to make sure that your BaCon setup is OK?

3. Are you compiling from the command line, or you compiling from within an IDE?

4. What version of Puppy are you running?

-------------
Thanks for your reply.
I imagined that as my demo prog was just pasted from documentation and converted OK, it wasn't a BaCon language hiccup.

I've just started with Slacko Puppy. I manged to download the devx-slacko file and I got Puppy's boot manager to use it, I think. (BaCon now appears in the Puppy filesystem.) This sfs file is supposed to have everything BaCon needs? I've programmed before but not with C. I've found my real gcc etc in the system using Puppy file utilities, and I suspect that BaCon is looking for it in the wrong path, hence the input/output error. I can't find out how bacon.bash is supposed to be given the path -- I guess it's all somewhere in the devx-xlacko ...sfs file! Cheers, Phil
Back to top
View user's profile Send_private_message 
newphil82

Joined: 19 Feb 2013
Posts: 8

PostPosted: Sat 23 Feb 2013, 14:56    Post_subject: BaCon
Sub_title: BaCon converts but doesn't compile
 

With apologies! More on 'BaCon converts but won't compile': using Slacko Puppy with the right devx apparently loaded OK.--

Compiler couldn't use 'as' (input'output error) I found my assembler at /usr/bin/as and its x permissions seemed OK.

If I type: gcc -B /usr/bin/ hi.bac.c then I get input/output error at /usr/bin/as instead of the LONG path in the earlier msg -- as if 'as' had no permission??? Is the 'as' file dodgy in some way?

I'll paste the hi.bac file in since there was a question about it:-
-------------

' BaCon / HUG Hello World

INCLUDE "/usr/share/BaCon/hug_imports.bac"
INIT

Mainwin = WINDOW( "hi from Crusty", 250, 100 )
My_label = MARK( "Hello Sardines!", 150, 30 )
ATTACH( Mainwin, My_label, 50, 20 )

My_btn = BUTTON( "I'm done", 80, 25)
ATTACH( Mainwin, My_btn, 85, 60 )

CALLBACK( My_btn, QUIT)

My_chk = CHECK( "Nada", 50, 25 )
ATTACH( Mainwin, My_chk, 175, 60 )

DISPLAY
------------------
Sorry if I'm being a pain! Phil
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2536
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sat 23 Feb 2013, 15:14    Post_subject: Re: BaCon
Sub_title: BaCon converts but doesn't compile
 

newphil82 wrote:
...If I type: gcc -B /usr/bin/ hi.bac.c then I get input/output error at /usr/bin/as instead of the LONG path in the earlier msg -- as if 'as' had no permission??? Is the 'as' file dodgy in some way?
...
Thus do not type: : gcc -B /usr/bin/ hi.bac.c

type: bacon hi.bac
and then
./hi

my console wrote:
# bacon hi.bac
Converting 'hi.bac'... done.
Compiling 'hi.bac'... done.
Program 'hi' ready.
# ./hi
capture18302.png
 Description   
 Filesize   4.48 KB
 Viewed   748 Time(s)

capture18302.png

Back to top
View user's profile Send_private_message 
newphil82

Joined: 19 Feb 2013
Posts: 8

PostPosted: Sun 24 Feb 2013, 11:44    Post_subject: BaCon
Sub_title: Converts but won't complie
 

My hi.bac has developed a problem now! I'll check it later.
! Oh dear! So I used hug.bac (also lifted out of the documentation).

Similar to your tip, I typed bacon hug.bac ---- got "input/output error'
I tried bash bacon.bash hug.bac and got lots of convertor messages, ending:

Converting 'hug.bac'... 2696
Converting 'hug.bac'... done.
Compiling 'hug.bac'... Compiler emits messages!

cc: error trying to exec '/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/as': execv: Input/output error

This was like what I was reporting at the start. Converts OK ... You can see why I wondered about the 'as' file. (But I'm probably being thick!! I can hardly type today!) I'm just using the system as Slacko Puppy and its .devx ..sfs file made it, as far as I can see.
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2536
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sun 24 Feb 2013, 15:07    Post_subject: Re: BaCon
Sub_title: Converts but won't complie
 

newphil82 wrote:
... I typed bacon hug.bac ---- got "input/output error'
...


I am in slacko 5.4 now

Code:
# bacon hug.bac
Converting 'hug.bac'... done.
Compiling 'hug.bac'... done.
Program 'hug' ready.
#

Something seems to be wrong with your installation.
Suggest you reload devx_slacko...
Back to top
View user's profile Send_private_message 
newphil82

Joined: 19 Feb 2013
Posts: 8

PostPosted: Tue 26 Feb 2013, 03:53    Post_subject: BaCon
Sub_title: Converts but won't compile
 

Thanks for advice, L18L - I checked my devx .. I confess I didn't often check md5sums!

I d'loaded a 'fresh' Slacko 5.4 iso and devx from ibiblio (slow)
Ditto from nluug (Netherlands) - much faster.
The nluug devx gave me the "wrong" md5sum. - I tried again, got the same "wrong" md5sum. All the other md5sums were OK.

Would it be worth some more experienced person checking up on the download? It might be significant, or it might (??) be some fault at my end..

I haven't got clear yet how it affects my BaCon. First go, neither version solves the prob. Work in progress!!
Back to top
View user's profile Send_private_message 
newphil82

Joined: 19 Feb 2013
Posts: 8

PostPosted: Wed 27 Feb 2013, 07:10    Post_subject: BaCon
Sub_title: Converts but won't compile, sort of SOLVED.
 

I'm in love with Puppy!! What other OS would let me do what I did yesterday, all for free!

I got a tip that Wary would help. So I d'loaded the Wary devx and iso (from the slow website. I had some tea while it came down!) and did the drill. I'm still a clueless newbie - I don't really get it - but, no difficulty ... "Wary BaCon" is now eating out of my hand, if you get my meaning, making me feel really happy! I do appreciate the friendly advice.

I'd love to know what the trouble was, but you can't have everything.
Back to top
View user's profile Send_private_message 
newphil82

Joined: 19 Feb 2013
Posts: 8

PostPosted: Fri 08 Mar 2013, 06:27    Post_subject: BaCon
Sub_title: converts but doesn't compile FINALLY SOLVED!
 

Sorry to take BaCon fans' time --- Looks like it had nothing at all to do with BaCon. It seems to have been local trouble with file 'as' : I got input/output error by just going 'md5sum as' (nluug version). md5sum was OK with 'wary' version -- and, later with Slacko version from ibiblio. FIND A GOOD D'LOAD SITE AND STICK TO IT!

Complete clean start, (everything from ibiblio) - Slacko is now being a Good Dog as well as Wary!!!

Lovely to be able to 'spring-clean' so freely and easily!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0938s ][ Queries: 13 (0.0274s) ][ GZIP on ]