Back to wiki

RCS History

/ TOP / supported-platforms.mdwn

Differences for revision 1.19 from 1.18


--- supported-platforms.mdwn	2009/02/17 20:23:20	1.18
+++ supported-platforms.mdwn	2009/04/12 23:25:55	1.19
@@ -1,6 +1,6 @@
 The following list describes steps to make PCC the system compiler.
 
-__Microsoft Windows__
+__Microsoft Windows__  *(stable)*
 
 Snapshots are now available from the [pcc ftp server](http://pcc.ludd.ltu.se/ftp/pub/win32/) which include all the executables and libraries.  Alternatively, you can build your own system using the following instructions.
 
@@ -8,7 +8,7 @@
 
 You must also build and install the pcc-libs module which contains libpcc.a and runtime startup code.
 
-__Fedora Core 8__
+__Fedora Core 8__ *(stable)*
 
 You must build and install the pcc-libs module which contains libpcc.a and runtime startup code.
 
@@ -28,7 +28,7 @@
 
 You must build and install the pcc-libs module which contains libpcc.a and runtime startup code.
 
-__Ubuntu Linux 8.04__
+__Ubuntu Linux 8.04__ *(stable)*
 
 You must build and install the pcc-libs module which contains libpcc.a and runtime startup code.
 
@@ -86,7 +86,7 @@
 
 Unless you're using the MirPorts Framework to install pcc, you must build and install the pcc-libs module.
 
-__MirBSD-current (i386)__
+__MirBSD-current (i386)__ *(stable)*
 
 The MirPorts Framework contains a tested snapshot in lang/pcc, which works without the pcc-libs module, as the required quad functions are all part of libc.
 
@@ -94,7 +94,7 @@
 
 The necessary header changes are integrated starting MirBSD #10. It is, however, not possible yet to compile MirBSD itself with pcc; using it as ports compiler is planned.
 
-__NetBSD-current (i386/mips/arm/powerpc)__
+__NetBSD-current (i386/mips/arm/powerpc)__  *(i386 stable, mips/arm/powerpc experimental)*
 
 NetBSD-current (to be released as NetBSD 5.0) should contain support for PCC to build applications.
 
@@ -198,7 +198,7 @@
  
      #define        va_start(ap, last) \
 
-__Mac OS X 10.4 (powerpc)__
+__Mac OS X 10.4 (powerpc)__  *(experimental)*
 
 You must build and install the pcc-libs module which contains libpcc.a and runtime startup code.
 
@@ -217,13 +217,13 @@
 
     #endif
 
-__Mac OS X 10.5 (powerpc)__
+__Mac OS X 10.5 (powerpc)__  *(experimental)*
 
 You must build and install the pcc-libs module which contains libpcc.a and runtime startup code.
 
 Some of the issues may apply from OS X 10.4 discussed above.
 
-__Mac OS X 10.5 (intel)__
+__Mac OS X 10.5 (intel)__  *(stable)*
 
 You must build and install the pcc-libs module which contains libpcc.a and runtime startup code.
 
@@ -233,7 +233,7 @@
 
 Some of the issues may apply from OS X 10.4 discussed above.
 
-__FreeBSD 7__
+__FreeBSD 7__ 
 
 You probably want to add something like this to sys/cdefs.h. 
 
@@ -256,4 +256,46 @@
   
     #if __GNUC_PREREQ__(2, 96) 
 
-This patch only works if you have pcc compiled with GCC_COMPAT (which is the default).  Otherwise you want to use the _Pragmas() as shown in patches for other operating systems.
\ No newline at end of file
+This patch only works if you have pcc compiled with GCC_COMPAT (which is the default).  Otherwise you want to use the _Pragmas() as shown in patches for other operating systems.
+
+__Solaris 10 x86__  *(stable)*
+
+It's possible to cross-build pcc to a fresh solaris 10 installation.  Although solaris 10 has a toolchain in /usr/ccs/bin, there isn't a cc compiler.  To cross-build pcc for solaris 10:
+
+- tar /usr/include and /lib on the solaris system and transfer these directories to /usr/local/i386-solaris on the build system
+- build a pcc cross-compiler on the build system: ./configure --target=i386-solaris&& make&& make install
+- build GNU binutils on the build system: ./configure --target=i386-solaris&& make&& make install
+
+Now you have a full solaris development system on you build machine.  The next step is to build pcc to run on the solaris system:
+
+- cross-build pcc for the solaris host: CC=i386-solaris-pcc ./configure --host=i386-solaris --target=i386-solaris
+- cross-build libpcc for the solaris host: CC=i386-solaris-pcc ./configure --target=i386-solaris
+
+Now you have pcc compiled to run on the solaris system.  Transfer these files to the solaris system:
+
+- transfer pcc (/usr/local/bin), cpp (/usr/local/libexec), ccom (/usr/local/libexec), libpcc.a (/usr/local/lib/pcc/i386-solaris/0.9.9/lib/) to solaris system
+- ensure /usr/ccs is in the path on the solaris system
+- pcc should now run as the system compiler - you will need to update some solaris header files (see below)
+
+The pcc compiler can now be used on the solaris system to build itself:
+
+- download m4-1.4.1.tar.gz, configure and install
+- download flex-2.5.34, configure and install
+- download pcc, configure and install
+
+You must build and install the pcc-libs module which contains libpcc.a and runtime startup code.
+
+Additionally, stdargs.h doesn't work correctly.  Paste the following lines into /usr/local/lib/pcc/stdarg.h:
+
+    #ifndef _STDARG_H_
+    #define _STDARG_H_
+
+    #define va_list char *
+    #define _VA_LIST
+
+    #define va_start(ap, last)      __builtin_stdarg_start((ap), last)
+    #define va_arg(ap, type)        __builtin_va_arg((ap), type)
+    #define va_end(ap)              __builtin_va_end((ap))
+    #define va_copy(dest, src)      __builtin_va_copy((dest), (src))
+
+    #endif

Powered by rcshistory.cgi 0.3