[KDE/Mac] apple-gcc42-devel

Janus janus at rtfm.org.ar
Wed Mar 4 15:45:26 CET 2009


2009/3/4 Janus <janus at rtfm.org.ar>:
> 2009/3/4 Janus <janus at rtfm.org.ar>:
>> 2009/3/4 Orville Bennett <illogical1 at gmail.com>:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>>
>>> On Mar 4, 2009, at 3:46 AM, Janus wrote:
>>>
>>>> 2009/3/3 Orville Bennett <illogical1 at gmail.com>:
>>>>> -----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?
>>>>>
>>>>
>>>> Here is my portconfigure.tcl after the modifications:
>>>> http://pastebin.com/m98d2e4f
>>> One more thing: after the line:
>>> apple-gcc-4.0 { set name "MacPorts Apple gcc 4.0" }
>>> please add
>>> apple-gcc-4.2 { set name "MacPorts Apple gcc 4.2" }
>>>
>>> then edit /opt/local/var/macports/sources/rsync.macports.org/release/
>>> ports/_resources/port1.0/group/kde4-1.0.tcl and change
>>>
>>> configure.compiler      gcc-4.2
>>> to
>>> configure.compiler      apple-gcc-4.2
>>
>> Done.
>>
>>> Once you've done that and saved you _should_ be able to compile kde.
>>> Hopefully.
>>> Maybe. :-)
>>
>> I will try it. (It gives a great confidence to see you so sure) :P
>> Starting with: sudo port -d install kdeutils4
>
> I had a problem when it was compiling expat. It seems ld reported a
> unknown flag (-compatibility_version).
> Here is the complete output:
>
> qcgs-computer-batc:~ janus$ sudo port -d install expat
> Password:
> DEBUG: Found port in
> file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
> DEBUG: Changing to port directory:
> /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
> DEBUG: setting option os.universal_supported to yes
> DEBUG: org.macports.load registered provides 'load', a pre-existing
> procedure. Target override will not be provided
> DEBUG: org.macports.distfiles registered provides 'distfiles', a
> pre-existing procedure. Target override will not be provided
> DEBUG: adding the default universal variant
> DEBUG: Requested variant powerpc is not provided by port expat.
> DEBUG: Requested variant darwin is not provided by port expat.
> DEBUG: Requested variant qt4 is not provided by port expat.
> DEBUG: Requested variant x11 is not provided by port expat.
> DEBUG: Requested variant no_x11 is not provided by port expat.
> DEBUG: Requested variant macosx is not provided by port expat.
> DEBUG: Requested variant quartz is not provided by port expat.
> DEBUG: Executing org.macports.main (expat)
> DEBUG: Skipping completed org.macports.fetch (expat)
> DEBUG: Skipping completed org.macports.checksum (expat)
> DEBUG: Skipping completed org.macports.extract (expat)
> DEBUG: Skipping completed org.macports.patch (expat)
> DEBUG: Skipping completed org.macports.configure (expat)
> --->  Building expat
> DEBUG: Executing org.macports.build (expat)
> DEBUG: port allows a parallel build
> DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
> DEBUG: Assembled command: 'cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-2.0.1"
> && gnumake all'
> /bin/sh ./libtool --silent --mode=link /opt/local/bin/gcc-4.2 -I./lib
> -I. -O2 -mmacosx-version-min=10.4 -Wall -Wmissing-prototypes
> -Wstrict-prototypes -fexceptions  -I/opt/local/include
> -DHAVE_EXPAT_CONFIG_H -no-undefined -version-info 6:2:5 -rpath
> /opt/local/lib -L/opt/local/lib -o libexpat.la lib/xmlparse.lo
> lib/xmltok.lo lib/xmlrole.lo
> /usr/bin/ld: unknown flag: -compatibility_version
> collect2: ld returned 1 exit status
> gnumake: *** [libexpat.la] Error 1
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-2.0.1"
> && gnumake all " returned error 2
> Command output: /bin/sh ./libtool --silent --mode=link
> /opt/local/bin/gcc-4.2 -I./lib -I. -O2 -mmacosx-version-min=10.4 -Wall
> -Wmissing-prototypes -Wstrict-prototypes -fexceptions
> -I/opt/local/include -DHAVE_EXPAT_CONFIG_H -no-undefined -version-info
> 6:2:5 -rpath /opt/local/lib -L/opt/local/lib -o libexpat.la
> lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
> /usr/bin/ld: unknown flag: -compatibility_version
> collect2: ld returned 1 exit status
> gnumake: *** [libexpat.la] Error 1
>
> Warning: the following items did not execute (for expat):
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> Error: Status 1 encountered during processing.
>

This error is reported in everywhere (look at google).

-- 
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