Discussion:
Parrot doesn't build on OS X
(too old to reply)
Ovid
2008-11-01 13:26:43 UTC
Permalink
For the past few days, Parrot has failed to build on my MacBook. Today I moved my parrot directory and did a fresh svn checkout. "perl Configure.pl" ran fine without problem. "make" does fine until about here:

$ make
Compiling with:
xx.c
/usr/bin/gcc-4.0 <loads of output skipped...>
make -C compilers/pge
perl -MExtUtils::Command -e rm_f PGE.pbc ../../runtime/parrot/library/PGE.pbc
perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Bus error
make[1]: *** Deleting file `PGE.pbc'
make: *** [compilers.dummy] Error 2

$ uname -a
Darwin curtis-poes-computer-2.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386

Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
Andrew Dougherty
2008-11-01 13:58:40 UTC
Permalink
Post by Ovid
For the past few days, Parrot has failed to build on my MacBook. Today
I moved my parrot directory and did a fresh svn checkout. "perl
Configure.pl" ran fine without problem. "make" does fine until about
$ make
xx.c
/usr/bin/gcc-4.0 <loads of output skipped...>
make -C compilers/pge
perl -MExtUtils::Command -e rm_f PGE.pbc ../../runtime/parrot/library/PGE.pbc
perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Bus error
make[1]: *** Deleting file `PGE.pbc'
make: *** [compilers.dummy] Error 2
Two things to try:

1. Post the 'myconfig' file -- it contains various bits of
configure and build information.

2. Run the core tests to try to narrow down the problem:

perl t/harness --core-tests
--
Andy Dougherty ***@lafayette.edu
Stephane Payrard
2008-11-01 14:37:39 UTC
Permalink
# New Ticket Created by Stephane Payrard
# Please include the string: [perl #60286]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60286 >


I was preparing a bug report for the same thing so
here it is :

Parrot does not compile on my new 64 bits core 2 duo unibody macbook.
I got back data from the Time Machine backup of my now dead 32 bits
intel macbook so I suspected that the gmp port libraries conflicted
with some headers proper to my macbooc.
So I did un port uninstall gmp, then a port install gmp.

I still get the SIGBUS error.
I suspect I did something wrong as a consequence of restauring my Time Machine
backup but I can't find what.
The top of the stack is :

Thread 0 Crashed:
0 libgmp.3.dylib 0x000442ae __gmpz_cmp + 14
1 libparrot.dylib 0x0085fdee bigint_cmp + 30 (bigint.pmc:224)
2 libparrot.dylib 0x00861a4f
Parrot_BigInt_multi_cmp_BigInt + 31 (bigint.c:1424)
Post by Andrew Dougherty
Post by Ovid
For the past few days, Parrot has failed to build on my MacBook. Today
I moved my parrot directory and did a fresh svn checkout. "perl
Configure.pl" ran fine without problem. "make" does fine until about
$ make
xx.c
/usr/bin/gcc-4.0 <loads of output skipped...>
make -C compilers/pge
perl -MExtUtils::Command -e rm_f PGE.pbc ../../runtime/parrot/library/PGE.pbc
perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Bus error
make[1]: *** Deleting file `PGE.pbc'
make: *** [compilers.dummy] Error 2
1. Post the 'myconfig' file -- it contains various bits of
configure and build information.
perl t/harness --core-tests
--
--
cognominal stef
c***@gmail.com
2009-02-01 09:20:52 UTC
Permalink
Yes, the problem is long gone.

On Sun, Feb 1, 2009 at 1:33 AM, James Keenan via RT
Post by Stephane Payrard
I was preparing a bug report for the same thing so
Parrot does not compile on my new 64 bits core 2 duo unibody macbook.
I got back data from the Time Machine backup of my now dead 32 bits
intel macbook so I suspected that the gmp port libraries conflicted
with some headers proper to my macbooc.
So I did un port uninstall gmp, then a port install gmp.
I still get the SIGBUS error.
I suspect I did something wrong as a consequence of restauring my Time
Machine
backup but I can't find what.
Stéphane: Are you still experiencing this problem? Otherwise, we
should close this RT.
Thank you very much.
--
cognominal stef
James E Keenan
2008-11-01 17:37:39 UTC
Permalink
Post by Ovid
$ make
xx.c
/usr/bin/gcc-4.0 <loads of output skipped...>
make -C compilers/pge
perl -MExtUtils::Command -e rm_f PGE.pbc ../../runtime/parrot/library/PGE.pbc
perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Bus error
make[1]: *** Deleting file `PGE.pbc'
make: *** [compilers.dummy] Error 2
Is this the same problem as being reported in
http://rt.perl.org/rt3/Ticket/Display.html?id=60178 ?
Mark J. Reed
2008-11-01 20:36:57 UTC
Permalink
Trunk or 0.8.0? Trunk builds fine on my iMac running the same Darwin
version you report (leopard 10.5.5).
Post by Ovid
For the past few days, Parrot has failed to build on my MacBook. Today I
moved my parrot directory and did a fresh svn checkout. "perl Configure.pl"
$ make
xx.c
/usr/bin/gcc-4.0 <loads of output skipped...>
make -C compilers/pge
perl -MExtUtils::Command -e rm_f PGE.pbc
../../runtime/parrot/library/PGE.pbc
perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir
--output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Bus error
make[1]: *** Deleting file `PGE.pbc'
make: *** [compilers.dummy] Error 2
$ uname -a
Darwin curtis-poes-computer-2.local 9.5.0 Darwin Kernel Version 9.5.0: Wed
Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
--
Sent from Gmail for mobile | mobile.google.com

Mark J. Reed <***@gmail.com>
c***@gmail.com
2008-11-02 16:37:13 UTC
Permalink
That's trunk, and I did a make real clean
Post by Mark J. Reed
Trunk or 0.8.0? Trunk builds fine on my iMac running the same Darwin
version you report (leopard 10.5.5).
Post by Ovid
For the past few days, Parrot has failed to build on my MacBook. Today I
moved my parrot directory and did a fresh svn checkout. "perl Configure.pl"
$ make
xx.c
/usr/bin/gcc-4.0 <loads of output skipped...>
make -C compilers/pge
perl -MExtUtils::Command -e rm_f PGE.pbc
../../runtime/parrot/library/PGE.pbc
perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir
--output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Bus error
make[1]: *** Deleting file `PGE.pbc'
make: *** [compilers.dummy] Error 2
$ uname -a
Darwin curtis-poes-computer-2.local 9.5.0 Darwin Kernel Version 9.5.0: Wed
Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
--
Sent from Gmail for mobile | mobile.google.com
--
cognominal stef
Stéphane Payrard
2008-11-05 19:36:22 UTC
Permalink
rakudo now builds correctly. btw : the subject is wrong. I did not
notice because
I use a script to get the last trunk, build parrot and rakudo.
Post by c***@gmail.com
That's trunk, and I did a make real clean
Post by Mark J. Reed
Trunk or 0.8.0? Trunk builds fine on my iMac running the same Darwin
version you report (leopard 10.5.5).
Post by Ovid
For the past few days, Parrot has failed to build on my MacBook. Today I
moved my parrot directory and did a fresh svn checkout. "perl Configure.pl"
$ make
xx.c
/usr/bin/gcc-4.0 <loads of output skipped...>
make -C compilers/pge
perl -MExtUtils::Command -e rm_f PGE.pbc
../../runtime/parrot/library/PGE.pbc
perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir
--output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Bus error
make[1]: *** Deleting file `PGE.pbc'
make: *** [compilers.dummy] Error 2
$ uname -a
Darwin curtis-poes-computer-2.local 9.5.0 Darwin Kernel Version 9.5.0: Wed
Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
--
Sent from Gmail for mobile | mobile.google.com
--
cognominal stef
--
cognominal stef
Andy Dougherty
2008-11-03 00:48:59 UTC
Permalink
Post by Mark J. Reed
Trunk or 0.8.0? Trunk builds fine on my iMac running the same Darwin
version you report (leopard 10.5.5).
There are also other issues to consider: What libraries are in use?
[e.g. there is speculation that it may be a libgmp issue]. What
compiler options were given? All this information, and more, is given in
the 'myconfig' file. Attaching that to the problem report would likely be
useful.

Also, running the core tests might help pinpoint the problem.
--
Andy Dougherty ***@lafayette.edu
Andy Bach
2008-11-03 02:46:31 UTC
Permalink
Just a data point - fresh svn on a Macbook pro x86 fails r3205:
c++ -o dan_ops_switch.bundle dan_ops_switch.o -L/usr/local/lib
-L/usr/share/cvs/afbach/parrot/blib/lib
-L/usr/share/cvs/afbach/parrot/blib/lib -undefined dynamic_lookup -bundle
-L/usr/share/cvs/afbach/parrot/blib/lib -lparrot
make -C compilers/pct
../../parrot -o ../../runtime/parrot/library/PCT.pbc --output-pbc PCT.pir
../../parrot -o ../../runtime/parrot/library/PCT/PAST.pbc --output-pbc
src/PAST.pir
../../parrot -o ../../runtime/parrot/library/PCT/Grammar.pbc --output-pbc
src/PCT/Grammar.pir
../../parrot -o ../../runtime/parrot/library/PCT/HLLCompiler.pbc
--output-pbc src/PCT/HLLCompiler.pir
make -C compilers/pge
perl -MExtUtils::Command -e rm_f PGE.pbc
../../runtime/parrot/library/PGE.pbc
perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir
--output=PGE/builtins_gen.pir PGE/builtins.pg
no bigint lib loaded
current instr.: 'parrot;PGE;Match;text' pc 426
(compilers/pge/PGE/Match.pir:273)
called from Sub 'parrot;PGE;Match;text' pc 343
(compilers/pge/PGE/Match.pir:223)
called from Sub 'parrot;PGE;Match;get_string' pc 592
(compilers/pge/PGE/Match.pir:379)
called from Sub 'parrot;PGE;Perl6Regex;compile_perl6regex' pc 6209
(compilers/pge/PGE/Perl6Regex.pir:100)
called from Sub 'parrot;PGE;Perl6Grammar;Compiler;__onload' pc 45
(../../runtime/parrot/library/PGE/Perl6Grammar.pir:81)
called from Sub 'parrot;PGE;Perl6Grammar;Compiler;main' pc -1 ((unknown
file):-1)
make[1]: *** [PGE.pbc] Error 1
make: *** [compilers.dummy] Error 2

this is perl, v5.8.8 built for darwin-thread-multi-2level
(with 1 registered patch, see perl -V for more detail)

gcc: i686-apple-darwin9-gcc-4.0.1: no input files

init::manifest - Check
MANIFEST.....................................done.
init::defaults - Set Configure's default
values.....................done.
init::install - Set up installation
paths..........................done.
init::miniparrot - Tweak settings for
miniparrot...................skipped.
init::hints - Load platform and local hints
files................done.
init::headers - Find header files distributed with
Parrot..........done.
inter::progs - Determine what C compiler and linker to
use........done.
inter::make - Is make
installed...................................yes.
inter::lex - Is lex
installed................................skipped.
inter::yacc - Is yacc
installed...............................skipped.
auto::gcc - Is your C compiler actually
gcc.....................yes.
auto::glibc - Is GNU libc
installed................................no.
auto::backtrace - Does libc have the backtrace*
functions.............yes.
auto::fink - Determine Fink location on Darwin....Fink not
installed.
auto::macports - Determine Macports location on
Darwin...............yes.
auto::msvc - Is your C compiler actually Visual
C++...............no.
auto::attributes - Detect compiler
attributes.........................done.
auto::warnings - Detect supported compiler warnings..........set for
gcc.
init::optimize - Enable
optimization..................................no.
inter::shlibs - Determine flags for building shared
libraries......done.
inter::libparrot - Should parrot link against a shared
library.........yes.
inter::charset - Which charset files should be compiled
in..........done.
inter::encoding - Which encoding files should be compiled
in.........done.
inter::types - What types should Parrot
use.......................done.
auto::ops - Which opcode files should be compiled
in...........done.
auto::pmc - Which pmc files should be compiled
in..............done.
auto::alignptrs - Determine your minimum pointer alignment........ 1
byte.
auto::headers - Probe for C
headers................................done.
auto::sizes - Determine some
sizes...............................done.
auto::byteorder - Compute native byteorder for
wordsize.....little-endian.
auto::va_ptr - Test the type of
va_ptr...........................stack.
auto::format - What formats should be used for
sprintf............done.
auto::isreg - Does your C library have a working
S_ISREG..........yes.
auto::arch - Determine CPU architecture and
OS..................done.
auto::jit - Determine JIT
capability.............................no.
auto::cpu - Generate CPU specific
stuff........................done.
auto::funcptr - Does compiler support function pointer
casts.......done.
auto::cgoto - Does your compiler support computed
goto............yes.
auto::inline - Does your compiler support
inline...................yes.
auto::gc - Determine allocator to
use.........................done.
auto::memalign - Does your C library support memalign........already
set.
auto::signal - Determine some signal
stuff........................done.
auto::socklen_t - Determine whether there is
socklen_t................yes.
auto::env - Does your C library have setenv /
unsetenv.........both.
auto::aio - Does your platform support
AIO.......................no.
auto::gmp - Does your platform support
GMP.......................no.
auto::readline - Does your platform support readline...dyld: lazy
symbol binding failed: Symbol not found: _rl_get_keymap
Referenced from: /usr/share/cvs/afbach/parrot/./test_51162
Expected in: dynamic lookup

dyld: Symbol not found: _rl_get_keymap
Referenced from: /usr/share/cvs/afbach/parrot/./test_51162
Expected in: dynamic lookup

...............no.
auto::gdbm - Does your platform support
gdbm......................no.
auto::pcre - Does your platform support pcre................yes,
7.6.
auto::opengl - Does your platform support OpenGL....yes, MacOSX_GLUT
5.
auto::crypto - Does your platform support crypto...........yes,
0.9.7l.
auto::gettext - Does your configuration include
gettext..............no.
auto::snprintf - Test
snprintf......................................done.
auto::perldoc - Is perldoc
installed................................yes.
auto::ctags - Is (exuberant) ctags
installed.......................no.
auto::revision - Determine Parrot's
revision......................r32305.
auto::icu - Is ICU installed..........................no
icu-config.
gen::config_h - Generate C
headers.................................done.
gen::core_pmcs - Generate core pmc
list.............................done.
gen::crypto - Generate Digest PMC
files..........................done.
gen::parrot_include - Generate
runtime/parrot/include....................done.
gen::opengl - Generating OpenGL
bindings.........................done.
gen::call_list - Generate NCI signature
list........................done.
gen::languages - Configure
languages................................done.
gen::makefiles - Generate makefiles and other build
files...........done.
gen::platform - Move platform files into
place.....................done.
gen::config_pm - Record configuration data for later
retrieval......done.
-------------------
Andy Bach
Systems Mangler
Internet: ***@wiwb.uscourts.gov
Voice: (608) 261-5738 Fax: 264-5932

(Joe?) Lieberman's Law:
Everybody lies, but it doesn't matter since nobody listens.
James E Keenan
2008-11-04 00:05:41 UTC
Permalink
[snip]
Post by Andy Bach
auto::readline - Does your platform support readline...dyld: lazy
symbol binding failed: Symbol not found: _rl_get_keymap
Referenced from: /usr/share/cvs/afbach/parrot/./test_51162
Expected in: dynamic lookup
dyld: Symbol not found: _rl_get_keymap
Referenced from: /usr/share/cvs/afbach/parrot/./test_51162
Expected in: dynamic lookup
...............no.
It's baaaack! The same problem we were struggling with last March, and
again at the Parrot build fest at YAPC.

Cf. the never fully resolved:
http://rt.perl.org/rt3/Ticket/Display.html?id=52212

kid51
Loading...