|
⇤ ← Revision 1 as of 2009-01-07 06:17:39
Size: 1829
Comment: initial version, describe gcc 4.0.4 and system gcc install
|
← Revision 2 as of 2022-03-30 20:06:36 ⇥
Size: 0
Comment: Outdated
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| = Building Gcc Releases on Sage.math = == General Info == Ubuntu 8.04LTS installs 64 bit libs into /lib and 32 bit libs into /libs32 unlike the standard which suggests 64 bit libs in /lib64 and 32 bit libs in /lib. That leads to build failures of stock gcc releases. http://gcc.gnu.org/ml/gcc-help/2006-06/msg00071.html offers a solution: {{{ Those "manual fixes" to the sources are quite obvious though, the "target Makefile fragment", 'gcc/config/i386/t-linux64', has in it : MULTILIB_OPTIONS = m64/m32 MULTILIB_DIRNAMES = 64 32 MULTILIB_OSDIRNAMES = ../lib64 ../lib and changing this into : MULTILIB_OPTIONS = m64/m32 MULTILIB_DIRNAMES = 64 32 MULTILIB_OSDIRNAMES = ../lib ../lib32 }}} Please ping mabshoff in IRC or per email if you need any other gcc compiler, i.e. additional Fortran compilers or specific release. == Installed Compilers == === System Compiler === This one might get upgrade as time progresses: {{{ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3) }}} === gcc 4.0.4 === Build with C and C++ support: {{{ ../gcc-4.0.4/configure --enable-languages=c,c++ --prefix=/disk/scratch/mabshoff-sage-releases/tools/gcc-4.0.4 }}} To use {{{ source /disk/scratch/mabshoff-sage-releases/tools/gcc-4.0.4-env }}} |
