From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Mac OS X cross compiler Date: Thu, 23 Jun 2016 09:10:12 +0100 Organization: A noiseless patient Spider Message-ID: References: <54d72eb5-8322-4542-9b9a-3625d7e253fa@googlegroups.com> <871177589.488332576.660331.laguest-archeia.com@nntp.aioe.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="15bacc9237911e76a94be23536470c55"; logging-data="5141"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ct9nYSYEzIDd7TISP6SxombbslWmVY1A=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:9LlN226Zuf3trMuOim9jZtzeIaY= sha1:KHfV0pf1M1sdT+oGdVljVo57K2k= Xref: news.eternal-september.org comp.lang.ada:30888 Date: 2016-06-23T09:10:12+01:00 List-Id: Luke A. Guest writes: > Just wanted to ask though, I don't need a multilib capable compiler > anymore right? Mac OS X is all 64 bit right? Not quite, but I wouldn't worry. After some searching I found a 32-bit executable, and it still runs; $ file /Applications/Hugin/Hugin.app/Contents/MacOS/Hugin /Applications/Hugin/Hugin.app/Contents/MacOS/Hugin: Mach-O executable i386 GNAT GPL 2016 has 6 fat binary libraries, all variants of libgcc. The C compiler can produce a 32-bit executable: $ which gcc /opt/gnat-gpl-2016/bin/gcc $ gcc hi.c $ file a.out a.out: Mach-O 64-bit executable x86_64 $ gcc hi.c -m32 $ file a.out a.out: Mach-O executable i386 and the Ada compiler on its own can produce a 32-bit object: $ gcc -c hello.adb -m32 $ file hello.o hello.o: Mach-O object i386 but gnatmake won't: $ gnatmake -c -u -f -m32 hello.adb gnatmake: RTS path not valid: missing adainclude and adalib directories