-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure.pl with moar fails to find C compiler on older Darwin #5064
Comments
From @jkeenanToday 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: ########## Configuring and building MoarVM ... Configuring native build environment ................... OK 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 int main(int argc, char **argv) { $ gcc -o try try.c $ perl -e '$rv = system(qq{./try}); print "<$rv>\n";' So the C probe works by itself, but the program in which it is embedded fails. Any ideas? Thank you very much. |
From @jkeenanSummary of my perl5 (revision 5 version 22 subversion 1) configuration: Characteristics of this binary (from libperl): |
From @FROGGSBut the shown exit of "0" would be correct, no? I guess we want to show more information when we cannot compile the test scripts using the compiler we guessed.... |
The RT System itself - Status changed from 'new' to 'open' |
From @stmukMy guess is that the PPC version of OS X probably still has the real You could try looking for the config line which contains the definiton rakudobrew build moar --configure-opts=--moar-option=--cc=gcc might work? On 18 January 2016 at 17:26, James E Keenan
-- |
From @geekosaurOn Wed, Jan 20, 2016 at 11:37 AM, Steve Mynott <steve.mynott@gmail.com>
This will also be true of Intel-based Macs with Xcode 3.x or earlier -- |
From @jkeenanOn Wed Jan 20 15:56:27 2016, steve.mynott@gmail.com wrote:
Unfortunately, that did not work. As I noted in my OP, it appears that rakudobrew is hard-wired to expect certain functionality in 'git' that is only found in versions of 'git' more recent than I can install on this machine. See attachment. I then tried manual configuration. I tried 'perl Configure.pl --backend-moar --gen-moar' with various combinations of things like '--cc=gcc --link=gcc --ld=gcc'. Back when Rakudo was built on Parrot, those command-line switches would have been meaningful. But in this case I got no farther than Configure.pl's 'help' message. I inspected the code in Configure.pl and didn't see anything that suggested one could choose among compilers for those switches. So it appears that Rakudo on moar is not buildable on this platform. Thank you very much. |
From @jkeenanScript started on Wed Jan 20 20:41:16 2016 HEAD is now at 775271d... rename s/outdent/de-indent/ ATTENTION: no --prefix supplied, building and installing to /Users/jimk/.rakudobrew/moar-nom/install sh: line 1: /Users/jimk/.rakudobrew/moar-nom/install/bin/nqp-m: No such file or directory Initialized empty Git repository in /Users/jimk/.rakudobrew/moar-nom/nqp/.git/ fatal: https://github.com/perl6/nqp.git/info/refs download error - Protocol https not supported or disabled in libcurl Command failed (status 32768): git clone --reference=/Users/jimk/.rakudobrew/bin/../git_reference/nqp https://github.com/perl6/nqp.git nqp Failed running perl Configure.pl --backends=moar --gen-moar --git-reference=/Users/jimk/.rakudobrew/bin/../git_reference --make-install --moar-option=--cc=gcc at /Users/jimk/.rakudobrew/bin/rakudobrew line 58. main::run("perl Configure.pl --backends=moar --gen-moar --git-reference="...) called at /Users/jimk/.rakudobrew/bin/rakudobrew line 378 main::build_impl("moar", undef, "--moar-option=--cc=gcc") called at /Users/jimk/.rakudobrew/bin/rakudobrew line 114 |
From @FROGGSCan't we do something like this[^1] on darwin also? [^1] https://github.com/MoarVM/MoarVM/blob/master/build/setup.pm#L445 Like, checking for the existance of clang, and falling back to gcc? |
From @geekosaurOn Thu, Jan 21, 2016 at 2:29 PM, Tobias Leich via RT <
gcc and llvm-gcc-4.2 are symlinks to clang in later versions of xcode, so -- |
From @FROGGSDoes that mean that we *always always always* have a gcc binary? |
Migrated from rt.perl.org#127308 (status was 'open')
Searchable as RT127308$
The text was updated successfully, but these errors were encountered: