[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Multiple versions of gcc installed



I have 2 debian powerpc machines with testing and stable installed.
gcc-2.95.4 is installed on stable and gcc-3.3.4 on testing.
I want to compile with the same compiler on both so I installed gcc-2.95 on the testing machine.
i.e. I have 3.3.4 and 2.95.4 installed simulataneously.

Problem: I can't execute the older 2.95 compiler using the appropriate gcc switches. -V or -B. See below. Looks like there are a few installation problems for multiple versions of gcc.

Regards,
Brendan Simon.


$ ls -l /usr/lib/gcc-lib/powerpc-linux/
total 8
drwxr-xr-x  3 root root 4096 Oct  1 16:48 2.95.4
drwxr-xr-x  3 root root 4096 Oct  6 10:43 3.3.4


$ gcc -v
Reading specs from /usr/lib/gcc-lib/powerpc-linux/3.3.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc --disable-multilib powerpc-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-13)


$ gcc -V 3.3.4 -v
gcc: couldn't run `powerpc-linux-gcc-3.3.4': No such file or directory


$ gcc -V 2.95.4 -v
gcc: couldn't run `powerpc-linux-gcc-2.95.4': No such file or directory


$ gcc -B /usr/lib/gcc-lib/powerpc-linux/3.3.4 -v
Reading specs from /usr/lib/gcc-lib/powerpc-linux/3.3.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc --disable-multilib powerpc-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-13)


$ gcc -B /usr/lib/gcc-lib/powerpc-linux/2.95.4 -v
Reading specs from /usr/lib/gcc-lib/powerpc-linux/2.95.4/specs
Segmentation fault



Reply to: