[KDE/Mac] apple-gcc42-devel
Janus
janus at rtfm.org.ar
Fri Mar 6 22:34:17 CET 2009
2009/3/6 Orville Bennett <illogical1 at gmail.com>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On Mar 6, 2009, at 3:56 AM, Janus wrote:
>
>> 2009/3/5 Janus <janus at rtfm.org.ar>:
>>> 2009/3/5 Janus <janus at rtfm.org.ar>:
>>>> 2009/3/5 Orville Bennett <illogical1 at gmail.com>:
>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>> Hash: SHA1
>>>>>
>>>>>
>>>>> On Mar 4, 2009, at 5:53 PM, Janus wrote:
>>>>>
>>>>>> 2009/3/4 Orville Bennett <illogical1 at gmail.com>:
>>>>>>> On Mar 4, 2009, at 10:15 AM, Janus wrote:
>>>>>>>> 2009/3/4 Orville Bennett <illogical1 at gmail.com>:
>>>>>>>>>> 2009/3/4 Orville Bennett <illogical1 at gmail.com>:
>>>>>>>>>>> On Mar 4, 2009, at 9:45 AM, Janus wrote:
>>>>>>>>>>>>>> snip
>>>>>>>>>>>>>
>>>>>>>>>>>>> I had a problem when it was compiling expat. It seems ld
>>>>>>>>>>>>> reported a
>>>>>>>>>>>>> unknown flag (-compatibility_version).
>>>>>>>>>>> Yes. I forgot about that. We'll have to forego compiling
>>>>>>>>>>> everything
>>>>>>>>>>> with gcc-4.2.
>>>>>>>>>>> To do this go back to /opt/local/share/macports/Tcl/port1.0/
>>>>>>>>>>> portconfigure.tcl
>>>>>>>>>>> and change
>>>>>>>>>>> "darwin 8" { set compiler gcc-4.2 } back to "darwin 8" { set
>>>>>>>>>>> compiler
>>>>>>>>>>> gcc-4.0 }
>>>>>>>>>>
>>>>>>>>>> I had it set to apple-gcc-4.2. Should I change it to gcc-4.0
>>>>>>>>>> or
>>>>>>>>>> apple-gcc-4.0?
>>>>>>>>>
>>>>>>>>> gcc-4.0
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Just to be safe 'sudo port -f uninstall installed' and then
>>>>>>>>>>> start
>>>>>>>>>>> again.
>>>>>>>>
>>>>>>>> Are you sure that was what I have to do?
>>>>>>>> qcgs-computer-batc:~ janus$ sudo port -f uninstall installed
>>>>>>>> ---> Deactivating apple-gcc42-devel @5564_0+darwin_8
>>>>>>>> ---> Uninstalling apple-gcc42-devel @5564_0+darwin_8
>>>>>>>> ---> Deactivating cmake @2.6.2_0
>>>>>>>> ---> Uninstalling cmake @2.6.2_0
>>>>>>>>
>>>>>>>> I uninstalled the gcc we are testing!
>>>>>>> mmm, forgot about that. install it again, then install kdeutils4.
>>>>>>
>>>>>> I get exactly the same error when it is compiling expat.
>>>>>> Can it have any relation with cmake? (I have cmake 2.6.2 and
>>>>>> I've read
>>>>>> in somewere that I should use cmake 2.6.3).
>>>>> Then you're still using gcc-4.2 somehow (remember it worked just
>>>>> fine
>>>>> beforehand) ...
>>>>> Paste your portconfigure.tcl file again please.
>>>>
>>>> Here you are: http://pastebin.com/m2d594305
>>>
>>> I did a clean (port clean --all expat) and after, I was able to
>>> compile it without any errors.
>>> I think that what happed is that when I did the port uninstall
>>> installed, expat still there, because it wasn't installed, but as I
>>> didn't do any cleaning, the configurations remains with gcc-4.2
>>>
>>> Continue with kdeutils4 :)
>>>
>>
>> I get an error compiling automoc: http://pastebin.com/f41eeb0e9
>> What can I do?
> I was hoping to just see the word "Success" with a smiley after it.
> *sigh*
> We can dream can't we? :-)
>
> But, according to the error it can't find gcc (and rightfully so).
> Perhaps a case to convert automoc to using the kde4 portgroup.
>
> Anyhoo. the solution is
> sudo port edit automoc
>
> configure.compiler gcc-4.2 --> configure.compiler apple-gcc-4.2
> or whatever we decided to call it.
Ok, that was magic for me.
> Speaking of kde4-1.0.tcl that will need to be edited too.
> vi /opt/local/var/macports/sources/rsync.macports.org/release/ports/
> _resources/port1.0/group/kde4-1.0.tcl
>
> Delete the compiler stuff from that and add the following
By "the compiler stuff" I guess you mean "configure.compiler
apple-gcc-4.2", isn't?
> platform darwin 8 {
> depends_build-append apple-gcc42-devel
> configure.args-append -DCMAKE_C_COMPILER=${prefix}/bin/gcc-4.2 \
> -DCMAKE_CXX_COMPILER=${prefix}/bin/g++-4.2
> }
>
> platform darwin 9 {
> configure.compiler gcc-4.2
> }
>
>
>>
>> --
>> 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)
>
> iEYEARECAAYFAkmxlOkACgkQ2yWVgjgEOKSwngCcCAXtU9M8ip3hlcuDDJ/sfUhm
> zsEAnjp5UWUNLv91IGXyd4xJWpCFbYf0
> =OiOp
> -----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
More information about the kde-mac
mailing list