Back to wiki

RCS History

/ TOP / supported-platforms.mdwn

Differences for revision 1.12 from 1.11


--- supported-platforms.mdwn	2008/11/22 05:42:45	1.11
+++ supported-platforms.mdwn	2008/12/02 22:13:59	1.12
@@ -22,6 +22,38 @@
 
 You must build and install the pcc-libs module which contains libpcc.a and stddef.h header files.
 
+__Ubuntu Linux 8.04__
+
+You must build and install the pcc-libs module which contains libpcc.a and stddef.h header files.
+
+The alloca.h glibc header file is broken so alloca() doesn't work.  The header file undefines alloca and then fails to set it to something useful if _GNUC_ is not defined.
+
+Try putting the followign into /usr/local/include/pcc/alloca.h:
+
+#ifndef _ALLOCA_H
+#define _ALLOCA_H
+
+#include <features.h>
+
+#define __need_size_t
+#include <stddef.h>
+
+__BEGIN_DECLS
+
+/* Remove any previous definitions.  */
+#undef  alloca
+
+/* Allocate a block that will be freed when the calling function exits.  */
+extern void *alloca (size_t __size) __THROW;
+
+#if defined(__GNUC__) || defined(__PCC__)
+# define alloca(size)   __builtin_alloca (size)
+#endif /* GCC.  */
+
+__END_DECLS
+
+#endif /* alloca.h */
+
 __Ubuntu Linux: Intrepid Ibex 8.10__
   
 You must build and install the pcc-libs module which contains libpcc.a and stddef.h header files.

Powered by rcshistory.cgi 0.3