Hallo
hat jemand ne Idee wie ich gcc 2.XX neben der 3er version laufen lassen kann.
Bekomme echt nen Horror. Neuer Server hat Suse 8.2 :( mit gcc3.2 (nohc schlimmer)
ich hab nur Probleme beim kompilieren. Die hälfte will nciht wirklich. Nur Errors.
Jemand ne Idee ??
thx
iggemonster
gcc3 probleme geht 2.X parallel
-
iggemonster
- Posts: 80
- Joined: 2002-07-16 10:47
- Location: im inti net ;)
- Contact:
Re: gcc3 probleme geht 2.X parallel
Code: Select all
cd /usr/src
wget ftp://ftp.gnu.org/gnu/gcc/gcc-2.95.3.tar.gz
tar xzf gcc-2.95.3
cd gcc-2.95.3
echo timestamp > gcc/cstamp-h.in
mkdir ../gcc-2.95.3-build
cd ../gcc-2.95.3-build
../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 --enable-shared --enable-languages=c --enable-threads=posix
make bootstrap
make install
cd ..
rm -rf gcc-*
-
iggemonster
- Posts: 80
- Joined: 2002-07-16 10:47
- Location: im inti net ;)
- Contact:
Re: gcc3 probleme geht 2.X parallel
danke für die schnelle antwort.
Muss ich um das "alte" gcc zu benutzen beim compilen irgendwas anderes angeben ?
Automatisch sucht er sich doch bestimmt nich aus welches er nimmt ?
THX
Muss ich um das "alte" gcc zu benutzen beim compilen irgendwas anderes angeben ?
Automatisch sucht er sich doch bestimmt nich aus welches er nimmt ?
THX
Re: gcc3 probleme geht 2.X parallel
Beispiel Kernel:iggemonster wrote:danke für die schnelle antwort.
Muss ich um das "alte" gcc zu benutzen beim compilen irgendwas anderes angeben ?
Automatisch sucht er sich doch bestimmt nich aus welches er nimmt ?
Code: Select all
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.22.tar.bz2
tar xjf linux-2.4.22.tar.bz2
chown -R 0:0 linux-2.4.22
ln -sf linux-2.4.22 linux
cd linux
make mrproper
make menuconfig
make CC=/opt/gcc-2.95.3/bin/gcc dep
make CC=/opt/gcc-2.95.3/bin/gcc bzImage
make CC=/opt/gcc-2.95.3/bin/gcc modules
make CC=/opt/gcc-2.95.3/bin/gcc modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.22
cp System.map /boot/System.map-2.4.22
ln -sf vmlinuz-2.4.22 /boot/vmlinuz
cd ~
Code: Select all
export OLDPATH=$PATH
export PATH=/opt/gcc-2.95.3/bin:$OLDPATH
./configure
make
make install
export PATH=$OLDPATH
unset OLDPATH
