Solved

Installation of gcc3.2

Posted on 2011-03-04
26
985 Views
Last Modified: 2013-12-13
I am trying to install gcc3.2 but when I type  make, I get the following error:



[root@pet1 gcc-3.2]# make
make[1]: Entering directory `/usr/local/gcc-3.2/libiberty'
make[2]: Entering directory `/usr/local/gcc-3.2/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/gcc-3.2/libiberty/testsuite'
make[1]: Leaving directory `/usr/local/gcc-3.2/libiberty'
make[1]: Entering directory `/usr/local/gcc-3.2/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/bin/sh /usr/local/gcc-3.2/install-sh -c" "INSTALL_DATA=/bin/sh /usr/local/gcc-3.2/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /usr/local/gcc-3.2/install-sh -c " "INSTALL_SCRIPT=/bin/sh /usr/local/gcc-3.2/install-sh -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/x86_64-unknown-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/usr/local/gcc-3.2/zlib'
make[1]: Entering directory `/usr/local/gcc-3.2/fastjar'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/gcc-3.2/fastjar'
make[1]: Entering directory `/usr/local/gcc-3.2/gcc'
gcc -c -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I. -I./. -I./config -I./../include ./read-rtl.c -o read-rtl.o
In file included from ./read-rtl.c:24:
./rtl.h:125: warning: type of bit-field âcodeâ is a GCC extension
./rtl.h:128: warning: type of bit-field âmodeâ is a GCC extension
./read-rtl.c: In function âfatal_with_file_and_lineâ:
./read-rtl.c:62: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function âread_rtxâ:
./read-rtl.c:662: error: invalid lvalue in increment
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/usr/local/gcc-3.2/gcc'
make: *** [all-gcc] Error 2
0
Comment
Question by:nasdarwish
  • 14
  • 12
26 Comments
 
LVL 19

Expert Comment

by:simon3270
ID: 35054352
Are you trying to build v3.2 using an earlier version of gcc?

The error looks as though the program called "gcc" that you are calling isn't an ANSI compiler - has someone linked "cc" to "gcc"?
0
 

Author Comment

by:nasdarwish
ID: 35058622
I am not sure the right way to build it. I have Red Hat gcc version 4.1.2 already installed. How do I find out if "cc" is linked to "gcc" ? Any suggestions on how to proceed?
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35059131
If you do "which gcc", it will show the path to the current version of gcc.  "ls -l /usr/local/bin/gcc" (or whatever path "which" returns) will then show whether this is a symbolic link to, for example, /usr/bin/cc.

Or "gcc -v" whll show the current version.

I think the problem is that you have "-Wtradiditonal" in your gcc options (which warns about newer C constructs which aren't available in old C compilers) and -pedantic (whcih rejects non-ISO programs).  Is CFLAGS set in your environment?  just
    echo $CFLAGS

One other thing is to show us what your read-rtl.c file looks like, particularly around line 662, which is where the error is reported.
0
 

Author Comment

by:nasdarwish
ID: 35059692
Hi, here is the result of your suggestions:

[root@pet1 gcc]# which gcc
/usr/bin/gcc
[root@pet1 gcc]# ls -l /usr/bin/gcc
-rwxr-xr-x 2 root root 221632 Jun 27  2007 /usr/bin/gcc
[root@pet1 gcc]# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)
[root@pet1 gcc]# echo $CFLAGS

line 662 is obstack_ptr_grow (&vector_stack, (PTR) read_rtx (infile));


0
 
LVL 19

Expert Comment

by:simon3270
ID: 35059763
All looks fine to me.  gcc is clearly correct,and and CFLAGS is empty.  Even line 662 looks OK (though I'd have to see what any macros expanded to to be sure).

I'm afraid I'm out of answers.
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35059833
I've just downloaded the gcc 3.2 source from a gnu.org mirror and tried to build it - got the same error as you!  I'll have a dig around to see what's gone wrong.
0
 

Author Comment

by:nasdarwish
ID: 35059986
Thanks for the taking the time do that!
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35060119
No problem.

It seems to be a known bug - an older gcc version has code in it that a newre gcc cannot compile.

One of the best suggestions seems to be to build a version between the two you have (e.g. 3.4.6), then make that, and use that middle version of gcc to build the older one.  I've just tried 3.4.6 using my current version (4.3.3) but got a completely different error!

Might it be easier to find a pre-built gcc 3.2 for your platform?
0
 

Author Comment

by:nasdarwish
ID: 35060572
How can one get a pre_built gcc 3.2? Do you mean we need to build g++3.2 with gcc3.4 version? I think I also  heard that it is not possible to build g++3.2 with gcc4*. Your help is appreciated!
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35061081
I'm pretty sure that building 3.2 with 4.* won't work.

I've tried building 3.4.6 with 4.4.3, so that I can then build 3.2 with 3.4.6, but the 3.4.6 build fails with a problem in the creat() system call.

As for the binaries, it is sometimes possible to find a package for your system whcih contains a compiled gcc.  The problem is finding one which works with the exact version of Operating System you are using.

I'll keep digging away at building 3.4.6....
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35071752
I have successfully built gcc 3.3.5 (with three code changes):

./gcc/f/com.h.orig
236c236
< ffeinfoKindtype ffecom_gfrt_basictype (ffecomGfrt ix);
---
> ffeinfoBasictype ffecom_gfrt_basictype (ffecomGfrt ix);
./gcc/java/gjavah.c.orig
49c49
< static int flag_jni = 0;
---
> int flag_jni = 0;
./gcc/collect2.c.orig
1575c1575
<       redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
---
>       redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0755);

I then tried to build gcc 3.2 using gcc3.3.3.6 - it got past the place we had errors before, but I then got errors while building libstdc++-v3/src/locale.cc - something about some basic types not being defined (__ctype_b was one of them).  I tried a few things, including forcing some further definitions by changing libstdc++-v3/acconfig.h, but couldn't get this to compile.

The gcc site does give some ideas for downloading binary verisons of gcc (i.e. somebody has already built the code).  See http://gcc.gnu.org/install/binaries.html for details.
0
 

Author Comment

by:nasdarwish
ID: 35073111
Hi,

I am not sure which binary I need from the website you provide above to download, etc.

I do now  have access to another operating system that is gcc3.4 ((Red Hat 3.4.6-8). However, I wan not able to compile the software with it and I think I still need g++3.2.

Thank you
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35073216
What OS is on the machine you need 3.2 on?  
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:nasdarwish
ID: 35073238
Linux gcc version 3.4.6 (Red Hat 3.4.6-8)
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35073340
I've had a look at http://www.rpmfind.net/linux/rpm2html/search.php?query=gcc and it gives lots of RPMs for Redhat Enterprise Linux 3, but they are all source ones, which doesn't help us.

What does /etc/redhat-release contain on the two machines you have (your original one, and the one you found with gcc 3.4 on it)?

0
 

Author Comment

by:nasdarwish
ID: 35073560
Fedora Core release 6 (Zod) for the orginal and I am still awaiting the superuser to respond with the one I found on gcc3.4.

0
 

Author Comment

by:nasdarwish
ID: 35073588
Scientific Linux SL release 4.4 (Beryllium) for the one I found with gcc3.4.
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35073767
Ah, I think it might be hard to find a pre-compiled binary for either of those.

The good news is that I have successfully compiled gcc 3.2.3 with gcc 3.3.6.  woudl 3.2.3 be OK?If so, I'll give the exact sequence I used.
0
 

Author Comment

by:nasdarwish
ID: 35073800
Yes, I will give it a try. Please send me the exact sequence you used. Thanks.
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35074023
OK.  I assume you are building in a user's home directory - let's call it /home/user1.

Have a "src" subdirectory, and cd into that.  Assume your source tarballs are in /tmp and that you have the .bz2 versions (if you have the .gz ones, replace the "j" in the tar commands with "z").  I am also following advice on gcc.gnu.org to have separate source and binary directories.

# First make gcc 3.3.6
cd /home/user1/src
tar xfj /tmp/gcc-3.3.6.tar.bz2
(now apply the three fixes I listed earlier, to gcc-3.3.6/gcc/f/com.h, gcc-3.3.6/gcc/java/gjavah.c. and gcc-3.3.6/gcc/collect2.c)
mkdir /home/user1/gcc336
mkdir gcc-3.3.6_bin
cd gcc-3.3.6_bin
../gcc-3.3.6/configure --prefix=/home/user1/gcc336
make
make install

# Now make gcc 3.3.6 be first in the PATH
PATH=/home/user1/gcc336/bin:$PATH

(Check by running "gcc -v", and the output saying "gcc version 3.3.6", rather than 4.1.2)

# Now make gcc 3.2.3
cd ~/src
tar xfj /tmp/gcc-3.2.3.tar.bz2
mkdir /home/user1/gcc323
mkdir gcc-3.2.3_bin
cd gcc-3.2.3_bin
../gcc-3.2.3/configure --prefix=/home/user1/gcc323
make
make install

The PATH=/home/user1/gcc323/bin:$PATH and you are ready to use gcc 3.2.3
0
 

Author Comment

by:nasdarwish
ID: 35075048
Hi,

When I try to configure, I get the following error.checking LIBRARY_PATH variable... contains current directory
configure: error:
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
Configure in /home/ndarwish/usr1/gcc-3.3.6_bin/gcc failed, exiting.
 




[ndarwish@mpded gcc-3.3.6_bin]$ ../src/gcc-3.3.6/configure --prefix=/home/ndarwish/usr1/gcc336
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/ndarwish/usr1/gcc-3.3.6_bin using "mt-frag"
Configuring libiberty...
creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking for POSIXized ISC... no
checking for working const... yes
checking for inline... inline
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for alloca.h... yes
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... yes
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... yes
checking for sys/systemcfg.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for ANSI C header files... yes
checking for uintptr_t... no
checking for pid_t... yes
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for index... yes
checking for insque... yes
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemps... no
checking for putenv... yes
checking for random... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... yes
checking for sigsetmask... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for tmpnam... yes
checking for vasprintf... yes
checking for vfprintf... yes
checking for vprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... -1
checking for vfork.h... no
checking for working vfork... yes
checking for _doprnt... no
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... yes
checking for external symbol _system_configuration... no
checking whether canonicalize_file_name must be declared... yes
checking for getrusage... yes
checking for on_exit... yes
checking for psignal... yes
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for times... yes
checking for sbrk... yes
checking for gettimeofday... yes
checking for realpath... yes
checking for canonicalize_file_name... yes
checking for pstat_getstatic... no
checking for pstat_getdynamic... no
checking for sysmp... no
checking for getsysinfo... no
checking for table... no
checking for sysctl... yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for working strncmp... yes
updating cache ../config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
Configuring zlib...
loading cache ../config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for ranlib... (cached) ranlib
checking for strip... strip
updating cache ../config.cache
loading cache ../config.cache within ltconfig
checking whether -lc should be explicitly linked in... no
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
finding the maximum length of command line arguments... 49153
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ../config.cache
loading cache ../config.cache
checking how to run the C preprocessor... (cached) gcc -E
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for memcpy... (cached) yes
checking for strerror... (cached) yes
checking for unistd.h... (cached) yes
updating cache ../config.cache
creating ./config.status
creating Makefile
Configuring gcc...
loading cache ../config.cache
checking LIBRARY_PATH variable... contains current directory
configure: error:
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
Configure in /home/ndarwish/usr1/gcc-3.3.6_bin/gcc failed, exiting.
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35080391
Have you set LIBRARY_PATH manually as part of this investigation?  Does "echo $LIBRARY_PATH" have "." as one of the elemnts?

I don't think the variable needs to be set before you build, so "unset LIBRARY_PATH", or LIBRARY_PATH=""
0
 

Author Comment

by:nasdarwish
ID: 35084845
Hi, thanks I got through the configure correctly but now I get error when I do "make" as shown below:[ndarwish@mpded gcc-3.3.6_bin]$ make
make[1]: Entering directory `/home/ndarwish/usr1/gcc-3.3.6_bin/libiberty'
make[2]: Entering directory `/home/ndarwish/usr1/gcc-3.3.6_bin/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ndarwish/usr1/gcc-3.3.6_bin/libiberty/testsuite'
make[1]: Leaving directory `/home/ndarwish/usr1/gcc-3.3.6_bin/libiberty'
make[1]: Entering directory `/home/ndarwish/usr1/gcc-3.3.6_bin/zlib'
: make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/bin/sh /home/ndarwish/usr1/src/gcc-3.3.6/install-sh -c" "INSTALL_DATA=/bin/sh /home/ndarwish/usr1/src/gcc-3.3.6/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /home/ndarwish/usr1/src/gcc-3.3.6/install-sh -c " "INSTALL_SCRIPT=/bin/sh /home/ndarwish/usr1/src/gcc-3.3.6/install-sh -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=makeinfo --no-split " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/home/ndarwish/usr1/gcc336" "infodir=/home/ndarwish/usr1/gcc336/info" "libdir=/home/ndarwish/usr1/gcc336/lib" "prefix=/home/ndarwish/usr1/gcc336" "tooldir=/home/ndarwish/usr1/gcc336/i686-pc-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/home/ndarwish/usr1/gcc-3.3.6_bin/zlib'
make[1]: Entering directory `/home/ndarwish/usr1/gcc-3.3.6_bin/fastjar'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ndarwish/usr1/gcc-3.3.6_bin/fastjar'
make[1]: Entering directory `/home/ndarwish/usr1/gcc-3.3.6_bin/gcc'
(cd intl && make all)
make[2]: Entering directory `/home/ndarwish/usr1/gcc-3.3.6_bin/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ndarwish/usr1/gcc-3.3.6_bin/gcc/intl'
gcc -c -g -O2      -gnatpg -gnata -I- -I. -Iada -I../../src/gcc-3.3.6/gcc/ada ../../src/gcc-3.3.6/gcc/ada/ada.ads -o ada/ada.o
fatal error: system.ads is incorrectly formatted
missing line for parameter: Configurable_Run_Time
fatal error: system.ads is incorrectly formatted
missing line for parameter: Duration_32_Bits
fatal error: system.ads is incorrectly formatted
missing line for parameter: Exit_Status_Supported
fatal error: system.ads is incorrectly formatted
missing line for parameter: Support_64_Bit_Divides
fatal error: system.ads is incorrectly formatted
missing line for parameter: Support_Aggregates
fatal error: system.ads is incorrectly formatted
missing line for parameter: Support_Composite_Assign
fatal error: system.ads is incorrectly formatted
missing line for parameter: Support_Composite_Compare
fatal error: system.ads is incorrectly formatted
missing line for parameter: Support_Long_Shifts
fatal error: system.ads is incorrectly formatted
missing line for parameter: Suppress_Standard_Library
compilation abandoned
make[1]: *** [ada/ada.o] Error 1
make[1]: Leaving directory `/home/ndarwish/usr1/gcc-3.3.6_bin/gcc'
make: *** [all-gcc] Error 2


0
 
LVL 19

Accepted Solution

by:
simon3270 earned 500 total points
ID: 35087240
One step forwards, two steps back!

It's building the ada compiler which we don't actually need, so maybe we can just avoid that (we only need C, and possibly C++).

Try deleting the entire gcc-3.3.6_bin directory (just "rm -r *" from where you currently are), then add:
  --enable-languages=c,c++
to the "configure" line, then "make" again.
0
 
LVL 19

Expert Comment

by:simon3270
ID: 35087297
In the meantime I've downloaded 4.1.2, and will try to build with that!
0
 

Author Comment

by:nasdarwish
ID: 35099642
Hi,

I have finally compiled gcc3.2.3 with gcc3.3.6 successfully! Thank you very much. However, I still cannot compile the software that I need to compile using gcc3.2. I need to compile both of these files linked together as described below:

http://marwww.in2p3.fr/~morel/STIR.tar.gz
http://marwww.in2p3.fr/~morel/lmf_v2.0.tar.gz

These some of instructions that were given to me to compile it.
-there is no configuration script
-You should also call "make clean" from time to time. With this command, you should get rid of the problem with the /data/morel/... directories.

-You can change the name of the compiler in a file named Makefile_common.
-You can find it in the STIR directory. Just replace the line saying CXX=g++32 with CXX=the name of your compiler, e.g. g++.
-In Makefile_common, you can also give a path to the compiler, e.g. CXX=/usr/local/gcc/g++.
-When you know where the path of the gcc3.2 compiler is, you can define it there accordingly.
-you must make sure to define properly your LD_LIBRARY_PATH and LMF_HOME so that LMF_LIBRARY_PATH and LMF_HOME are defined correctly for your personal environment


0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The Quality Assurance engineer of an Agile scrum team must "own" the acceptance criteria for sprint tasks.
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This video shows how use content aware, what it’s used for, and when to use it over other tools.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now