Compile i386 / x86_64 on Mac 10.6

View: New views
5 Messages — Rating Filter:   Alert me  

Compile i386 / x86_64 on Mac 10.6

by Jonas Schnelli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

i did try to compile gnupg for mac 10.6 as fat binary i386 / x86_64.
I've getting a error while compiling multpile archs:

gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../intl    -arch i386  
-arch x86_64 -g -Os -pipe -no-cpp-precomp -Wall -Wno-pointer-sign -MT  
logger.o -MD -MP -MF .deps/logger.Tpo -c -o logger.o logger.c
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with  
multiple -arch flags
make[2]: *** [logger.o] Error 1


is there a chance to build a multiple archs?
anyone tried this?

thanks
--
jonas


°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
include7
Jonas Schnelli
Staffelstrasse 8
CH-8045 Zürich
Switzerland
Office: +41 44 500 16 70

Skype: jonas.schnelli
Mail: jonas.schnelli@...
PGP Public Key: www.include7.ch/jspk.txt
Web: www.include7.ch
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°




_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

Re: Compile i386 / x86_64 on Mac 10.6

by Benjamin Donnachie-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/2 Jonas Schnelli <jonas.schnelli@...>:
> is there a chance to build a multiple archs?
> anyone tried this?

Which version are you compiling?  I can send you full instructions but
you may just be better off downloading a precompiled version from
either http://macgpg.sourceforge.net or http://macgpg2.sourceforge.net

Ben

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

Re: Compile i386 / x86_64 on Mac 10.6

by Jonas Schnelli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> 2009/9/2 Jonas Schnelli <jonas.schnelli@...>:
>> is there a chance to build a multiple archs?
>> anyone tried this?
>
> Which version are you compiling?  I can send you full instructions but
> you may just be better off downloading a precompiled version from
> either http://macgpg.sourceforge.net or http://macgpg2.sourceforge.net
>

I try to compile the 1.4.9 for Mac OS 10.6 32/64 bit fat.
So theres no precompiled version for that.
The reason while im doing this is because GPGMail (GPG Extension for  
Mac builtin Mail App) is running now in 64bit mode. So all  
dependencies must also run 64bit.
Because Mac Mail runs in 32/64 fat mode, i would also like to build  
gpg in 32/64 mode.

if there is any who did manage to build 32/64 bit fat, i could use  
some help.
if not, i will try to release a 32 and a 64 bit version.




> Ben

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
include7
Jonas Schnelli
Staffelstrasse 8
CH-8045 Zürich
Switzerland
Office: +41 44 500 16 70

Skype: jonas.schnelli
Mail: jonas.schnelli@...
PGP Public Key: www.include7.ch/jspk.txt
Web: www.include7.ch
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°




_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

Re: Compile i386 / x86_64 on Mac 10.6

by David Shaw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sep 2, 2009, at 5:56 AM, Jonas Schnelli wrote:

> Hi
>
> i did try to compile gnupg for mac 10.6 as fat binary i386 / x86_64.
> I've getting a error while compiling multpile archs:
>
> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../intl    -arch  
> i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -Wall -Wno-pointer-
> sign -MT logger.o -MD -MP -MF .deps/logger.Tpo -c -o logger.o logger.c
> gcc-4.2: -E, -S, -save-temps and -M options are not allowed with  
> multiple -arch flags
> make[2]: *** [logger.o] Error 1
>
>
> is there a chance to build a multiple archs?

Try this:

./configure CFLAGS="-arch x86_64 -arch i386" --disable-dependency-
tracking --disable-asm

(Not tested, as I haven't upgraded to 10.6 yet, but it is correct on  
10.5)

David


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

Re: Compile i386 / x86_64 on Mac 10.6

by Benjamin Donnachie-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/2 Jonas Schnelli <jonas.schnelli@...>:
> The reason while im doing this is because GPGMail (GPG Extension for Mac
> builtin Mail App) is running now in 64bit mode. So all dependencies must
> also run 64bit.

The 32-bit version of gpg2 runs just fine under Snow Leopard with
64-bit mail.  In recent tests, there was no speed increase from
64-bits to justify the i386 X86_64 fat binary.

Ben
(MacGPG2!)

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel