- Timestamp:
- Apr 8, 2003, 2:46:26 PM (23 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ConfigureGCC.cmd (modified) (6 diffs)
-
doc/GCCBuildInstructions.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ConfigureGCC.cmd
r9629 r9991 1 /* $Id: ConfigureGCC.cmd,v 1. 1 2003-01-06 13:21:40sandervl Exp $1 /* $Id: ConfigureGCC.cmd,v 1.2 2003-04-08 12:46:04 sandervl Exp $ 2 2 * 3 3 * Main configure file for Odin32. (For the New Build System.) … … 196 196 197 197 say 'Checking compiler version.' 198 rc = CheckCmdOutput('gcc --version', 0, 1,'3. 0.3');199 if (rc = 0) then rc = CheckCmdOutput('g++ --version', 0, 1,'3. 0.3');198 rc = CheckCmdOutput('gcc --version', 0, 1,'3.2.1'); 199 if (rc = 0) then rc = CheckCmdOutput('g++ --version', 0, 1,'3.2.1'); 200 200 if (rc = 0) then rc = CheckCmdOutput('as --version', 0, 1,'GNU assembler 2.11.2'); 201 201 if (rc = 99 ) then … … 203 203 say '' 204 204 say 'Version mistmatch, while checking Gnu Compiler Suite!' 205 say 'You should have GCC 3. 0.3installed. Also you should set it as an'205 say 'You should have GCC 3.2.1 installed. Also you should set it as an' 206 206 say 'active compiler before launching configure, if you have more than' 207 207 say 'one GCC compiler available.' … … 210 210 end 211 211 212 say 'GCC compiler 3. 0.3found and it is active.'212 say 'GCC compiler 3.2.1 found and it is active.' 213 213 say 'Building test samples:' 214 214 call charout ,'C compiler - a.out mode ->' … … 256 256 257 257 sOutput = emxPath 258 sOutput = sOutput || 'lib\gcc-lib\i386-pc-os2 _emx\3.0.3\weaksyms.omf';258 sOutput = sOutput || 'lib\gcc-lib\i386-pc-os2-emx\3.2.1\weaksyms.omf'; 259 259 if (\CfgVerifyFile(sOutput,0)) then 260 260 do … … 262 262 say 'Error finding weak symbols file in GCC compiler suite structure.' 263 263 say 'This file is critical for OMF files. Please check whether you did' 264 say ''make' command in ''...emx\lib\gcc-lib\i386-pc-os2 _emx\3.0.3\'' directory'264 say ''make' command in ''...emx\lib\gcc-lib\i386-pc-os2-emx\3.2.1\'' directory' 265 265 say 'Configure aborted.' 266 266 exit(99) -
trunk/doc/GCCBuildInstructions.txt
r9727 r9991 1 GCC compiler how-to instructions (Revision 2)1 GCC compiler how-to instructions (Revision 3) 2 2 =============================================================================== 3 Odin libraries now use Gnu Compiler Suite to built some DLL's itrequire.3 Odin libraries now use Gnu Compiler Suite to built some DLL's they require. 4 4 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. 5 You will need GNU C/C++ 3.2.1 or later version compilers to build it. 6 For current open GCC Compiler Bugs please visit http://xtracker.netlabs.org 8 7 9 8 10 9 To set up EMX for Odin build: 11 10 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.11 First get EMX runtime http://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip 12 Add EMX\DLL to your LIBPATH. Be sure to add to PATH emx\bin directory. 13 To check that you have all you need type 'emxrev' at your command prompt. 15 14 16 15 o GNU Make: … … 38 37 Add three variables to config.sys and reboot: 39 38 39 set EMX=x:\emx 40 40 set C_INCLUDE_PATH=x:/emx/include; 41 41 set CPLUS_INCLUDE_PATH=x:/emx/include; … … 43 43 44 44 If you do not want to add them to config.sys add them to newgcc.cmd 45 during GCC 3. 0.3installation phase like this:45 during GCC 3.2.1 installation phase like this: 46 46 47 set EMX=x:\emx 47 48 set C_INCLUDE_PATH=%EMX_PATH%include; 48 49 set CPLUS_INCLUDE_PATH=%EMX_PATH%include; … … 50 51 51 52 after SET PATH line. Be warned however that all EMX will function correctly 52 only in a window where you've launched newgcc.cmd 53 only in a window where you've launched newgcc.cmd. 54 55 !! NEW !! 56 57 Note that new Odin build system requires you to setup 'EMX' variable that 58 points to EMX path. Note OS/2 slashes used there. 53 59 54 60 o GNU Utils … … 61 67 so OS/2 can find and launch utils from anywhere. 62 68 63 o GCC 3. 0.369 o GCC 3.2.1 64 70 65 71 Get: 66 72 * binutils-os2-2.11.2-bin.zip 67 73 * emx-strt-fix-0.0.2.zip 68 * gcc-os2-3. 0.3-beta-gcc.zip69 * gcc-os2-3. 0.3-beta-gpp.zip74 * gcc-os2-3.2.1-beta-gcc.zip 75 * gcc-os2-3.2.1-beta-gpp.zip 70 76 * gettext-os2-0.10.40-bin.zip 71 77 72 from ftp://ftp.netlabs.org/pub/gcc. 78 from ftp://ftp.netlabs.org/incoming/gcc-3.2.1-r2 or later from 79 ftp://ftp.netlabs.org/pub/gcc. 73 80 74 81 Unzip each of these packages in the directory above EMX. All the extracted … … 89 96 Launch it afterwards. 90 97 91 Launch gcc -v and check it is 3. 0.398 Launch gcc -v and check it is 3.2.1 92 99 93 100 Do NOT leave window where you've launched newgcc.cmd 94 101 95 102 1. 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'.103 2. Go to X:\EMX\LIB\GCC-LIB\I386-PC-OS2-EMX\3.2.1\and type 'make'. 97 104 98 105 Go to Odin directory and start ConfigureGCC.cmd - this should produce no errors. 99 106 Note that script assumes gcc.exe, g++.exe, as.exe to be in the PATH. 100 107 108 o Updating from 3.0.3 109 110 Before using 3.2.1 please remove 3.0.3 compiler from your system. To do so 111 follow 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.
