SUSE 10 and two versions of gcc
I have need of both the gcc that comes with SUSE 10 (4.0.2) and a 3.4.x version of gcc as well. Is it possible to have both installed at the same time? I would guess that things like include files would have to be sorted. But does anyone know of a general guide for doing this sort of thing? The SUSE 10 one would be the default that should be invoked as usual. The gcc 3.4 could require, say, environment variables to be set. The reason for this is I want to compile kernel modules for some other system, and it seems that it is not happy if they are compiled with SUSE's 4.x gcc. The kernel itself was compiled with 3.4.4. I can chroot to an environment that will run gcc 3.4.4, but I would prefer to just run the 3.4 compiler from a Makefile in SUSE 10.0. Make sense? -- Roger Oberholtzer OPQ Systems AB
On Fri, 25 Nov 2005 14:30:20 +0100 Roger Oberholtzer <roger@opq.se> wrote:
Yes. I had to do that a while back on a SLES9 system because I had to build GNU Pascal and that required a specific version of GCC to be installed. Because the system was going to be used at an Intel Development Forum, the base system had to be vanilla SLES9. Note that the older libraries are currently installed. The C++ header files are in /usr/include/c++/<version> Where the version on SuSE 10 is 4.0.2. When you install gcc 3.4.4 the headers will /usr/include/c++/3.4.4/ You will need to take a bit of care when compiling and set the CXX, CC, CFLAGS and CXXFLAGS environment variables. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
Roger Oberholtzer wrote:
This howto covers the installation and use of an additional compiler on suse10: http://www.opensuse.org/Qemu_with_kqemu_kernel_module_support Ciao Giovanni
On Fri, 25 Nov 2005 14:30:20 +0100, Roger Oberholtzer wrote:
Yes. Just compile (and install) gcc 3.4.x with a different prefix like /opt/gcc34 and remove libgcc_s.so from gcc 3.4 as there should only be one version present in the system and libgcc_s is downwards compatible. Philipp
participants (4)
-
Giovanni Racciu
-
Jerry Feldman
-
Philipp Thomas
-
Roger Oberholtzer