Help installing gcc 4.4.2

View: New views
10 Messages — Rating Filter:   Alert me  

Help installing gcc 4.4.2

by Hung-Hsun Su :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I was wondering if someone could help me install GCC 4.4.2 on one of our
system. I did
"./configure --prefix=/share/apps/gcc-4.4.2
--with-gmp=/share/apps/gmp-4.3.1 --with-mpfr=/share/apps/mpfr-2.4.1"
"make"

and got the following error message that I couldn't figure out what is
wrong.

Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm...
/home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc...
/home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/home/su/source/gcc/gcc-4.4.2/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/su/source/gcc/gcc-4.4.2'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/su/source/gcc/gcc-4.4.2'
make: *** [all] Error 2
[root@alpha gcc-4.4.2]#

Thanks in advance for any help you can provide

Hung-Hsun

--

-----------------------------------------------------------------------------------------------------------
Sincerely,
 
Hung-Hsun Su
 
Ph.D. Student, UPC Group Leader, Research Assistant, Teaching Assistant
High-performance Computing and Simulation (HCS) Research Laboratory
Dept. of Electrical and Computer Engineering , University of Florida,
Gainesville, FL 32611-6200
Email: su@..., hunghsun@...
------------------------------------------------------------------------------------------------------------


Re: Help installing gcc 4.4.2

by Andi Hellmund :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hung-Hsun Su wrote:

> Hi,
>
> I was wondering if someone could help me install GCC 4.4.2 on one of
> our system. I did
> "./configure --prefix=/share/apps/gcc-4.4.2
> --with-gmp=/share/apps/gmp-4.3.1 --with-mpfr=/share/apps/mpfr-2.4.1"
> "make"
>
> and got the following error message that I couldn't figure out what is
> wrong.
>
> Checking multilib configuration for libgcc...
> Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
> configure: loading cache ./config.cache
> checking for --enable-version-specific-runtime-libs... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gawk... gawk
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking for x86_64-unknown-linux-gnu-ar... ar
> checking for x86_64-unknown-linux-gnu-lipo... lipo
> checking for x86_64-unknown-linux-gnu-nm...
> /home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/nm
> checking for x86_64-unknown-linux-gnu-ranlib... ranlib
> checking for x86_64-unknown-linux-gnu-strip... strip
> checking whether ln -s works... yes
> checking for x86_64-unknown-linux-gnu-gcc...
> /home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/xgcc
> -B/home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/
> -B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
> -B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
> /share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
> /share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include
> checking for suffix of object files... configure: error: in
> `/home/su/source/gcc/gcc-4.4.2/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/su/source/gcc/gcc-4.4.2'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/home/su/source/gcc/gcc-4.4.2'
> make: *** [all] Error 2
> [root@alpha gcc-4.4.2]#
>
> Thanks in advance for any help you can provide
>
> Hung-Hsun
>
Hey Hung-Hsun,

you shouldn't call configure from the gcc source directory!

Please follow the instructions at this link:
http://gcc.gnu.org/install/configure.html

Andi

Re: Help installing gcc 4.4.2

by Hung-Hsun Su :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andi Hellmund wrote:

> Hung-Hsun Su wrote:
>  
>> Hi,
>>
>> I was wondering if someone could help me install GCC 4.4.2 on one of
>> our system. I did
>> "./configure --prefix=/share/apps/gcc-4.4.2
>> --with-gmp=/share/apps/gmp-4.3.1 --with-mpfr=/share/apps/mpfr-2.4.1"
>> "make"
>>
>> and got the following error message that I couldn't figure out what is
>> wrong.
>>
>> Checking multilib configuration for libgcc...
>> Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
>> configure: loading cache ./config.cache
>> checking for --enable-version-specific-runtime-libs... no
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking for gawk... gawk
>> checking build system type... x86_64-unknown-linux-gnu
>> checking host system type... x86_64-unknown-linux-gnu
>> checking for x86_64-unknown-linux-gnu-ar... ar
>> checking for x86_64-unknown-linux-gnu-lipo... lipo
>> checking for x86_64-unknown-linux-gnu-nm...
>> /home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/nm
>> checking for x86_64-unknown-linux-gnu-ranlib... ranlib
>> checking for x86_64-unknown-linux-gnu-strip... strip
>> checking whether ln -s works... yes
>> checking for x86_64-unknown-linux-gnu-gcc...
>> /home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/xgcc
>> -B/home/su/source/gcc/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/
>> -B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
>> -B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
>> /share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
>> /share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include
>> checking for suffix of object files... configure: error: in
>> `/home/su/source/gcc/gcc-4.4.2/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/su/source/gcc/gcc-4.4.2'
>> make[1]: *** [stage1-bubble] Error 2
>> make[1]: Leaving directory `/home/su/source/gcc/gcc-4.4.2'
>> make: *** [all] Error 2
>> [root@alpha gcc-4.4.2]#
>>
>> Thanks in advance for any help you can provide
>>
>> Hung-Hsun
>>
>>    
> Hey Hung-Hsun,
>
> you shouldn't call configure from the gcc source directory!
>
> Please follow the instructions at this link:
> http://gcc.gnu.org/install/configure.html
>
> Andi
>  
Hi Andi,

I try it as instructed using a clean copy of gcc that I downloaded from
the web buy still getting the same error message regarding libgcc

[root@alpha gcc-4.4.2]# pwd
/home/su/source/gcc/gcc-4.4.2
[root@alpha gcc]# mkdir gccobjdir
[root@alpha gcc]# cd gccobjdir
[root@alpha gccobjdir]# pwd
/home/su/source/gcc/gccobjdir
[root@alpha gccobjdir]# ../gcc-4.4.2/configure
--prefix=/share/apps/gcc-4.4.2 --with-gmp=/share/apps/gmp-4.3.1
--with-mpfr=/share/apps/mpfr-2.4.1
[root@alpha gccobjdir]# make
...
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm...
/home/su/source/gcc/gccobjdir/./gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc...
/home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/home/su/source/gcc/gccobjdir/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/su/source/gcc/gccobjdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/su/source/gcc/gccobjdir'
make: *** [all] Error 2
[root@alpha gccobjdir]#

Hung-Hsun

--

-----------------------------------------------------------------------------------------------------------
Sincerely,
 
Hung-Hsun Su
 
Ph.D. Student, UPC Group Leader, Research Assistant, Teaching Assistant
High-performance Computing and Simulation (HCS) Research Laboratory
Dept. of Electrical and Computer Engineering , University of Florida,
Gainesville, FL 32611-6200
Email: su@..., hunghsun@...
------------------------------------------------------------------------------------------------------------


Re: Help installing gcc 4.4.2

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hung-Hsun Su <su@...> writes:

> checking for suffix of object files... configure: error: in
> /home/su/source/gcc/gccobjdir/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/su/source/gcc/gccobjdir'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/home/su/source/gcc/gccobjdir'
> make: *** [all] Error 2
> [root@alpha gccobjdir]#

What do you see in x86_64-unknown-linux-gnu/libgcc/config.log ?

Ian

Re: Help installing gcc 4.4.2

by Andi Hellmund :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ian Lance Taylor wrote:

> Hung-Hsun Su <su@...> writes:
>
>  
>> checking for suffix of object files... configure: error: in
>> /home/su/source/gcc/gccobjdir/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/su/source/gcc/gccobjdir'
>> make[1]: *** [stage1-bubble] Error 2
>> make[1]: Leaving directory `/home/su/source/gcc/gccobjdir'
>> make: *** [all] Error 2
>> [root@alpha gccobjdir]#
>>    
>
> What do you see in x86_64-unknown-linux-gnu/libgcc/config.log ?
>
> Ian
>
>  

Hey Hung-Hsun,

the configure script often tries to compile small test programs (embedded
into the configure script) to verify the compiler support of certain
options/features. By looking at the config.log you should be able to find
out what the test program is (line number in configure script) and how it
is compiled. Then you could possibly re-run the compiler command and check
what the real error message is ...

Andi


Re: Help installing gcc 4.4.2

by Hung-Hsun Su :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andi Hellmund wrote:

> Ian Lance Taylor wrote:
>  
>> Hung-Hsun Su <su@...> writes:
>>
>>  
>>    
>>> checking for suffix of object files... configure: error: in
>>> /home/su/source/gcc/gccobjdir/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/su/source/gcc/gccobjdir'
>>> make[1]: *** [stage1-bubble] Error 2
>>> make[1]: Leaving directory `/home/su/source/gcc/gccobjdir'
>>> make: *** [all] Error 2
>>> [root@alpha gccobjdir]#
>>>    
>>>      
>> What do you see in x86_64-unknown-linux-gnu/libgcc/config.log ?
>>
>> Ian
>>
>>  
>>    
>
> Hey Hung-Hsun,
>
> the configure script often tries to compile small test programs (embedded
> into the configure script) to verify the compiler support of certain
> options/features. By looking at the config.log you should be able to find
> out what the test program is (line number in configure script) and how it
> is compiled. Then you could possibly re-run the compiler command and check
> what the real error message is ...
>
> Andi
>
>  
It is tellling me that it cannot find libmpfr.so when compiling
conftest.c  Are these tests critical for the installation?

Hung-Hsun

[su@alpha gcc]$ ls /share/apps/mpfr-2.4.1/lib
libmpfr.a  libmpfr.la  libmpfr.so  libmpfr.so.1  libmpfr.so.1.2.0

[su@alpha libgcc]$ cat config.log //
x86_64-unknown-linux-gnu/libgcc/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /home/su/source/gcc/gcc-4.4.2/libgcc/configure
--cache-file=./config.cache --enable-multilib
--prefix=/share/apps/gcc-4.4.2 --with-gmp=/share/apps/gmp-4.3.1
--with-mpfr=/share/apps/mpfr-2.4.1
--enable-languages=c,c++,fortran,java,objc
--program-transform-name=s,y,y,
--with-target-subdir=x86_64-unknown-linux-gnu
--build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu
--target=x86_64-unknown-linux-gnu --srcdir=../../../gcc-4.4.2/libgcc
--disable-intermodule --enable-checking=yes,types --disable-coverage
--enable-languages=c

## --------- ##
## Platform. ##
## --------- ##

hostname = alpha.hcs.ufl.edu
uname -m = x86_64
uname -r = 2.6.9-55.0.2.ELsmp
uname -s = Linux
uname -v = #1 SMP Tue Jun 26 14:14:47 EDT 2007

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/gridengine/bin/lx26-amd64
PATH: /usr/kerberos/sbin
PATH: /opt/gridengine/bin/lx26-amd64
PATH: /usr/java/jdk1.5.0_10/bin
PATH: /opt/globus/bin
PATH: /opt/globus/sbin
PATH: /home/su/software/mpich2/bin
PATH: /opt/gridengine/bin/lx26-amd64
PATH: /usr/kerberos/bin
PATH: /usr/java/jdk1.5.0_10/bin
PATH: /export/apps/intel/cce/10.1.008/bin
PATH: /export/apps/intel/idbe/10.1.008/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/Bio/ncbi/bin
PATH: /opt/Bio/mpiblast/bin/
PATH: /opt/Bio/EMBOSS/bin
PATH: /opt/Bio/clustalw/bin
PATH: /opt/Bio/t_coffee/bin
PATH: /opt/Bio/phylip/exe
PATH: /opt/Bio/mrbayes
PATH: /opt/Bio/fasta
PATH: /opt/Bio/glimmer/bin
PATH: /opt/Bio/glimmer/scripts
PATH: /opt/Bio/gromacs/bin/
PATH: /opt/eclipse
PATH: /opt/ganglia/bin
PATH: /opt/ganglia/sbin
PATH: /opt/maven/bin
PATH: /opt/openmpi/bin/
PATH: /opt/rocks/bin
PATH: /opt/rocks/sbin
PATH: /opt/condor/bin
PATH: /opt/condor/sbin
PATH: /usr/X11R6/bin
PATH: /opt/Bio/ncbi/bin
PATH: /opt/Bio/mpiblast/bin/
PATH: /opt/Bio/hmmer/bin
PATH: /opt/Bio/EMBOSS/bin
PATH: /opt/Bio/clustalw/bin
PATH: /opt/Bio/t_coffee/bin
PATH: /opt/Bio/phylip/exe
PATH: /opt/Bio/mrbayes
PATH: /opt/Bio/fasta
PATH: /opt/Bio/glimmer/bin
PATH: //opt/Bio/glimmer/scripts
PATH: /opt/Bio/gromacs/bin
PATH: /opt/eclipse
PATH: /opt/ganglia/bin
PATH: /opt/ganglia/sbin
PATH: /opt/maven/bin
PATH: /opt/openmpi/bin/
PATH: /opt/rocks/bin
PATH: /opt/rocks/sbin
PATH: /opt/condor/bin
PATH: /opt/condor/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1191: loading cache ./config.cache
configure:1388: checking for --enable-version-specific-runtime-libs
configure:1403: result: no
configure:1435: checking for a BSD-compatible install
configure:1490: result: /usr/bin/install -c
configure:1506: checking for gawk
configure:1522: found /bin/gawk
configure:1532: result: gawk
configure:1555: checking build system type
configure:1573: result: x86_64-unknown-linux-gnu
configure:1581: checking host system type
configure:1595: result: x86_64-unknown-linux-gnu
configure:1654: checking for x86_64-unknown-linux-gnu-ar
configure:1680: result: ar
configure:1733: checking for x86_64-unknown-linux-gnu-lipo
configure:1759: result: lipo
configure:1813: checking for x86_64-unknown-linux-gnu-nm
configure:1839: result: /home/su/source/gcc/gccobjdir/./gcc/nm
configure:1892: checking for x86_64-unknown-linux-gnu-ranlib
configure:1918: result: ranlib
configure:1972: checking for x86_64-unknown-linux-gnu-strip
configure:1998: result: strip
configure:2049: checking whether ln -s works
configure:2053: result: yes
configure:2070: checking for x86_64-unknown-linux-gnu-gcc
configure:2096: result: /home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include
configure:2380: checking for C compiler version
configure:2383: /home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include --version
</dev/null >&5
xgcc (GCC) 4.4.2
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2386: $? = 0
configure:2388: /home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include -v </dev/null >&5
Reading specs from /home/su/source/gcc/gccobjdir/./gcc/specs
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.4.2/configure --prefix=/share/apps/gcc-4.4.2
--with-gmp=/share/apps/gmp-4.3.1 --with-mpfr=/share/apps/mpfr-2.4.1 :
(reconfigured) ../gcc-4.4.2/configure --prefix=/share/apps/gcc-4.4.2
--with-gmp=/share/apps/gmp-4.3.1 --with-mpfr=/share/apps/mpfr-2.4.1
Thread model: posix
gcc version 4.4.2 (GCC)
configure:2391: $? = 0
configure:2393: /home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2396: $? = 1
configure:2415: /home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include -o conftest
-g -O2     conftest.c  >&5
/home/su/source/gcc/gccobjdir/./gcc/cc1: error while loading shared
libraries: libmpfr.so.1: cannot open shared object file: No such file or
directory
configure:2418: $? = 1
configure:2590: checking for suffix of object files
configure:2611: /home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include -c -g -O2    
conftest.c >&5
/home/su/source/gcc/gccobjdir/./gcc/cc1: error while loading shared
libraries: libmpfr.so.1: cannot open shared object file: No such file or
directory
configure:2614: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2627: error: in
`/home/su/source/gcc/gccobjdir/x86_64-unknown-linux-gnu/libgcc':
configure:2630: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_build_alias=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2  '
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-unknown-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-unknown-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=x86_64-unknown-linux-gnu
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_host_alias=x86_64-unknown-linux-gnu
ac_cv_prog_AR=ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include'
ac_cv_prog_LIPO=lipo
ac_cv_prog_NM=/home/su/source/gcc/gccobjdir/./gcc/nm
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_STRIP=strip

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
AWK='gawk'
CC='/home/su/source/gcc/gccobjdir/./gcc/xgcc
-B/home/su/source/gcc/gccobjdir/./gcc/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/bin/
-B/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/lib/ -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/include -isystem
/share/apps/gcc-4.4.2/x86_64-unknown-linux-gnu/sys-include'
CFLAGS='-g -O2  '
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
NM='/home/su/source/gcc/gccobjdir/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SHELL='/bin/sh'
STRIP='strip'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_LIPO=''
ac_ct_NM=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias='x86_64-unknown-linux-gnu'
build_cpu='x86_64'
build_libsubdir='build-x86_64-unknown-linux-gnu'
build_os='linux-gnu'
build_subdir='build-x86_64-unknown-linux-gnu'
build_vendor='unknown'
datadir='${prefix}/share'
decimal_float=''
enable_decimal_float=''
enable_shared='yes'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
host='x86_64-unknown-linux-gnu'
host_alias='x86_64-unknown-linux-gnu'
host_cpu='x86_64'
host_noncanonical='x86_64-unknown-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../../../gcc-4.4.2/libgcc/..'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/share/apps/gcc-4.4.2'
program_transform_name='s,y,y,'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
sharedstatedir='${prefix}/com'
slibdir='$(libdir)'
sysconfdir='${prefix}/etc'
target_alias='x86_64-unknown-linux-gnu'
target_subdir='x86_64-unknown-linux-gnu'
tmake_file=''
vis_hide=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"

configure: exit 1
[su@alpha libgcc]$



--

-----------------------------------------------------------------------------------------------------------
Sincerely,
 
Hung-Hsun Su
 
Ph.D. Student, UPC Group Leader, Research Assistant, Teaching Assistant
High-performance Computing and Simulation (HCS) Research Laboratory
Dept. of Electrical and Computer Engineering , University of Florida,
Gainesville, FL 32611-6200
Email: su@..., hunghsun@...
------------------------------------------------------------------------------------------------------------


Parent Message unknown Re: Help installing gcc 4.4.2

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hung-Hsun Su <su@...> writes:

> It is tellling me that it cannot find libmpfr.so when compiling
> conftest.c

You need to ensure that it can.  If you have built MPFR yourself, I
strongly recommend that you discard what you built and rebuild it
using --disable-shared.  Otherwise, you need to ensure that the
dynamic linker can find libmpfr.so one way or another; one simple way
would be to set the LD_LIBRARY_PATH environment variable to point to
the right library.  Or you may simply need to run ldconfig.

> Are these tests critical for the installation?

Yes.

Ian

Re: Help installing gcc 4.4.2

by Hung-Hsun Su :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, adding the mpfr and gmp to LD_LIBRARY_PATH solved the problem.

I do wonder what kind of effect the flag --with-mpfr has on the
installation process. I thought this was used to specify where mpfr was
installed.

Hung-Hsun

> ung-Hsun Su <su@...> writes:
>
>  
>> It is tellling me that it cannot find libmpfr.so when compiling
>> conftest.c
>>    
>
> You need to ensure that it can.  If you have built MPFR yourself, I
> strongly recommend that you discard what you built and rebuild it
> using --disable-shared.  Otherwise, you need to ensure that the
> dynamic linker can find libmpfr.so one way or another; one simple way
> would be to set the LD_LIBRARY_PATH environment variable to point to
> the right library.  Or you may simply need to run ldconfig.
>
>  
>> Are these tests critical for the installation?
>>    
>
> Yes.
>
> Ian
>  


--

-----------------------------------------------------------------------------------------------------------
Sincerely,
 
Hung-Hsun Su
 
Ph.D. Student, UPC Group Leader, Research Assistant, Teaching Assistant
High-performance Computing and Simulation (HCS) Research Laboratory
Dept. of Electrical and Computer Engineering , University of Florida,
Gainesville, FL 32611-6200
Email: su@..., hunghsun@...
------------------------------------------------------------------------------------------------------------


Re: Help installing gcc 4.4.2

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hung-Hsun Su <su@...> writes:

> I do wonder what kind of effect the flag --with-mpfr has on the
> installation process. I thought this was used to specify where mpfr
> was installed.

It is.  We expect that if you build mpfr yourself, you will configure
it --disable-shared, so that it is statically linked into gcc.  We
expect that if MPFR is installed in the system--i.e., you didn't
compile it yourself--then the system will take care of ensuring that
the dynamic linker can find it, e.g., via ldconfig.

Embedding the location of the mpfr shared library into the binary is
not a good idea by default, since it will mean that gcc will break if
you copy it to a different system.  That said, I think it would be
reasonable to add yet another configure option to do that, for people
who know they won't be copying it anywhere.

It would also be entirely reasonable to use -Bstatic when linking
against mpfr and gmp, on systems which have a linker which supports
-Bstatic.

Ian

Re: Help installing gcc 4.4.2

by Dr. David Kirkby :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ian Lance Taylor wrote:

> Embedding the location of the mpfr shared library into the binary is
> not a good idea by default, since it will mean that gcc will break if
> you copy it to a different system.  That said, I think it would be
> reasonable to add yet another configure option to do that, for people
> who know they won't be copying it anywhere.

That would be a very useful feature if one could hard-code the locations of the
mpfr and gmp with a configure option.