# New Ticket Created by  James E Keenan 
# Please include the string:  [perl #127308]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127308 >


Today I tried for the first time to build Perl 6 from source -- specifically 
Rakudo Star 2015.11 -- on my older Darwin/PPC.  (I first tried to do so with 
'rakudobrew', but that utility apparently has dependencies on more recent 
versions of 'git' than I can install on this machine.)  Configuration failed -- 
but at a point so early in the process that I was surprised.

Here is what I called and got:

##########
[rakudo] 545 $ cd rakudo-star-2015.11
[rakudo-star-2015.11] 546 $ perl Configure.pl --backend=moar --gen-moar
ATTENTION: no --prefix supplied, building and installing to 
/Users/jimk/rakudo/rakudo-star-2015.11/install

Configuring and building MoarVM ...
perl Configure.pl --optimize 
--prefix=/Users/jimk/rakudo/rakudo-star-2015.11/install --make-install
Welcome to MoarVM!

Configuring native build environment ................... OK
    probing whether your compiler thinks that it is gcc  Can't compile simple 
gcc probe, so something is badly wrong at build/probe.pm line 92.
Command failed (status 32512): perl Configure.pl --optimize 
--prefix=/Users/jimk/rakudo/rakudo-star-2015.11/install --make-install
##########

Well, my compiler is definitely gcc.  It's still capable of building 
perl-5.22.1 from source.  I examined ./MoarVM/build/probe.pm and just above 
that point I saw C code to detect a C compiler.  I extracted it, compiled it 
and ran it.

##########

$ cat try.c
#include <stdlib.h>

int main(int argc, char **argv) {
#ifdef __GNUC__
     return EXIT_SUCCESS;
#else
     return EXIT_FAILURE;
#endif
}


$ gcc -o try try.c

$ perl -e '$rv = system(qq{./try}); print "<$rv>\n";'
<0>
##########

So the C probe works by itself, but the program in which it is embedded fails.  
Any ideas?

Thank you very much.
Jim Keenan
-- 
James E Keenan (jkee...@cpan.org)
Summary of my perl5 (revision 5 version 22 subversion 1) configuration:
   
  Platform:
    osname=darwin, osvers=8.11.0, archname=darwin-2level
    uname='darwin macintosh-9.local 8.11.0 darwin kernel version 8.11.0: wed 
oct 10 18:26:00 pdt 2007; root:xnu-792.24.17~1release_ppc power macintosh 
powerpc '
    config_args='-des'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe 
-I/usr/local/include -I/opt/local/include -D_FORTIFY_SOURCE=2',
    optimize='-O3',
    cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe 
-I/usr/local/include -I/opt/local/include'
    ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5250)', 
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321, doublekind=4
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, 
longdblkind=6
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib 
-L/opt/local/lib'
    libpth=/usr/local/lib /usr/lib /opt/local/lib
    libs=-lpthread -ldbm -ldl -lm -lc
    perllibs=-lpthread -ldl -lm -lc
    libc=, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup 
-L/usr/local/lib -L/opt/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                        PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
                        USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
                        USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME
                        USE_PERLIO USE_PERL_ATOF
  Built under darwin
  Compiled at Dec 13 2015 21:51:07
  %ENV:
    PERLBREW_BASHRC_VERSION="0.59"
    PERLBREW_HOME="/Users/jimk/.perlbrew"
    PERLBREW_ROOT="/Users/jimk/perl5/perlbrew"
    PERL_WORKDIR="gitwork/perl"
  @INC:
    /usr/local/lib/perl5/site_perl/5.22.1/darwin-2level
    /usr/local/lib/perl5/site_perl/5.22.1
    /usr/local/lib/perl5/5.22.1/darwin-2level
    /usr/local/lib/perl5/5.22.1
    /usr/local/lib/perl5/site_perl/5.20.1
    /usr/local/lib/perl5/site_perl/5.20.0
    /usr/local/lib/perl5/site_perl/5.18.0
    /usr/local/lib/perl5/site_perl/5.16.0
    /usr/local/lib/perl5/site_perl/5.14.2
    /usr/local/lib/perl5/site_perl/5.14.0
    /usr/local/lib/perl5/site_perl/5.12.0
    /usr/local/lib/perl5/site_perl/5.10.1
    /usr/local/lib/perl5/site_perl/5.10.0
    /usr/local/lib/perl5/site_perl/5.8.6
    /usr/local/lib/perl5/site_perl
    .

Reply via email to