problem when installing macports
Ryan Schmidt
ryandesign at macports.org
Mon Oct 1 18:54:28 PDT 2007
On Oct 1, 2007, at 20:26, Thomas De Contes wrote:
> Le 21 sept. 07 à 20:05, Ryan Schmidt a écrit :
>
>> On Sep 20, 2007, at 05:02, Anders F Björklund wrote:
>>
>>> Thomas De Contes wrote:
>>>
>>>> on both, i have installed the last version of xcode (2.4.1), but
>>>> only devtools software, gcc 3.3, and software dev kits
>>>> oh yes, i just remember, on the computer where it works, i have
>>>> installed gcc 4.0 instead of gcc 3.3
>>>> so, is it required to have gcc 4.0 to compile macports ?? why ?
>>>
>>> You need the Universal system compiler (gcc-4.0) for Mac OS X
>>> 10.4 / Xcode,
>>> not the gcc-3.3 cross-compiler - that's only for building for Mac
>>> OS X 10.3
>>>
>>> Trying to reproduce the issue with CC="gcc-3.3 -arch ppc"
>>> LDFLAGS="-arch ppc",
>>> but that seemed to have work... (i.e. it didn't give any snprintf
>>> errors)
>>
>> Anders, he didn't say what OS version he was using. Also, he's on
>> G4, so gcc 3.3 is a native compiler, not a cross-compiler.
>>
>> But, Thomas, if you're running Mac OS X 10.3.9, then you need
>> Xcode 1.5, which installs gcc 3.3 and that's supposed to be fine
>> for MacPorts. If you're on Mac OS X 10.4.10, then you need Xcode
>> 2.4.1 which installs gcc 4.0, and your gcc_select should be set to
>> use gcc 4.0, which is the default. Using gcc 3.3 as your system
>> compiler on Mac OS X 10.4 is not supported by MacPorts, and I
>> don't recommend it for any reason.
>
> thank you very much for all the details :-)
>
> i have 10.4, two remote computers with ppc, and my local computer
> with intel
>
>
> but, if on 10.4 the "core" is gcc 4.0,
> why is there
> "This package contains the Apple version of the gcc 4.0 compiler."
> and
> "This package contains the Apple version of the gcc 3.3 compiler,
> and is required to use the Developer Tools on Mac OS X."
> even on intel, which let us suppose that the "core" is gcc 3.3 ?
Regardless of whether you have an Intel or PowerPC Mac, Apple's gcc
3.3 makes only PowerPC binaries, and Apple's gcc 4.0 can make either
Intel or PowerPC or universal binaries. It is useful for developers
who wish to create universal binaries of their programs to use gcc
3.3 for the PowerPC parts and gcc 4.0 for the Intel parts and to
later combine them using lipo. This ensures that the software works
with earlier Mac OS X releases on PowerPC.
More information about the macports-users
mailing list