building Parrot and Parrot::Embed

Gabor Szabo szabgab at gmail.com
Sat Oct 4 09:23:41 UTC 2008


I have just tried to build Parrot using r31612 on Ubuntu linux
and got the following error.
Then I tried to build Parrot::Embed.
There were some warning during the Build phase and the test totally failed.
How can I try to use Parrot embedded in Perl5?

Gabor



t/codingstd/c_parens.....................1/3
#   Failed test 'there should be at least one space between a C
# keyword and any subsequent open parenthesis
# '
#   at t/codingstd/c_parens.t line 111.
#          got:
'/home/gabor/work/parrot/languages/pipp/src/pmc/phparray.pmc: while(
# /home/gabor/work/parrot/languages/pipp/src/pmc/phparray.pmc: while('
#     expected: ''
# Looks like you failed 1 test of 3.
t/codingstd/c_parens..................... Dubious, test returned 1
(wstat 256, 0x100)
 Failed 1/3 subtests




gabor at notebook:~/work/parrot$ cd ext/Parrot-Embed/
gabor at notebook:~/work/parrot/ext/Parrot-Embed$ perl Build.PL
Creating custom builder _build/lib/MyModuleBuilder.pm in _build/lib
Checking whether your kit is complete...
WARNING: the following files are missing in your kit:
	META.yml
Please inform the author.

Checking prerequisites...
Looks good

Creating new 'Build' script for 'Parrot-Embed' version '0.02'
gabor at notebook:~/work/parrot/ext/Parrot-Embed$ ./Build
Copying lib/Parrot/Interpreter.pm -> blib/lib/Parrot/Interpreter.pm
Copying lib/Parrot/PMC.pm -> blib/lib/Parrot/PMC.pm
Copying lib/Parrot/Embed.pm -> blib/lib/Parrot/Embed.pm
lib/Parrot/Embed.xs -> lib/Parrot/Embed.c
cc -I/home/gabor/work/parrot/ext/Parrot-Embed/../../include
-I/usr/lib/perl/5.8/CORE -DXS_VERSION="0.02" -DVERSION="0.02" -fPIC
-I/usr/local/include -I../../include -c -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o
lib/Parrot/Embed.o lib/Parrot/Embed.c
In file included from /usr/lib/perl/5.8/CORE/perl.h:37,
                 from lib/Parrot/Embed.xs:6:
/usr/lib/perl/5.8/CORE/config.h:3808:1: warning: "_" redefined
In file included from lib/Parrot/Embed.xs:2:
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/parrot.h:254:1:
warning: this is the location of the previous definition
In file included from lib/Parrot/Embed.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2598:1: warning: "__attribute__malloc__" redefined
In file included from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/register.h:17,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/interpreter.h:140,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/global_setup.h:18,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/parrot.h:275,
                 from lib/Parrot/Embed.xs:2:
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/compiler.h:81:1:
warning: this is the location of the previous definition
In file included from lib/Parrot/Embed.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2601:1: warning:
"__attribute__nonnull__" redefined
In file included from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/register.h:17,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/interpreter.h:140,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/global_setup.h:18,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/parrot.h:275,
                 from lib/Parrot/Embed.xs:2:
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/compiler.h:84:1:
warning: this is the location of the previous definition
In file included from lib/Parrot/Embed.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2604:1: warning:
"__attribute__noreturn__" redefined
In file included from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/register.h:17,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/interpreter.h:140,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/global_setup.h:18,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/parrot.h:275,
                 from lib/Parrot/Embed.xs:2:
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/compiler.h:87:1:
warning: this is the location of the previous definition
In file included from lib/Parrot/Embed.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2607:1: warning: "__attribute__pure__" redefined
In file included from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/register.h:17,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/interpreter.h:140,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/global_setup.h:18,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/parrot.h:275,
                 from lib/Parrot/Embed.xs:2:
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/compiler.h:93:1:
warning: this is the location of the previous definition
In file included from lib/Parrot/Embed.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2610:1: warning: "__attribute__unused__" redefined
In file included from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/register.h:17,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/interpreter.h:140,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/global_setup.h:18,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/parrot.h:275,
                 from lib/Parrot/Embed.xs:2:
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/compiler.h:96:1:
warning: this is the location of the previous definition
In file included from lib/Parrot/Embed.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:2613:1: warning:
"__attribute__warn_unused_result__" redefined
In file included from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/register.h:17,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/interpreter.h:140,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/global_setup.h:18,
                 from
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/parrot.h:275,
                 from lib/Parrot/Embed.xs:2:
/home/gabor/work/parrot/ext/Parrot-Embed/../../include/parrot/compiler.h:99:1:
warning: this is the location of the previous definition
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Parrot/Embed/Embed.bs')
cc -shared -L/usr/local/lib -o blib/arch/auto/Parrot/Embed/Embed.so
lib/Parrot/Embed.o -L/usr/local/lib -lparrot -ldl -lm -lpthread
-lcrypt -lrt -lgmp -lreadline -lcrypto
-L/home/gabor/work/parrot/ext/Parrot-Embed/../../blib/lib
Manifying blib/lib/Parrot/PMC.pm -> blib/libdoc/Parrot::PMC.3pm
Manifying blib/lib/Parrot/Embed.pm -> blib/libdoc/Parrot::Embed.3pm
Manifying blib/lib/Parrot/Interpreter.pm -> blib/libdoc/Parrot::Interpreter.3pm



gabor at notebook:~/work/parrot/ext/Parrot-Embed$ ./Build test
t/00-load.........1/10 Use of inherited AUTOLOAD for non-method
Parrot::Embed::Parrot_revision() is deprecated at t/00-load.t line 14.
Can't locate auto/Parrot/Embed/Parrot_revi.al in @INC (@INC contains:
/home/gabor/work/parrot/ext/Parrot-Embed/blib/lib
/home/gabor/work/parrot/ext/Parrot-Embed/blib/arch
/home/gabor/work/parrot/ext/Parrot-Embed/_build/lib
/home/gabor/perl5lib/lib/i486-linux-gnu-thread-multi
/home/gabor/perl5lib/lib /home/gabor/perl5lib/lib/perl/5.8.8 /etc/perl
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl .) at t/00-load.t line 14
# Looks like you planned 10 tests but only ran 1.
# Looks like your test died just after 1.
t/00-load......... Dubious, test returned 255 (wstat 65280, 0xff00)
 Failed 9/10 subtests
t/interp..........1/26 Parrot VM: Can't stat no file here, code 2.
error:imcc:syntax error, unexpected IDENTIFIER
	in file 'EVAL_2' line 1
t/interp..........ok
t/pod-coverage....ok

Test Summary Report
-------------------
t/00-load     (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 10 tests but ran 1.
Files=3, Tests=30,  1 wallclock secs ( 0.05 usr  0.00 sys +  0.15 cusr
 0.05 csys =  0.25 CPU)
Result: FAIL
Failed 1/3 test programs. 0/30 subtests failed.


More information about the parrot-dev mailing list