Build Parrot with MinGW, MSYS and MSYS-DTK

From perl6.cz

Start with Build Parrot with MinGW.

  • Last verified: 5.4.2005
  • Too buggy now.

Contents

Prepare MSYS/MinGW environment

#Win32_Path		Mount_Point
C:/MinGW 		/mingw

Configure, Build, Test and Install

export PATH=$PATH:/c/usr/lib/icu/bin:/c/usr/lib/icu/lib:/mingw/lib
cd /c/usr/parrot
perl Configure.pl --nomanicheck --cc=gcc --icushared="/c/usr/lib/icu/lib/icudt.lib /c/usr/lib/icu/lib/icuuc.lib" --icuheaders="/c/usr/lib/icu/include" --icudatadir="/c/usr/lib/icu/data" $@
make

error - error:imcc:No such file or directory

  • solution: ?
  • experimental solution:
cp runtime/parrot/include/interpinfo.pasm ./
  • ./parrot.exe -o runtime/parrot/include/parrotlib.pbc runtime/parrot/library/parrotlib.imc
error:imcc:No such file or directory
in file 'runtime/parrot/library/parrotlib.imc' line 187

error - partial link tcl_group.dll failed (256)

  • solution: ?
  • debugging: see '"/msys/bin/perlld"' line 22 and 23 ('#my $DEBUG ="./perlld.out";', ...)
  • experimental solution: edit "'dynclasses\build.pl'"
our $LIBPARROT = qq[../src/pmc.o ../src/extend.o ../src/string.o ../src/inter_run.o ../src/string_primitives.o  /c/usr/lib/icu/lib/icudata.lib /c/usr/lib/icu/lib/icuuc.lib ../blib/lib/libparrot.a /mingw/lib/libwsock32.a];
  • make

Test

make test 2>&1 | tee _test_output.txt

Install

make install
which parrot
cd /usr/local/parrot-0.2.0-devel
parrot ./example/...
  • see "C:\msys\local\parrot-0.2.0-devel"

Ignore this (Search engine keywords)

  • run Configure.pl with parameter --libs="/mingw/lib/libwsock32.a"
    • In function `PIO_sockaddr_in':
    • undefined reference to `inet_addr@4'
    • undefined reference to `gethostbyname@4'
    • undefined reference to `htons@4'
  • save ld2 to "'c:\msys\bin'"
    • make: ld2: Command not found
    • partial link tcl_group.dll failed (-1)
    • partial link tcl_group.dll failed (256)
  • edit /dynclasses/build.pl, see above
    • In function `Parrot_PMC_get_cstring_intkey':
    • undefined reference to `string_to_cstring'
    • undefined reference to `pmc_register'
  •  ???
    • dllwrap.exe: no export definition file provided
Personal tools
Language