Changeset 9991 for trunk/doc


Ignore:
Timestamp:
Apr 8, 2003, 2:46:26 PM (23 years ago)
Author:
sandervl
Message:

PF: GCC 3.2.1 updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/GCCBuildInstructions.txt

    r9727 r9991  
    1 GCC compiler how-to instructions                                  (Revision 2)
     1GCC compiler how-to instructions                                  (Revision 3)
    22===============================================================================
    3 Odin libraries now use Gnu Compiler Suite to built some DLL's it require.
     3Odin libraries now use Gnu Compiler Suite to built some DLL's they require.
    44
    5 Currently you need Gnu C/C++ 3.0.3 and later compilers to build it.
    6 Due to some bugs in 3.0.3 we expect 3.2.x to be a requirement after testing.
    7 For now code compiles and works only on 3.0.3.
     5You will need GNU C/C++ 3.2.1 or later version compilers to build it.
     6For current open GCC Compiler Bugs please visit http://xtracker.netlabs.org
    87
    98
    109To set up EMX for Odin build:
    1110
    12 First get EMX runtime http://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip Add EMX\DLL to your LibPath.
    13 Be sure to add to PATH emx\bin directory. To check that you have all you need
    14 type 'emxrev' at your command prompt.
     11First get EMX runtime http://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip
     12Add EMX\DLL to your LIBPATH. Be sure to add to PATH emx\bin directory.
     13To check that you have all you need type 'emxrev' at your command prompt.
    1514
    1615o GNU Make:
     
    3837Add three variables to config.sys and reboot:
    3938
     39set EMX=x:\emx
    4040set C_INCLUDE_PATH=x:/emx/include;
    4141set CPLUS_INCLUDE_PATH=x:/emx/include;
     
    4343
    4444If you do not want to add them to config.sys add them to newgcc.cmd
    45 during GCC 3.0.3 installation phase like this:
     45during GCC 3.2.1 installation phase like this:
    4646
     47set EMX=x:\emx
    4748set C_INCLUDE_PATH=%EMX_PATH%include;
    4849set CPLUS_INCLUDE_PATH=%EMX_PATH%include;
     
    5051
    5152after SET PATH line. Be warned however that all EMX will function correctly
    52 only in a window where you've launched newgcc.cmd
     53only in a window where you've launched newgcc.cmd.
     54
     55!! NEW !!
     56
     57Note that new Odin build system requires you to setup 'EMX' variable that
     58points to EMX path. Note OS/2 slashes used there.
    5359
    5460o GNU Utils
     
    6167so OS/2 can find and launch utils from anywhere.
    6268
    63 o GCC 3.0.3
     69o GCC 3.2.1
    6470
    6571Get:
    6672    * binutils-os2-2.11.2-bin.zip
    6773    * emx-strt-fix-0.0.2.zip
    68     * gcc-os2-3.0.3-beta-gcc.zip
    69     * gcc-os2-3.0.3-beta-gpp.zip
     74    * gcc-os2-3.2.1-beta-gcc.zip
     75    * gcc-os2-3.2.1-beta-gpp.zip
    7076    * gettext-os2-0.10.40-bin.zip
    7177
    72 from ftp://ftp.netlabs.org/pub/gcc.
     78from ftp://ftp.netlabs.org/incoming/gcc-3.2.1-r2 or later from
     79ftp://ftp.netlabs.org/pub/gcc.
    7380
    7481Unzip each of these packages in the directory above EMX. All the extracted
     
    8996Launch it afterwards.
    9097
    91 Launch gcc -v and check it is 3.0.3
     98Launch gcc -v and check it is 3.2.1
    9299
    93100Do NOT leave window where you've launched newgcc.cmd
    94101
    951021. Go to X:\EMX\LIB\ and type 'make'.
    96 2. Go to X:\EMX\LIB\GCC-LIB\I386-PC-OS2_EMX\3.0.3\and type 'make'.
     1032. Go to X:\EMX\LIB\GCC-LIB\I386-PC-OS2-EMX\3.2.1\and type 'make'.
    97104
    98105Go to Odin directory and start ConfigureGCC.cmd - this should produce no errors.
    99106Note that script assumes gcc.exe, g++.exe, as.exe to be in the PATH.
    100107
     108o Updating from 3.0.3
     109
     110Before using 3.2.1 please remove 3.0.3 compiler from your system. To do so
     111follow this steps:
     112
     113   * Delete x:\emx\lib\gcc-lib\i386-pc-os2_emx
     114   * Delete x:\emx\include\g++-v3
     115   * Install 3.2.1 normally and run ConfigureGCC.cmd to check your installation
     116
     117
     118
Note: See TracChangeset for help on using the changeset viewer.