Re: Can not follow FAQ about suffix error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2017-04-27 23:06 -0400, Ray Sheppard wrote:

> I built the GMP, MPFR, MPC and ISL out of the Infrastructure directories 
> and configured 6.3.0 with:
> 
> ./configure --prefix=/N/soft/rhel7/gcc/6.3.0 --enable-fixed-point 
> --with-long-double-128 --enable-host-shared --disable-multilib 
> --enable-threads --with-gmp=/N/soft/rhel7/gcc/infrastructure 
> --with-mpfr=/N/soft/rhel7/gcc/infrastructure 
> --with-mpc=/N/soft/rhel7/gcc/infrastructure 
> --with-isl=/N/soft/rhel7/gcc/infrastructure

In this case, stage1-gcc is linked to shared objects in
/N/soft/rhel7/gcc/infrastructure/lib.

> configure:3462: 
> /N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/xgcc 
> -B/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/ 
> -B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/bin/ 
> -B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/lib/ -isystem 
> /N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/include -isystem 
> /N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/sys-include    -o conftest 
> -g -O2   conftest.c  >&5
> /N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/cc1: 
> error while loading shared libraries: libisl.so.15: cannot open shared 
> object file: No such file or directory
> configure:3465: $? = 1
> configure:3653: checking for suffix of object files
> configure:3675: 
> /N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/xgcc 
> -B/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/ 
> -B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/bin/ 
> -B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/lib/ -isystem 
> /N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/include -isystem 
> /N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/sys-include    -c -g -O2  
> conftest.c >&5
> /N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/cc1: 
> error while loading shared libraries: libisl.so.15: cannot open shared 
> object file: No such file or directory
> configure:3679: $? = 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 ""
> > #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
> > /* end confdefs.h.  */
> > 
> > int
> > main ()
> > {
> > 
> >   ;
> >   return 0;
> > }
> configure:3693: error: in 
> `/N/soft/rhel7/gcc/build/gcc-6.3.0/x86_64-pc-linux-gnu/libgcc':
> configure:3696: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> **************************

You should add /N/soft/rhel7/gcc/infrastructure/lib into shared object
searching path of ld.so(8).  You can use LD_LIBRARY_PATH or ld.so.conf
to do this.

If you don't want to deal with shared object dependencies, you should
put MPC, MPFR, GMP, and ISL into GCC source tree.  The script
contrib/download_prerequisites in GCC source tree would do that.
-- 
Xi Ruoyao <ryxi@xxxxxxxxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux