[KDE/Mac] apple-gcc42-devel
Orville Bennett
illogical1 at gmail.com
Tue Mar 3 21:45:25 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mar 3, 2009, at 4:24 AM, Janus wrote:
> 2009/3/3 Janus <janus at rtfm.org.ar>:
>> 2009/3/3 Orville Bennett <illogical1 at gmail.com>:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>>
>>> On Mar 2, 2009, at 4:06 PM, Janus wrote:
>>> snip
>>>>
>>>>>>>>>
>>>>>>>>> Bored with the progress on ticket 16666 on macports' trac I
>>>>>>>>> uploaded
>>>>>>>>> my own gcc 4.2 port. This should, after some tweaking, help
>>>>>>>>> people on
>>>>>>>>> 10.4 compile kde4.
>>>>>>>>>
>>>>>>>>> Needs testers obviously. If you'd like to help reply here.
>>>>>>>>
>>>>>>>> Well, I am testing everything, so one more cannot hurt :)
>>>>>>>> Please, let me know where it such port.
>>>>>>> sudo port sync
>>>>>>> sudo port uninstall apple-gcc42
>>>>>>> sudo port install apple-gcc42
>>>>>>>
>>>>>>> Then we'll need to do some more "stuff".
>>>>>>> If I could meet you on IRC we could work out the kinks in real
>>>>>>> time
>>>>>>> there (after 7 p.m. EST?).
>>>>>>>
>>>>>>
>>>>>> Mmm.. sorry, I am in France: "7 p.m. EST" is 1 a.m. here, and
>>>>>> tomorrow
>>>>>> I should work :)
>>>>>> Well, I just did a clean installation of macports, so, I will
>>>>>> start
>>>>>> doing the "port install apple-gcc42" and telling you how it was.
>>>>> SORRY. MY MISTAKE.
>>>>> That should be
>>>>> sudo port install apple-gcc42-devel
>>>>> note the -devel at the end. That's important :-)
>>>>>
>>>>> So if you've already installed (or are currently installing)
>>>>> apple-
>>>>> gcc42 do :
>>>>> 'sudo port clean --all apple-gcc42'
>>>>> 'sudo port uninstall apple-gcc42'
>>>>> 'sudo port install apple-gcc42-devel'
>>>>
>>>> done.
>>> Now use the uninstallation script provided with the xcode 2.5 dmg to
>>> uninstall xcode 2.5 from you're machine.
>>
>> In the dmg I didn't find any uninstaller.
>> In /Developer, I have 2 at /Developer/Library:
>> uninstall-developer-folder and uninstall-devtools. Should I use one
>> of
>> them?
>
> I used uninstall-devtools and it works as expected (I think)
>
>>> Then delete /Developer if it's still there.
>>> Then restart the machine.
>>> Then reinstall Xcode 2.5 (yes, reboot first)
>
> Done.
> qcgs-computer-batc:~ janus$ gcc --version
> powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
> build 5370)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> qcgs-computer-batc:~ janus$ gcc-4.2 --version
muahah!
*ahem*
Now for the magic:
sudo vi /opt/local/share/macports/Tcl/port1.0/portconfigure.tcl
and change
"darwin 8" { set compiler gcc-4.0 } to "darwin 8" { set compiler apple-
gcc-4.2 }
then find the line 'apple-gcc-4.0 {'
and either before or after it add the following.
apple-gcc-4.2 {
switch -exact ${type} {
cc { set ret ${prefix}/bin/gcc-4.2 }
objc { set ret ${prefix}/bin/gcc-4.2 }
cxx { set ret ${prefix}/bin/g++-4.2 }
cpp { set ret ${prefix}/bin/cpp-4.2 }
}
}
I just made that up btw.
Not quite sure if it does what I think it does (but we'll find out :-D)
After all that's done, would you mind pastebinning your
portconfigure.tcl file?
> powerpc-apple-darwin8-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5564)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> Should I do a gcc_select to select gcc-4.2 as default before trying to
> install some kde stuff?
> (I will wait your answer, because I don't want to break it again)
>
>>>>
>>>>
>>>> --
>>>> Alejandro Díaz-Caro
>>>> PhD Student
>>>> Laboratoire d'Informatique de Grenoble
>>>> http://membres-liglab.imag.fr/diazcaro
>>>> _______________________________________________
>>>> kde-mac at kde.org
>>>> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
>>>> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.9 (Darwin)
>>>
>>> iEYEARECAAYFAkmsbEkACgkQ2yWVgjgEOKSg+QCdHZVMEgdUMalAVlsRRygb2N1c
>>> q/EAn26FZcbN1MOfa1zCw4kkwaSTmuEH
>>> =zCgs
>>> -----END PGP SIGNATURE-----
>>> _______________________________________________
>>> kde-mac at kde.org
>>> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
>>> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
>>>
>>
>>
>>
>> --
>> Alejandro Díaz-Caro
>> PhD Student
>> Laboratoire d'Informatique de Grenoble
>> http://membres-liglab.imag.fr/diazcaro
>>
>
>
>
> --
> Alejandro Díaz-Caro
> PhD Student
> Laboratoire d'Informatique de Grenoble
> http://membres-liglab.imag.fr/diazcaro
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmtluYACgkQ2yWVgjgEOKRMvACfa/6dH7Rv+xwwuyLb0esHHcBc
qjUAn0NUraQHgqT5XKyp0x2K7xLCh/CM
=GVtj
-----END PGP SIGNATURE-----
More information about the kde-mac
mailing list