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]

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


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


The file "/home/somebody/apps/src/gcc-build/x86_64-unknown-linux-gnu/libgcc/config.log"
contains the error lines below:

Thread model: posix
gcc version 4.8.0 (GCC)
configure:3358: $? = 0
configure:3347: /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
   -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3358: $? = 1
configure:3347: /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
   -qversion >&5
xgcc: error: unrecognized command line option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3358: $? = 1


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