Can not follow FAQ about suffix error
Xi Ruoyao
ryxi@stu.xidian.edu.cn
Fri Apr 28 10:14:00 GMT 2017
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@stu.xidian.edu.cn>
School of Aerospace Science and Technology, Xidian University
More information about the Gcc-help
mailing list