Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Safe reversion to older version of C compiler

by chargrill (Parson)
on Dec 17, 2006 at 16:47 UTC ( #590321=note: print w/replies, xml ) Need Help??


in reply to Safe reversion to older version of C compiler

Hi, check out the utility that ought to have been installed (at least when you have the Mac Dev Tools installed) called gcc_select.

Here's a short snippet from it's man page:

GCC_SELECT(8) MacOS X GCC_SELECT(8) SYNOPSIS gcc_select -- Switch the default system compiler USAGE gcc_select [-n] [-force] [2 | 3 | 3.<number> | 4.<number> ] [-h | --help] [-v | --version] [-l | --list] [-root] o 2: Select gcc 2.95.2 as the default compiler. o 3: Select gcc 3.1 as the default compiler. o 3.x: Select gcc 3.x as the default compiler. o 4.x: Select gcc 4.x as the default compiler.


--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Replies are listed 'Best First'.
Re^2: Safe reversion to older version of C compiler
by jkeenan1 (Deacon) on Dec 17, 2006 at 17:17 UTC
    Thanks for your response!

    After my OP, I pulled the coat of Parrot hacker Coke to it. We discussed it a bit on #parrot and he advised me to first (do no harm) and try running Parrot's Configure.pl script with some shell variables re-set. Incorporating an earlier suggestion from Parrot hacker particle, this is what I came up with:

    #!/bin/sh CC="/usr/bin/gcc-3.3" CX="/usr/bin/g++-3.3" /usr/local/bin/perl Configure.pl --cc="$CC" --cxx="$CX" --link="$CX" - +-ld="$CX" --without-icu --without-gmp $@

    ... which kinda does what gcc_select would do. This script resulted in a Parrot configuration which you can see here.

    make ran without a hitch! And make test (probably as a result of yesterday's on-line Parrot Bug Day) ran with only 1 failing test -- down from 62 the last time I tried that a couple of weeks ago.

    Jim Keenan

      I'm glad you got it working one way or another. Too bad I had to miss the hackathon in (greater) Chicago in November (due to some scheduling conflicts). Maybe I could've helped eliminate your frustration a little earlier :)

      I don't recall where/why/how I first read about the gcc_select utility, but I suppose it's good that it's recorded above for anyone else who might be looking for it :)



      --chargrill
      s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590321]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2019-09-19 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (240 votes). Check out past polls.

    Notices?