<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro versus Snow Leopard</title>
		<link>http://www.allegro.cc/forums/view/601429</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 01 Sep 2009 15:16:33 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>First try:
</p><pre>
thomas-hartes-macbook-pro-15:allegro-4.2.2 thomasharte$ chmod +x ./fix.sh
thomas-hartes-macbook-pro-15:allegro-4.2.2 thomasharte$ ./fix.sh macosx-universal
Configuring Allegro for Mac OSX Universal Binary ...
Done!
thomas-hartes-macbook-pro-15:allegro-4.2.2 thomasharte$ make
Compiling Allegro for MacOS X, optimised. Please wait...
misc/gcc-uni.sh -DALLEGRO_SRC -DALLEGRO_LIB_BUILD  -Wall -Wno-unused -Wno-long-double  -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-common -pipe -dynamic -DALLEGRO_NO_ASM -I. -I./include -o obj/macosx/alleg/allegro.o -c src/allegro.c
cc1: error: unrecognized command line option &quot;-Wno-long-double&quot;
make: *** [obj/macosx/alleg/allegro.o] Error 1
</pre><p>
I assume this is also relevant:
</p><pre>
thomas-hartes-macbook-pro-15:allegro-4.2.2 thomasharte$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
Copyright (C) 2007 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.
</pre><p>
So Apple aren&#39;t exactly on the bleeding edge with that one...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Sat, 29 Aug 2009 01:43:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I didn&#39;t see -Wno-long-double in any of the gcc manual&#39;s</p><p><a href="http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Warning-Options.html#Warning-Options">gcc 4.4.1</a><br /><a href="http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Warning-Options.html#Warning-Options">gcc 4.3.4</a><br /><a href="http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Warning-Options.html#Warning-Options">gcc 4.2.4</a><br /><a href="http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Warning-Options.html#Warning-Options">gcc 4.1.2</a></p><p>Although on my own machine gcc seems to accept it
</p><div class="source-code snippet"><div class="inner"><pre>$ gcc <span class="k3">-</span>Wno-long-double x.c
jon@jon-laptop ~<span class="k3">/</span>tmp $ gcc <span class="k3">-</span><span class="k3">-</span>version
gcc <span class="k2">(</span>Ubuntu <span class="n">4</span>.<span class="n">3</span>.<span class="n">3</span><span class="k3">-</span><span class="n">5</span>ubuntu4<span class="k2">)</span> <span class="n">4</span>.<span class="n">3</span>.<span class="n">3</span>
Copyright <span class="k2">(</span>C<span class="k2">)</span> <span class="n">2008</span> Free Software Foundation, Inc.
This is <a href="http://www.delorie.com/djgpp/doc/libc/libc_350.html" target="_blank">free</a> software<span class="k2">;</span> see the source <span class="k1">for</span> copying conditions.  There is NO
warranty<span class="k2">;</span> <span class="k1">not</span> even <span class="k1">for</span> MERCHANTABILITY <span class="k1">or</span> FITNESS FOR A PARTICULAR PURPOSE.
</pre></div></div><p>

Is it an undocumented option or am I just looking in the wrong place?</p><p>&lt;edit&gt;<br />But on my gentoo machine its not a valid option
</p><div class="source-code snippet"><div class="inner"><pre>$ gcc <span class="k3">-</span>Wno-long-double x.c
cc1: error: unrecognized command <a href="http://www.allegro.cc/manual/line" target="_blank"><span class="a">line</span></a> option <span class="s">"-Wno-long-double"</span>
kazzmir@crystalis ~<span class="k3">/</span>tmp $ gcc <span class="k3">-</span><span class="k3">-</span>version
gcc <span class="k2">(</span>GCC<span class="k2">)</span> <span class="n">4</span>.<span class="n">1</span>.<span class="n">2</span> <span class="k2">(</span>Gentoo <span class="n">4</span>.<span class="n">1</span>.<span class="n">2</span> p1.0.2<span class="k2">)</span>
Copyright <span class="k2">(</span>C<span class="k2">)</span> <span class="n">2006</span> Free Software Foundation, Inc.
This is <a href="http://www.delorie.com/djgpp/doc/libc/libc_350.html" target="_blank">free</a> software<span class="k2">;</span> see the source <span class="k1">for</span> copying conditions.  There is NO
warranty<span class="k2">;</span> <span class="k1">not</span> even <span class="k1">for</span> MERCHANTABILITY <span class="k1">or</span> FITNESS FOR A PARTICULAR PURPOSE.
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Sat, 29 Aug 2009 01:51:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Further to this, removing -Wno-long-double from makefile.osx and trying again gives:</p><pre>
thomas-hartes-macbook-pro-15:allegro-4.2.2 thomasharte$ make
Compiling Allegro for MacOS X, optimised. Please wait...
misc/gcc-uni.sh -DALLEGRO_SRC -DALLEGRO_LIB_BUILD  -Wall -Wno-unused  -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-common -pipe -dynamic -DALLEGRO_NO_ASM -I. -I./include -o obj/macosx/alleg/allegro.o -c src/allegro.c
In file included from ./include/allegro/base.h:26,
                 from ./include/allegro.h:25,
                 from src/allegro.c:23:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
src/allegro.c: In function ‘allegro_message’:
src/allegro.c:501: warning: implicit declaration of function ‘va_start’
src/allegro.c:503: warning: implicit declaration of function ‘va_end’
make: *** [obj/macosx/alleg/allegro.o] Error 1
</pre><p>
Per Spotlight, I have versions of stdarg.h installed at:
</p><ul><li><p>/Developer/usr/lib/gcc/i686-apple-darwin10/4.0.1/include/stdarg.h
</p></li><li><p>/Developer/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/install-tools/include/stdarg.h
</p></li><li><p>/Developer/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/stdarg.h
</p></li><li><p>/Developer/usr/llvm-gcc-4.2/lib/gcc/powerpc-apple-darwin10/4.2.1/install-tools/include/stdarg.h
</p></li><li><p>/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.2.1/install-tools/include/stdarg.h
</p></li><li><p>/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/install-tools/include/stdarg.h
</p></li><li><p>/Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/include/stdarg.h
</p></li><li><p>/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/stdarg.h
</p></li><li><p>/Developer/usr/lib/gcc/i686-apple-darwin10/4.2.1/install-tools/include/stdarg.h
</p></li><li><p>/Developer/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include/stdarg.h
</p></li><li><p>/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/stdarg.h
</p></li><li><p>/Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/install-tools/include/stdarg.h
</p></li><li><p>/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.2.1/include/stdarg.h
</p></li><li><p>/Developer/usr/llvm-gcc-4.2/lib/gcc/powerpc-apple-darwin10/4.2.1/include/stdarg.h
</p></li><li><p>/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/include/stdarg.h
</p></li><li><p>/Developer/usr/lib/gcc/i686-apple-darwin10/4.0.1/install-tools/include/stdarg.h
</p></li><li><p>/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/stdarg.h
</p></li><li><p>/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/stdarg.h
</p></li><li><p>/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/install-tools/include/stdarg.h
</p></li><li><p>/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/stdarg.h
</p></li><li><p>/Developer/usr/lib/clang/1.0/include/stdarg.h</p></li></ul><p>EDIT: I can confirm that if you manually edit makefile.osx to remove the offending warning flag then an Intel-only build works correctly on my machine.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Sat, 29 Aug 2009 02:12:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It seems to be a gcc 3 option. I wonder why it was there in the first place. It&#39;s been in the makefile since the initial checkin, in 2003. I&#39;ll delete it in the 4.4 branch.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Sat, 29 Aug 2009 04:41:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/601429/827480#target">Thomas Harte</a> said:</div><div class="quote"><p>/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory</p></div></div><p>
Sounds like a problem with the XCode installation to me...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sun, 30 Aug 2009 02:14:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/601429/827585#target">Evert</a> said:</div><div class="quote"><p>Sounds like a problem with the XCode installation to me...</p></div></div><p>
It&#39;s Xcode 3.2, newly installed from the Snow Leopard disc with the current iPhone OS 3.1 beta development kit installed in addition. This is actually a new way of doing things for Apple as previously you downloaded either the Mac alone or Mac+iPhone version and the latter included and replaced the former. Now you download Xcode then grab the additional iPhone stuff.</p><p>If there&#39;s an installation problem, I&#39;d therefore suggest it&#39;s going to be exactly the same for everyone.</p><p>Anyway, having looked into it more thoroughly, stdarg.h is there (though Spotlight seems not to have found it), and contains:
</p><div class="source-code snippet"><div class="inner"><pre><span class="c">/* This file is public domain.  */</span>
<span class="c">/* GCC uses its own copy of this header */</span>
<span class="p">#if defined(__GNUC__)</span>
<span class="p">#include_next &lt;stdarg.h&gt;</span>
<span class="p">#elif defined(__MWERKS__)</span>
<span class="p">#include "mw_stdarg.h"</span>
<span class="p">#else</span>
<span class="p">#error "This header only supports __MWERKS__."</span>
<span class="p">#endif</span>
</pre></div></div><p>
Apart from the #error message being grammatically poor and factually inaccurate, the main thing is that it is attempting to #include_next the real stdarg.h. The stdarg.h in 10.4u&#39;s kernel.framework is complete and correct.</p><p>I&#39;d therefore guess that the solution for 10.6 users who want to build for 10.4 universal (the oldest still available SDK) need to somehow modify the makefile to add whatever is necessary to include Kernel.framework&#39;s include path as a search path for headers.</p><p>For the interim, a copy of a universal build of the Allegro framework with full headers and liballeg_main.a included is attached that I quite possibly made back on 10.4.</p><p>Bonus Xcode tip: the default value for the build setting &quot;C/C++ Compiler Version&quot; is GCC 4.2. GCC 4.2 is not compatible with the 10.4 SDK. So, to build for 10.4, you need to switch both the target SDK and the compiler down to GCC 4.0. And neither LLVM GCC 4.2 or Clang LLVM 4.0 can build for 10.4 either. Building for 10.5 or 10.6 allows you to use whichever of the four compiler chains you wish.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Sun, 30 Aug 2009 16:40:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hey Thomas, so how you ended up with allegro on snow leopard ?, unversal binary ?, intel only ?, or did the previous compiled version worked ?</p><p>Regards.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (vbovio)</author>
		<pubDate>Mon, 31 Aug 2009 20:34:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Universal Binary, files carried over from either a 10.4 or 10.5 build that was so long ago that I&#39;ve forgotten even roughly when. I&#39;ve been lucky that 4.2 has been the current stable release for so very long — I&#39;m not sure what I&#39;ll do about 4.4. And 4.9 is an entirely separate code base with an entirely separate build system, so isn&#39;t really relevant to these concerns.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Harte)</author>
		<pubDate>Tue, 01 Sep 2009 15:16:33 +0000</pubDate>
	</item>
</rss>
