(none) 
Author Message
 (none)

Newsgroups: comp.lang.perl.moderated
Path: chl

Subject: Bytecode compiler problems

X-Newsreader: NN version 6.5.2 (NOV)
Date: Wed, 19 May 1999 10:34:16 GMT
Lines: 69

Using Perl 5.005_02 on sun4-solaris (but the doco on _03 does not suggest
anything relevant to my problem has changed).

More to the point, I downloaded ready-compiled from www.sunfreeware.com,
so it is quite possible they had mis-configured before compiling.

Anyway, to the problem:

chl% perl -MO=Bytecode
print "Hello World!\n";
- syntax OK

Undefined subroutine &B::Asmdata::PUT_svindex called at
/usr/local/lib/perl5/5.00502/sun4-solaris/B/Assembler.pm line 173,
<_GEN_0> chunk 11.
END failed--cleanup aborted, <_GEN_0> chunk 11.

And indeed PUT_svindex is missing from B::Asmdata. But I see that Asmdata
is auto-generated from bytecode.pl (which I have not got) which leads me
to suspect a configuration problem (surely Malcolm Beattie never let it
out with a bug that simple!).

So I would be grateful if people could check that example on their
systems, and perhaps email me a working B::Asmdata (or bytecode.pl).

Now to thicken the plot :-(

There are various other problems, but the above seems to be the
fundamental one. It I run the same thing with "perl -w" I get lots of
warnings:

chl% perl -w -MO=Bytecode
print "Hello World!\n";
- syntax OK
Use of uninitialized value at
/usr/local/lib/perl5/5.00502/sun4-solaris/B.pm line 194.
Use of uninitialized value at
/usr/local/lib/perl5/5.00502/sun4-solaris/B.pm line 194.

[zillions of times]

Undefined value assigned to typeglob at
/usr/local/lib/perl5/5.00502/sun4-solaris/B.pm line 192.

[and a couple more of those, and more of the first one]

[and finally, as before]

Undefined subroutine &B::Asmdata::PUT_svindex called at
....

However, I would prefer to fix one problem at a time, and evidence
gathered using C instead of Bytecode suggests that the corresponding
warnings in that case are harmless (indeed, with more complex programs I
get lots of warnings using C, but the program still runs).

--
Charles H. Lindsey ---------At Home, doing my own thing------------------------

Voice/Fax: +44 161 437 4506      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9     Fingerprint: 73 6D C2 51 93 A0 01 E7  65 E8 64 7E 14 A4 AB A5



Sun, 04 Nov 2001 03:00:00 GMT  
 (none)

+-----
| chl% perl -MO=Bytecode
| print "Hello World!\n";
| - syntax OK
|
| Undefined subroutine &B::Asmdata::PUT_svindex called at
| /usr/local/lib/perl5/5.00502/sun4-solaris/B/Assembler.pm line 173,
| <_GEN_0> chunk 11.
| END failed--cleanup aborted, <_GEN_0> chunk 11.
+--->8

I see this with our build of perl5.00502, but not with perl5.00503.  Upgrade.

--


carnegie mellon / electrical and computer engineering                    KF8NH
                          Kiss my bits, Billy-boy.



Thu, 08 Nov 2001 03:00:00 GMT  
 (none)
[A complimentary Cc of this posting was sent to Charles Lindsey


Quote:
> And indeed PUT_svindex is missing from B::Asmdata. But I see that Asmdata
> is auto-generated from bytecode.pl (which I have not got) which leads me
> to suspect a configuration problem (surely Malcolm Beattie never let it
> out with a bug that simple!).

Apparently Malcolm sank under his current workload.  Most changes to
compiler(s) are made by Vishal Bhatia now.  Say a million of thanks to
him if you use this stuff.

Hope this helps,
Ilya



Thu, 08 Nov 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. (none)

2. (none)

3. (none)

4. None

5. None

6. None

7. None

8. None

9. None

10. Symbol referencing errors in IO.none on Solaris 2.5 install

11. None

12. (none)

 

 
Powered by phpBB® Forum Software