Opened 6 years ago

Closed 5 years ago

#5397 closed bug (fixed)

bindist finds wrong gcc when XCode > 4

Reported by: igloo Owned by: igloo
Priority: high Milestone: 7.2.2
Component: Build System Version: 7.0.4
Keywords: Cc: andreas.voellmy@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Manuel says:

When I unpack [the 7.2.1 rc2 bindist] on Lion and run ./configure,
configure picks '/usr/bin/gcc' and not '/usr/bin/gcc-4.2' as the C compiler.  (I
can force it to use gcc-4.2 with '--with-gcc=/usr/bin/gcc-4.2'.)

but it ought to be using gcc-4.2 when XCode >= 4.

Change History (4)

comment:1 Changed 6 years ago by AndreasVoellmy

Cc: andreas.voellmy@… added

comment:2 in reply to:  description Changed 5 years ago by cdornan

In a similar vain I have observed the following on 7.0.3.

If I remove /usr/bin/gcc from the system, run ./configure --with-gcc=blah, the configuration breaks down (/usr/bin/gcc not found).

If I restore /usr/bin/gcc (i.e., put a link from /usr/bin/gcc to the gcc I want to use), configure, again specifying --with-gcc, remove /usr/bin/gcc, and try to build, the build breaks down again because /usr/bin/gcc is missing.

comment:3 Changed 5 years ago by igloo@…

commit 651cd99621e42b10b7caadfb8986547b28222785

Author: Ian Lynagh <>
Date:   Sat Oct 1 21:00:27 2011 +0100

    Fix bindist finding gcc on OS X; fixes trac #5397
    $TargetOS_CPP wasn't getting defined in a bindist, which meant the
    code to use gcc-4.2 instead of gcc on OS X wasn't working. Now fixed,
    by moving some of's code into the shared aclocal.m4.

 aclocal.m4   |   90 ++++++++++++++++++++++++++++++++++++++++++++++ |  113 ++++++---------------------------------------------------
 2 files changed, 102 insertions(+), 101 deletions(-)

comment:4 Changed 5 years ago by igloo

Resolution: fixed
Status: newclosed


Note: See TracTickets for help on using tickets.