The implication of much of this discussion is that the problem with compiling 
gcc44 is tied to Xcode 4 but I seem to have the same problem with Xcode 3.2.1!

Don

gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking 
--enable-werror --prefix=/usr --mandir=/share/man 
--enable-languages=c,objc,c++,obj-c++ 
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib 
--build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- 
--host=x86_64-apple-darwin10 --target=i686-apple-darwin10 
--with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
xcodebuild -version; xcodebuild -showsdks
Xcode 3.2.6
Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
BuildVersion: 10M2518
Mac OS X SDKs:
        Mac OS X 10.5                   -sdk macosx10.5
        Mac OS X 10.6                   -sdk macosx10.6

iOS SDKs:
        Device - iPhone OS 3.2          -sdk iphoneos3.2
        iOS 4.3                         -sdk iphoneos4.3

iOS Simulator SDKs:
        Simulator - iPhone OS 3.0       -sdk iphonesimulator3.0
        Simulator - iPhone OS 3.1       -sdk iphonesimulator3.1
        Simulator - iPhone OS 3.1.2     -sdk iphonesimulator3.1.2
        Simulator - iPhone OS 3.1.3     -sdk iphonesimulator3.1.3
        Simulator - iOS 3.2             -sdk iphonesimulator3.2
        Simulator - iOS 4.0             -sdk iphonesimulator4.0
        Simulator - iOS 4.1             -sdk iphonesimulator4.1
        Simulator - iOS 4.2             -sdk iphonesimulator4.2
        Simulator - iOS 4.3             -sdk iphonesimulator4.3



------------------------------------------------------------------
Professor Don Paul
Superconductivity & Magnetism Group
Department of Physics
University of Warwick
Coventry CV4 7AL
United Kingdom

        email    [email protected]
        tel             024 76 523603
------------------------------------------------------------------



On 1 Jul 2011, at 01:48, Jack Howarth wrote:

> On Thu, Jun 30, 2011 at 07:38:01PM -0500, Robert Wyatt wrote:
>> 
>> 
>> Jack Howarth wrote:
>>> On Thu, Jun 30, 2011 at 07:22:21PM -0500, Robert Wyatt wrote:
>>>> Jack Howarth wrote:
>>>>> On Thu, Jun 30, 2011 at 05:47:06PM -0500, Robert Wyatt wrote:
>>>>>> Jack Howarth wrote:
>>>>>>> On Thu, Jun 30, 2011 at 04:15:23PM -0500, Robert Wyatt wrote:
>>>>>>>> On 6/30/11 3:33 PM, Jack Howarth wrote:
>>>>>>>>> On Thu, Jun 30, 2011 at 01:55:25PM -0500, Robert Wyatt wrote:
>>>>>>>>>> On 6/30/11 1:43 PM, Jack Howarth wrote:
>>>>>>>>>>> On Thu, Jun 30, 2011 at 01:34:41PM -0500, Robert Wyatt wrote:
>>>>>>>>>>>> My guess is that Rudy is seeing this error, since I've been seeing 
>>>>>>>>>>>> it
>>>>>>>>>>>> for a couple of days now too (on 10.6.8). I'm happy to test 
>>>>>>>>>>>> solutions so
>>>>>>>>>>>> let me know....
>>>>>>>>>>>> 
>>>>>>>>>>>> checking for x86_64-apple-darwin10.8.0-gcc...
>>>>>>>>>>>> /sw/src/fink.build/gcc44-4.4.6-1000/darwin_objdir/./gcc/xgcc
>>>>>>>>>>>> -B/sw/src/fink.build/gcc44-4.4.6-1000/darwin_objdir/./gcc/
>>>>>>>>>>>> -B/sw/lib/gcc4.4/x86_64-apple-darwin10.8.0/bin/
>>>>>>>>>>>> -B/sw/lib/gcc4.4/x86_64-apple-darwin10.8.0/lib/ -isystem
>>>>>>>>>>>> /sw/lib/gcc4.4/x86_64-apple-darwin10.8.0/include -isystem
>>>>>>>>>>>> /sw/lib/gcc4.4/x86_64-apple-darwin10.8.0/sys-include
>>>>>>>>>>>> checking for suffix of object files... configure: error: in
>>>>>>>>>>>> `/sw/src/fink.build/gcc44-4.4.6-1000/darwin_objdir/x86_64-apple-darwin10.8.0/libgcc':
>>>>>>>>>>>> configure: error: cannot compute suffix of object files: cannot 
>>>>>>>>>>>> compile
>>>>>>>>>>>> See `config.log' for more details.
>>>>>>>>>>>> make[2]: *** [configure-stage1-target-libgcc] Error 1
>>>>>>>>>>>> make[1]: *** [stage1-bubble] Error 2
>>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>> 
>>>>>>>>>>> Can you both make sure that binutils isn't installed when you are 
>>>>>>>>>>> building
>>>>>>>>>>> gcc44?
>>>>>>>>>>>         Jack
>>>>>>>>>> Hi Jack,
>>>>>>>>>> I don't have binutils installed. This is what I found in my 
>>>>>>>>>> config.log
>>>>>>>>>> that I thought might be related (I can provide the whole file if you
>>>>>>>>>> want it):
>>>>>>>>> Robert,
>>>>>>>>>        Can you try moving aside /usr/local and /opt (in case you have
>>>>>>>>> any MacPorts installed) then try rebuilding gcc44?
>>>>>>>>>                 Jack
>>>>>>>> 
>>>>>>>> Sure thing. The build failure hasn't changed. Here's the output:
>>>>>>>> http://reg066.reg.utexas.edu/~bentones/fink/10.6-64bit-home/gcc44-4.4.6-1000.txt
>>>>>>> 
>>>>>>> Doh! You have apparently made llvm-gcc your default compiler on 
>>>>>>> darwin10...
>>>>>>> 
>>>>>>> checking for ld used by GCC... yes
>>>>>>> /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin10/4.2.1/ld
>>>>>>> 
>>>>>>> I knew this failure looked familiar but it didn't make sense until I 
>>>>>>> caught that.
>>>>>>> See...
>>>>>>> 
>>>>>>> http://llvm.org/bugs/show_bug.cgi?id=9571
>>>>>>> 
>>>>>>> which, since Apple isn't going to backport the fix from llvm 2.9 into 
>>>>>>> their llvm-gcc,
>>>>>>> was the origin of my interest in using clang for darwin11. Restore 
>>>>>>> gcc-4.2/g++-4.2
>>>>>>> as the system compiler on darwin10. Note that the clang2.9svn in Xcode 
>>>>>>> 4.0.2 has too
>>>>>>> many unresolved issues to use for fink.
>>>>>>>             Jack
>>>>>> 
>>>>>> Okay great, that's good news I suppose. Not knowing how it happened
>>>>>> though, and not having llvm installed, I don't know how to restore my
>>>>>> default compiler and could use some guidance.
>>>>> 
>>>>>    All I can recommend is executing 'gcc -v' and 'which gcc' which should
>>>>> report back...
>>>>> 
>>>>> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.6)
>>>>> 
>>>>> or such and point you gcc as being /usr/bin/llvm-gcc. At some point a user
>>>>> on your machine must have switched the symlinks as only darwin11 defaults 
>>>>> gcc
>>>>> to llvm-gcc (not darwin10).
>>>>>                Jack
>>>> 
>>>> Okay, but unless I built llvm-gcc some time ago and that process alone
>>>> caused the change, there was no change to my settings by any user on
>>>> this machine (I'm the only user).
>>>> 
>>>> $ gcc -v
>>>> Using built-in specs.
>>>> Target: i686-apple-darwin10
>>>> Configured with:
>>>> /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~13/src/configure
>>>> --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2
>>>> --mandir=/share/man --enable-languages=c,objc,c++,obj-c++
>>>> --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
>>>> --with-slibdir=/usr/lib --build=i686-apple-darwin10
>>>> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~13/dst-llvmCore/Developer/usr/local
>>>> --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10
>>>> --target=i686-apple-darwin10
>>>> --with-gxx-include-dir=/usr/include/c++/4.2.1
>>>> Thread model: posix
>>>> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
>>> 
>>> Exactly what Xcode do you have installed? For Xcode 4.0.2, I see...
>>> 
>>> Using built-in specs.
>>> Target: i686-apple-darwin10
>>> Configured with: /var/tmp/llvmgcc42/llvmgcc42-2335.9~9/src/configure 
>>> --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 
>>> --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ 
>>> --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ 
>>> --with-slibdir=/usr/lib --build=i686-apple-darwin10 
>>> --enable-llvm=/var/tmp/llvmgcc42/llvmgcc42-2335.9~9/dst-llvmCore/Developer/usr/local
>>>  --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 
>>> --target=i686-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1
>>> Thread model: posix
>>> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.9)
>>> 
>>> whereas your Xcode looks like the one from Xcode 4.1. Did you install the 
>>> Xcode 4.2 beta for
>>> iOS or something? I wouldn't be surprised if the iOS compiler defaulted to 
>>> llvm-gcc.
>>>            Jack
>> 
>> Oh great, so now we've ventured into the NDA realm? I'll try to get on  
>> IRC in the morning but can't tonight.
>> 
>> * My Xcode version: xcodebuild -version; xcodebuild -showsdks
>> Xcode 4.2
>> Build version 4C114
>> Mac OS X SDKs:
>>      Mac OS X 10.6                   -sdk macosx10.6
>> 
>> iOS SDKs:
>>      iOS 5.0                         -sdk iphoneos5.0
>> 
>> iOS Simulator SDKs:
>>      Simulator - iOS 3.2             -sdk iphonesimulator3.2
>>      Simulator - iOS 4.0             -sdk iphonesimulator4.0
>>      Simulator - iOS 4.1             -sdk iphonesimulator4.1
>>      Simulator - iOS 4.2             -sdk iphonesimulator4.2
>>      Simulator - iOS 4.3             -sdk iphonesimulator4.3
>>      Simulator - iOS 5.0             -sdk iphonesimulator5.0
>> 
>> 
>> * My gcc version: gcc --version | head -n 1
>> i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build  
>> 5658) (LLVM build 2335.15.00)
>> 
>> * My fink version: fink -V | head -n 2
>> Package manager version: 0.30.1
>> Distribution version: selfupdate-rsync Thu Jun 30 16:16:47 2011, 10.6,  
>> x86_64
>> 
>> * My machine is a: uname -m; sysctl hw.model; sysctl  
>> machdep.cpu.brand_string
>> i386
>> hw.model: MacBookPro2,1
>> machdep.cpu.brand_string: Intel(R) Core(TM)2 CPU         T7600  @ 2.33GHz
>> 
>> $ which gcc && gcc --version
>> /usr/bin/gcc
>> i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build  
>> 5658) (LLVM build 2335.15.00)
>> 
>> 
>> $ which gcc-4.2 && gcc-4.2 --version
>> /usr/bin/gcc-4.2
>> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
> 
>  You shouldn't be surprised that you run into issues with beta releases of 
> Xcode
> under fink as Apple often makes changes to linker and assembler which require 
> adjustments
> upstream in FSF gcc, etc.
>             Jack
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Fink-beginners mailing list
> [email protected]
> List archive:
> http://news.gmane.org/gmane.os.apple.fink.beginners
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-beginners


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to