GCC 4.6.3+ on RedHat Enterprise 6 fails to build
Dear members, I found an issue compiling gcc 4.6.3/ 4.7.1 on RHEL6 distro. The diagnostic message that we usually obtain when there is an error is seen as follows:
This is the command-line entry I used for configuring the source
My question is, has anybody tested this out before and/ or gcc 4.6.3 or 4.7.1 compile on RHEL?
Gcc-4.6.3 example, CentOS 6.3 ( = RHEL 6.x ).
GCC requires a build directory outside the source directory gcc-4.6.3/.
I'd suggest : Unpack gmp-* mpfr-* mpc-* into gcc-4.6.3/, and rename to gmp, mpfr, mpc.
Then you will have no conflicts with the system versions, if different.
# yum install gmp-devel mpfr-devel ( Probably sufficient for gcc-4.6.3 ).
$ ../gcc-4.6.3/configure --prefix=/usr/local/gcc463 --program-suffix=46 --enable-languages=c,c++ --enable-threads=posix --enable-shared --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --with-system-zlib --with-mpfr-include=$(pwd)/../gcc-4.6.3/mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs
$ make : I think the system version mpfr-2.4.1 was picked up as OK.
$ make : No errors. # make install : OK too.
I followed all the instructions (even though I had a similar environment set up before, in which I had the build directory as a sub-directory to the gcc source -- hence the configure command) .
I am unable to build the source because, i get the following configure error:
configure: error: source directory already configured; run "make distclean" there first
However, if I do a make distclean, the Makefile will be deleted, and I have to start again by running configure. There is no resolution so far :(
Not much to do but to start from scratch with a new unpacked gcc-4.6.3.tar.bz
Once configured, the source cannot be reused.
sorry , please delete my post
|All times are GMT -5. The time now is 04:49 PM.|