This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 4.7 compiles with llvm-gcc-4.2 but not with GCC 4.6.2

On 16 Jan 2012, at 15:31, Jonathan Wakely wrote:

> On 16 January 2012 13:55, Hans Aberg wrote:
>> [I am not on this list, so please cc me.]
>> On OS X 10.7.2, gcc (GCC) 4.7.0 20120115 from SVN compiles using the /usr/bin/gcc -> llvm-gcc-4.2 that is installed by Xcode 4.2.1.
>> But if one first compiles GCC 4.6.2 using the same LLVM-GCC, then this GCC 4.7 will not compile; there is a configure error:
>> checking for long long... yes
>> checking size of long long... configure: error: in `/usr/local/src/gcc/gcc/host-x86_64-apple-darwin11.2.0/gcc':
>> configure: error: cannot compute sizeof (long long)
>> See `config.log' for more details.
>> The config.log of this directory just indicates a program doing the check that will fail (now overwritten by new ./configure && make).
> Do not run ./configure, see and
> and
> - you have to try pretty
> hard to avoid that tip if you read any installation docs at all.

Too late! Actually, I ended up on
which does not say anything about install. Perhaps add a note.

It is a good idea to do it from outside the directory - 'make clean' does not work.

> The check in the config.log is what's needed to identify the problem.
> The problem might go away if you stop using ./configure, if not then
> try asking on the gcc-help list, or submitting it to bugzilla if you
> think it's a gcc bug.

I'll try that some other time.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]