[KDE/Mac] Trying to compile Kile on MacOS 10.4.11: Failed at apple-gcc42

Orville Bennett illogical1 at gmail.com
Sat Feb 28 15:14:54 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Feb 27, 2009, at 9:49 PM, Janus wrote:

> 2009/2/28 Orville Bennett <illogical1 at gmail.com>:
>>>>> Glad you figured it out. There's another person on this list
>>>>> interested in kile so please do let us know how/if it works for  
>>>>> you.
>>>>
>>>> Thanks. Sadly, it doesn't work. I compiled without problems
>>>> apple-gcc42, and did all the ditto commands as the "Manifesto"  
>>>> says,
>>>> also, just in case, I change by hand the gcc symbolic link to point
>>>> to
>>>> gcc-apple-4.2.
>> Eh? The instructions from the Manifesto should give you plain gcc-4.2
>> executables, not gcc-apple-4.2. I think you may have used to  
>> incorrect
>> portfile (i.e. the one included with macports and not the one from  
>> the
>> trac ticket). The macports apple-gcc42 port, last I checked, doesn't
>> build c++ compilers (so you'll get a gcc-apple-4.2 for instance, but
>> no g++-apple-4.2
>
> I don't have any other profile for apple-gcc42 in my macports (I am in
> MacOS 10.4.11)
You have to have at least two. Macports comes with apple-gcc42. The  
Manifesto links to an apple-gcc42 portfile which you have to download  
and build.


>
>>> When I do port install kdeutils4 to get version 4.2 of kde, I get a
>>> really rare error. I am in a PowerBook G4, it has a PPC procesor,  
>>> and
>>> I get the error:
>>> .....
>>> [ 93%] Built target OSXScriptLauncher
>>> Linking CXX executable ../bin/ccmake
>>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386
>>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning
>>> /usr/lib/libcurses.dylib cputype (18, architecture ppc) does not  
>>> match
>>> cputype (7) for specified -arch flag: i386 (file not loaded)
>>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
>>> .....
>>>
>>> Why is it trying to compile i386 code? Where can I modify to don't?
>> I'm guessing that you have +universal somewhere in you variants.
>> If you're installing from macports though, macports' curses not the
>> system's should be used. Seems like you're doing something funky. And
>> without more output from the error, I can't help you.
>
> Yes, I have +universal in /opt/local/etc/macports/variants.conf as the
> manifesto recomends.
If you're not planning on packaging then it's more hassle than it's  
worth. Just compile for the platform you have.

Universal binaries are those which have both ppc and i386 architecture  
information compiled in. Chances are you compiled only for you're  
platform previously and, pre-Manifesto, you have only ppc code. Now  
when you try to compile universal apps, any attempt to find i386  
versions will fail because you didn't install them previously.

If you wanted to compile with +universal you'd have to rebuild  
everything, to get all your programs to have universal binaries.

> I will take it off and try again (and this time, I will send the
> complete error output, sorry).
Grazie.

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

iEYEARECAAYFAkmpRt4ACgkQ2yWVgjgEOKSWFACfX8jH1OEv4zpYy6VqmbZTksMT
RTQAoI5iDNT9DtYJPGQP2zjocE9qdhZH
=s/1y
-----END PGP SIGNATURE-----


More information about the kde-mac mailing list