I'm having trouble with the initial Configure.pl and with the pbc_to_c
target on my Intel Macbook.  I have rough notes below about the steps
I've taken.  If anyone needs more information, just ask and I'd be
happy to send anything I can.

Following the instructions in chromatic's post at use.perl about
building a Perl 6 binary:

  http://use.perl.org/article.pl?sid=07/12/30/0912211

I got this error on the latest version from svn:

  parrot $ perl Configure.pl
  Base class package "Parrot::Configure::Compiler" is empty.
      (Perhaps you need to 'use' the module which defines that package
first.) 
  at lib/Parrot/Configure.pm line 44

chromatic recommended that I check out r24278, which I did with a clean
install (blew everything away and started over), and I tried again. 
Here's a summary:

  Checked out revision 24278.
  code $ cd parrot/
  parrot $ perl Configure.pl 
  Parrot Version 0.5.1 Configure 2.0
  Copyright (C) 2001-2007, The Perl Foundation.

  ... snip ...

  Checking MANIFEST...No such file: t/configure/104-init_miniparrot.t
  No such file: t/configure/106-init_headers.t
  No such file: t/configure/122-auto_ops.t
  No such file: t/configure/128-auto_va_ptr.t
  No such file: t/configure/144-auto_readline.t
  No such file: t/configure/148-auto_python.t
  No such file: t/configure/149-auto_m4.t
  No such file: t/configure/152-auto_revision.t
  No such file: t/configure/153-gen_icu.t
  No such file: t/configure/154-gen_config_h.t
  No such file: t/configure/155-gen_core_pmcs.t
  No such file: t/configure/156-gen_parrot_include.t
  No such file: t/configure/157-gen_languages.t
  No such file: t/configure/159-gen_platform.t

  Ack, some files were missing!  I can't continue running
  without everything here.  Please try to find the above
  files and then try running Configure again.

  step init::manifest failed: no result returned at Configure.pl line
349

  Setting up Configure's default
values.................................done.

  ... snip ...

  Recording configuration data for later
retrieval......................done.
  During configuration the following steps failed:
      01:  init::manifest
  You should diagnose and fix these errors before calling 'make'
  parrot $

And later, the "make pbc_to_c" step fails with:

  compilation failed
  current instr.: '_throw' pc 438 (pbc_to_c.pir:250)
  called from Sub 'compile_file' pc 485 (pbc_to_c.pir:268)
  called from Sub 'main' pc 126 (pbc_to_c.pir:29)
  make: *** [pbc_to_c] Error 1

(More detailed error message below).

Cheers,
Ovid

parrot $ make pbc_to_c
perl tools/dev/pbc_to_c_gen.pl \
    './CFLAGS cc "" -I./include -g -pipe -fno-common -no-cpp-precomp 
-I/usr/local/include -pipe -fno-common -Wno-long-double 
-DHASATTRIBUTE_CONST  -DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_FORMAT 
-DHASATTRIBUTE_MALLOC  -DHASATTRIBUTE_NONNULL  -DHASATTRIBUTE_NORETURN 
-DHASATTRIBUTE_PURE  -DHASATTRIBUTE_UNUSED 
-DHASATTRIBUTE_WARN_UNUSED_RESULT  -falign-functions=16
-mno-accumulate-outgoing-args -W -Wall -Waggregate-return
-Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts
-Wcomment -Wdeclaration-after-statement -Wdisabled-optimization -Wextra
-Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit
-Wimplicit-function-declaration -Wimplicit-int -Wimport -Winit-self
-Winline -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-declarations
-Wmissing-field-initializers -Wmissing-include-dirs
-Wmissing-prototypes -Wnested-externs -Wno-endif-labels -Wno-shadow
-Wno-unused -Wnonnull -Wpacked -Wparentheses -Wpointer-arith
-Wreturn-type -Wsequence-point -Wsign-compare -Wstrict-aliasing
-Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef
-Wunknown-pragmas -Wvariadic-macros -Wwrite-strings
-I/opt/local/include -g -Wno-shadow  -DHAVE_COMPUTED_GOTO   -I. -o  \
-o   blib/lib/libparrot.a  -lm -lreadline -L/usr/local/lib
-L/opt/local/lib  ' \
    > pbc_to_c.pir
./parrot -o pbc_to_c.pbc pbc_to_c.pir
./parrot pbc_to_c.pir pbc_to_c.pbc
/usr/bin/ld: Undefined symbols:
_PackFile_fixup_subs
_PackFile_new
_PackFile_unpack
_Parrot_destroy
_Parrot_exit
_Parrot_loadbc
_Parrot_new
_Parrot_runcode
_do_sub_pragmas
collect2: ld returned 1 exit status
cc -I./include -g -pipe -fno-common -no-cpp-precomp
-I/usr/local/include -pipe -fno-common -Wno-long-double
-DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_FORMAT
-DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
-DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT -falign-functions=16
-mno-accumulate-outgoing-args -W -Wall -Waggregate-return
-Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts
-Wcomment -Wdeclaration-after-statement -Wdisabled-optimization -Wextra
-Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit
-Wimplicit-function-declaration -Wimplicit-int -Wimport -Winit-self
-Winline -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-declarations
-Wmissing-field-initializers -Wmissing-include-dirs
-Wmissing-prototypes -Wnested-externs -Wno-endif-labels -Wno-shadow
-Wno-unused -Wnonnull -Wpacked -Wparentheses -Wpointer-arith
-Wreturn-type -Wsequence-point -Wsign-compare -Wstrict-aliasing
-Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef
-Wunknown-pragmas -Wvariadic-macros -Wwrite-strings
-I/opt/local/include -g -Wno-shadow -DHAVE_COMPUTED_GOTO -I. -o -o
blib/lib/libparrot.a -lm -lreadline -L/usr/local/lib -L/opt/local/lib
pbc_to_c.c -o pbc_to_c
compilation failed
current instr.: '_throw' pc 438 (pbc_to_c.pir:250)
called from Sub 'compile_file' pc 485 (pbc_to_c.pir:268)
called from Sub 'main' pc 126 (pbc_to_c.pir:29)
make: *** [pbc_to_c] Error 1
parrot $

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/

Reply via email to