This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is it really possible to install gcc using prerequisites are installed in non standard directories.


On 05/10/2013 08:46 AM, Allan Kamau wrote:
I have been struggling for two days to get gcc to compile and install
in a specific directory without success. If there is a HOWTO for this
please point me to it.


I have installed mpc-0.8.1, mpfr-2.4.2 and gmp-4.3.2 to specific
directories as follows

mpc-0.8.1=”/home/somebody/apps/gcc/mpc-0.8.1”
mpfr-2.4.2=”/home/somebody/apps/gcc/mpfr-2.4.2”
gmp-4.3.2=”/home/somebody/apps/gcc/gmp-4.3.2”

I am compiling gcc-4.8.0 using the following options.

date;time ~/apps/src/gcc-4.8.0/configure
--with-mpc=/home/somebody/apps/gcc/mpc-0.8.1
--with-mpfr=/home/somebody/apps/gcc/mpfr-2.4.2
--with-gmp=/home/somebody/apps/gcc/gmp-4.3.2
--prefix=/home/somebody/apps/gcc/gcc-4.8.0
--with-gmp-lib=/home/somebody/apps/gcc/gmp-4.3.2/lib
--with-gmp-include=/home/somebody/apps/gcc/gmp-4.3.2/include
--with-mpfr-lib=/home/somebody/apps/gcc/mpfr-2.4.2/lib
--with-mpfr-include=/home/somebody/apps/gcc/mpfr-2.4.2/include
--with-mpc-lib=/home/somebody/apps/gcc/mpc-0.8.1/lib
--with-mpc-include=/home/somebody/apps/gcc/mpc-0.8.1/include;date;



The error is as follows

checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc...
/home/somebody/apps/src/gcc-build/./gcc/xgcc
-B/home/somebody/apps/src/gcc-build/./gcc/
-B/home/somebody/apps/gcc/gcc-4.8.0/x86_64-unknown-linux-gnu/bin/
-B/home/somebody/apps/gcc/gcc-4.8.0/x86_64-unknown-linux-gnu/lib/
-isystem /home/somebody/apps/gcc/gcc-4.8.0/x86_64-unknown-linux-gnu/include
-isystem /home/somebody/apps/gcc/gcc-4.8.0/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/home/somebody/apps/src/gcc-build/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/somebody/apps/src/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/somebody/apps/src/gcc-build'
make: *** [all] Error 2

snip



I've seen this error when the gmp/mpfr etc libraries are built as shared libraries. If you do a static-only build on your special versions, this seems to resolve this problem.

Dave Riedel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]