gmp-6.1.0 libtool error

Kurt M. Sanger ksanger at rochester.rr.com
Wed Jun 15 19:35:03 UTC 2016


I'm having trouble trying to compile gcc.  gcc-6.1.0 and gcc--5.4.0 both 
fail with a message regarding libtool.

Error received from making gcc-6.1.0 with gmp6.1.0 uncompressed into the 
gcc-6.1.0 source directory and a symbolic link defining gmp to be gmp-6.1.0

/libtool:   error: only absolute run-paths are allowed//
//Makefile:864: recipe for target 'libgmp.la' failed//
//make[5]: *** [libgmp.la] Error 1//
/
files used are gcc-6.1.0.tar.gz, and gmp-6.1.0.tar.bz2, check sums and 
sha256 keys were verified.

gcc is uncompressed to /home/me/workspace/ resulting in gcc-6.1.0 directory.
gmp is uncompressed to /home/me/workspace/gcc-6.1.0 resulting in 
gcc-6.1.0/gmp-6.1.0 directory
from workspace cd gcc-6.1.0

create symbolic link for gmp to point to the correct directory.
ln gmp-6.1.0 gmp

then cd .. back to workspace.
mkdir obj_gcc-6.1.0
cd obj_gcc-6.1.0

configure gcc with;

/home/me/workspace/gcc-6.1.0/configure 
--prefix='$HOME/workspace/usr/local' --disable-multilib 
--with-pkgversion='my_V1.0.0'

Then run make with:
make
note if I run make using -j or -j8 it runs faster but the libtool error 
is hidden.

I have tried the contrib/download_prerequisites shell script within the 
gcc source folder and that fails too.  Note this script loads gmp-4.3.2 
which has a known libtool issue.
GMP=gmp-4.3.2
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$GMP.tar.bz2 || exit 1
tar xjf $GMP.tar.bz2  || exit 1
ln -sf $GMP gmp || exit 1

I have also tried running gcc on the gmc-6.1.0 source from an object 
directory and get the same libtool error message.
Which is why I am posting this information as a bug at gmc.

O.S. is openSuse leap 42.1 (x86_64) 64-bit, recently installed with 
gnome desktop.

gcc --version
gcc (SUSE Linux) 4.8.5
Copyright (C) 2015 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.

uname -a
Linux Wart 4.1.21-14-default #1 SMP PREEMPT Sun Apr 17 07:27:45 UTC 2016 
(fc187c1) x86_64 x86_64 x86_64 GNU/Linux

libtool --version
libtool (GNU libtool) 2.4.2
Written by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 1996

./config.guess
bulldozer-pc-linux-gnu
  ./configfsf.guess
x86_64-pc-linux-gnu

Below is the terminal output lines starting with the last complete 
instruction before the error message.

/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I/home/me/workspace/gcc-6.1.0/gmp  -D__GMP_WITHIN_GMP   -g -c -o 
tal-reent.lo /home/me/workspace/gcc-6.1.0/gmp/tal-reent.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. 
-I/home/me/workspace/gcc-6.1.0/gmp -D__GMP_WITHIN_GMP -g -c 
/home/me/workspace/gcc-6.1.0/gmp/tal-reent.c -o tal-reent.o
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -g   -version-info 13:0:3 
-static-libstdc++ -static-libgcc  -o libgmp.la -rpath 
OME/workspace/usr/local/lib64 assert.lo compat.lo errno.lo 
extract-dbl.lo invalid.lo memory.lo mp_bpl.lo mp_clz_tab.lo mp_dv_tab.lo 
mp_minv_tab.lo mp_get_fns.lo mp_set_fns.lo version.lo nextprime.lo 
primesieve.lo tal-reent.lo mpf/init.lo mpf/init2.lo mpf/inits.lo 
mpf/set.lo mpf/set_ui.lo mpf/set_si.lo mpf/set_str.lo mpf/set_d.lo 
mpf/set_z.lo mpf/iset.lo mpf/iset_ui.lo mpf/iset_si.lo mpf/iset_str.lo 
mpf/iset_d.lo mpf/clear.lo mpf/clears.lo mpf/get_str.lo mpf/dump.lo 
mpf/size.lo mpf/eq.lo mpf/reldiff.lo mpf/sqrt.lo mpf/random2.lo 
mpf/inp_str.lo mpf/out_str.lo mpf/add.lo mpf/add_ui.lo mpf/sub.lo 
mpf/sub_ui.lo mpf/ui_sub.lo mpf/mul.lo mpf/mul_ui.lo mpf/div.lo 
mpf/div_ui.lo mpf/cmp_z.lo mpf/cmp.lo mpf/cmp_d.lo mpf/cmp_ui.lo 
mpf/cmp_si.lo mpf/mul_2exp.lo mpf/div_2exp.lo mpf/abs.lo mpf/neg.lo 
mpf/set_q.lo mpf/get_d.lo mpf/get_d_2exp.lo mpf/set_dfl_prec.lo 
mpf/set_prc.lo mpf/set_prc_raw.lo mpf/get_dfl_prec.lo mpf/get_prc.lo 
mpf/ui_div.lo mpf/sqrt_ui.lo mpf/ceilfloor.lo mpf/trunc.lo mpf/pow_ui.lo 
mpf/urandomb.lo mpf/swap.lo mpf/fits_sint.lo mpf/fits_slong.lo 
mpf/fits_sshort.lo mpf/fits_uint.lo mpf/fits_ulong.lo mpf/fits_ushort.lo 
mpf/get_si.lo mpf/get_ui.lo mpf/int_p.lo mpz/abs.lo mpz/add.lo 
mpz/add_ui.lo mpz/aorsmul.lo mpz/aorsmul_i.lo mpz/and.lo 
mpz/array_init.lo mpz/bin_ui.lo mpz/bin_uiui.lo mpz/cdiv_q.lo 
mpz/cdiv_q_ui.lo mpz/cdiv_qr.lo mpz/cdiv_qr_ui.lo mpz/cdiv_r.lo 
mpz/cdiv_r_ui.lo mpz/cdiv_ui.lo mpz/cfdiv_q_2exp.lo mpz/cfdiv_r_2exp.lo 
mpz/clear.lo mpz/clears.lo mpz/clrbit.lo mpz/cmp.lo mpz/cmp_d.lo 
mpz/cmp_si.lo mpz/cmp_ui.lo mpz/cmpabs.lo mpz/cmpabs_d.lo 
mpz/cmpabs_ui.lo mpz/com.lo mpz/combit.lo mpz/cong.lo mpz/cong_2exp.lo 
mpz/cong_ui.lo mpz/divexact.lo mpz/divegcd.lo mpz/dive_ui.lo 
mpz/divis.lo mpz/divis_ui.lo mpz/divis_2exp.lo mpz/dump.lo mpz/export.lo 
mpz/mfac_uiui.lo mpz/2fac_ui.lo mpz/fac_ui.lo mpz/oddfac_1.lo 
mpz/prodlimbs.lo mpz/fdiv_q_ui.lo mpz/fdiv_qr.lo mpz/fdiv_qr_ui.lo 
mpz/fdiv_r.lo mpz/fdiv_r_ui.lo mpz/fdiv_q.lo mpz/fdiv_ui.lo 
mpz/fib_ui.lo mpz/fib2_ui.lo mpz/fits_sint.lo mpz/fits_slong.lo 
mpz/fits_sshort.lo mpz/fits_uint.lo mpz/fits_ulong.lo mpz/fits_ushort.lo 
mpz/gcd.lo mpz/gcd_ui.lo mpz/gcdext.lo mpz/get_d.lo mpz/get_d_2exp.lo 
mpz/get_si.lo mpz/get_str.lo mpz/get_ui.lo mpz/getlimbn.lo 
mpz/hamdist.lo mpz/import.lo mpz/init.lo mpz/init2.lo mpz/inits.lo 
mpz/inp_raw.lo mpz/inp_str.lo mpz/invert.lo mpz/ior.lo mpz/iset.lo 
mpz/iset_d.lo mpz/iset_si.lo mpz/iset_str.lo mpz/iset_ui.lo 
mpz/jacobi.lo mpz/kronsz.lo mpz/kronuz.lo mpz/kronzs.lo mpz/kronzu.lo 
mpz/lcm.lo mpz/lcm_ui.lo mpz/limbs_finish.lo mpz/limbs_modify.lo 
mpz/limbs_read.lo mpz/limbs_write.lo mpz/lucnum_ui.lo mpz/lucnum2_ui.lo 
mpz/millerrabin.lo mpz/mod.lo mpz/mul.lo mpz/mul_2exp.lo mpz/mul_si.lo 
mpz/mul_ui.lo mpz/n_pow_ui.lo mpz/neg.lo mpz/nextprime.lo mpz/out_raw.lo 
mpz/out_str.lo mpz/perfpow.lo mpz/perfsqr.lo mpz/popcount.lo 
mpz/pow_ui.lo mpz/powm.lo mpz/powm_sec.lo mpz/powm_ui.lo 
mpz/primorial_ui.lo mpz/pprime_p.lo mpz/random.lo mpz/random2.lo 
mpz/realloc.lo mpz/realloc2.lo mpz/remove.lo mpz/roinit_n.lo mpz/root.lo 
mpz/rootrem.lo mpz/rrandomb.lo mpz/scan0.lo mpz/scan1.lo mpz/set.lo 
mpz/set_d.lo mpz/set_f.lo mpz/set_q.lo mpz/set_si.lo mpz/set_str.lo 
mpz/set_ui.lo mpz/setbit.lo mpz/size.lo mpz/sizeinbase.lo mpz/sqrt.lo 
mpz/sqrtrem.lo mpz/sub.lo mpz/sub_ui.lo mpz/swap.lo mpz/tdiv_ui.lo 
mpz/tdiv_q.lo mpz/tdiv_q_2exp.lo mpz/tdiv_q_ui.lo mpz/tdiv_qr.lo 
mpz/tdiv_qr_ui.lo mpz/tdiv_r.lo mpz/tdiv_r_2exp.lo mpz/tdiv_r_ui.lo 
mpz/tstbit.lo mpz/ui_pow_ui.lo mpz/ui_sub.lo mpz/urandomb.lo 
mpz/urandomm.lo mpz/xor.lo mpq/abs.lo mpq/aors.lo mpq/canonicalize.lo 
mpq/clear.lo mpq/clears.lo mpq/cmp.lo mpq/cmp_si.lo mpq/cmp_ui.lo 
mpq/div.lo mpq/get_d.lo mpq/get_den.lo mpq/get_num.lo mpq/get_str.lo 
mpq/init.lo mpq/inits.lo mpq/inp_str.lo mpq/inv.lo mpq/md_2exp.lo 
mpq/mul.lo mpq/neg.lo mpq/out_str.lo mpq/set.lo mpq/set_den.lo 
mpq/set_num.lo mpq/set_si.lo mpq/set_str.lo mpq/set_ui.lo mpq/equal.lo 
mpq/set_z.lo mpq/set_d.lo mpq/set_f.lo mpq/swap.lo mpn/fib_table.lo 
mpn/mp_bases.lo  mpn/add.lo mpn/add_1.lo mpn/add_n.lo mpn/sub.lo 
mpn/sub_1.lo mpn/sub_n.lo mpn/cnd_add_n.lo mpn/cnd_sub_n.lo 
mpn/cnd_swap.lo mpn/neg.lo mpn/com.lo mpn/mul_1.lo mpn/addmul_1.lo 
mpn/submul_1.lo mpn/add_err1_n.lo mpn/add_err2_n.lo mpn/add_err3_n.lo 
mpn/sub_err1_n.lo mpn/sub_err2_n.lo mpn/sub_err3_n.lo mpn/lshift.lo 
mpn/rshift.lo mpn/dive_1.lo mpn/diveby3.lo mpn/divis.lo mpn/divrem.lo 
mpn/divrem_1.lo mpn/divrem_2.lo mpn/fib2_ui.lo mpn/mod_1.lo 
mpn/mod_34lsub1.lo mpn/mode1o.lo mpn/pre_divrem_1.lo mpn/pre_mod_1.lo 
mpn/dump.lo mpn/mod_1_1.lo mpn/mod_1_2.lo mpn/mod_1_3.lo mpn/mod_1_4.lo 
mpn/lshiftc.lo mpn/mul.lo mpn/mul_fft.lo mpn/mul_n.lo mpn/sqr.lo 
mpn/mul_basecase.lo mpn/sqr_basecase.lo mpn/nussbaumer_mul.lo 
mpn/mulmid_basecase.lo mpn/toom42_mulmid.lo mpn/mulmid_n.lo 
mpn/mulmid.lo mpn/random.lo mpn/random2.lo mpn/pow_1.lo mpn/rootrem.lo 
mpn/sqrtrem.lo mpn/sizeinbase.lo mpn/get_str.lo mpn/set_str.lo 
mpn/scan0.lo mpn/scan1.lo mpn/popcount.lo mpn/hamdist.lo mpn/cmp.lo 
mpn/zero_p.lo mpn/perfsqr.lo mpn/perfpow.lo mpn/gcd_1.lo mpn/gcd.lo 
mpn/gcdext_1.lo mpn/gcdext.lo mpn/gcd_subdiv_step.lo 
mpn/gcdext_lehmer.lo mpn/div_q.lo mpn/tdiv_qr.lo mpn/jacbase.lo 
mpn/jacobi_2.lo mpn/jacobi.lo mpn/get_d.lo mpn/matrix22_mul.lo 
mpn/matrix22_mul1_inverse_vector.lo mpn/hgcd_matrix.lo mpn/hgcd2.lo 
mpn/hgcd_step.lo mpn/hgcd_reduce.lo mpn/hgcd.lo mpn/hgcd_appr.lo 
mpn/hgcd2_jacobi.lo mpn/hgcd_jacobi.lo mpn/mullo_n.lo 
mpn/mullo_basecase.lo mpn/sqrlo.lo mpn/sqrlo_basecase.lo 
mpn/toom22_mul.lo mpn/toom32_mul.lo mpn/toom42_mul.lo mpn/toom52_mul.lo 
mpn/toom62_mul.lo mpn/toom33_mul.lo mpn/toom43_mul.lo mpn/toom53_mul.lo 
mpn/toom54_mul.lo mpn/toom63_mul.lo mpn/toom44_mul.lo mpn/toom6h_mul.lo 
mpn/toom6_sqr.lo mpn/toom8h_mul.lo mpn/toom8_sqr.lo 
mpn/toom_couple_handling.lo mpn/toom2_sqr.lo mpn/toom3_sqr.lo 
mpn/toom4_sqr.lo mpn/toom_eval_dgr3_pm1.lo mpn/toom_eval_dgr3_pm2.lo 
mpn/toom_eval_pm1.lo mpn/toom_eval_pm2.lo mpn/toom_eval_pm2exp.lo 
mpn/toom_eval_pm2rexp.lo mpn/toom_interpolate_5pts.lo 
mpn/toom_interpolate_6pts.lo mpn/toom_interpolate_7pts.lo 
mpn/toom_interpolate_8pts.lo mpn/toom_interpolate_12pts.lo 
mpn/toom_interpolate_16pts.lo mpn/invertappr.lo mpn/invert.lo 
mpn/binvert.lo mpn/mulmod_bnm1.lo mpn/sqrmod_bnm1.lo mpn/div_qr_1.lo 
mpn/div_qr_1n_pi1.lo mpn/div_qr_2.lo mpn/div_qr_2n_pi1.lo 
mpn/div_qr_2u_pi1.lo mpn/sbpi1_div_q.lo mpn/sbpi1_div_qr.lo 
mpn/sbpi1_divappr_q.lo mpn/dcpi1_div_q.lo mpn/dcpi1_div_qr.lo 
mpn/dcpi1_divappr_q.lo mpn/mu_div_qr.lo mpn/mu_divappr_q.lo 
mpn/mu_div_q.lo mpn/bdiv_q_1.lo mpn/sbpi1_bdiv_q.lo mpn/sbpi1_bdiv_qr.lo 
mpn/dcpi1_bdiv_q.lo mpn/dcpi1_bdiv_qr.lo mpn/mu_bdiv_q.lo 
mpn/mu_bdiv_qr.lo mpn/bdiv_q.lo mpn/bdiv_qr.lo mpn/broot.lo 
mpn/brootinv.lo mpn/bsqrt.lo mpn/bsqrtinv.lo mpn/divexact.lo 
mpn/bdiv_dbm1c.lo mpn/redc_1.lo mpn/redc_2.lo mpn/redc_n.lo mpn/powm.lo 
mpn/powlo.lo mpn/sec_powm.lo mpn/sec_mul.lo mpn/sec_sqr.lo 
mpn/sec_div_qr.lo mpn/sec_div_r.lo mpn/sec_pi1_div_qr.lo 
mpn/sec_pi1_div_r.lo mpn/sec_add_1.lo mpn/sec_sub_1.lo mpn/sec_invert.lo 
mpn/trialdiv.lo mpn/remove.lo mpn/and_n.lo mpn/andn_n.lo mpn/nand_n.lo 
mpn/ior_n.lo mpn/iorn_n.lo mpn/nior_n.lo mpn/xor_n.lo mpn/xnor_n.lo 
mpn/copyi.lo mpn/copyd.lo mpn/zero.lo mpn/sec_tabselect.lo 
mpn/comb_tables.lo mpn/add_n_sub_n.lo printf/asprintf.lo 
printf/asprntffuns.lo printf/doprnt.lo printf/doprntf.lo 
printf/doprnti.lo printf/fprintf.lo printf/obprintf.lo 
printf/obvprintf.lo printf/obprntffuns.lo printf/printf.lo 
printf/printffuns.lo printf/snprintf.lo printf/snprntffuns.lo 
printf/sprintf.lo printf/sprintffuns.lo printf/vasprintf.lo 
printf/vfprintf.lo printf/vprintf.lo printf/vsnprintf.lo 
printf/vsprintf.lo printf/repl-vsnprintf.lo  scanf/doscan.lo 
scanf/fscanf.lo scanf/fscanffuns.lo scanf/scanf.lo scanf/sscanf.lo 
scanf/sscanffuns.lo scanf/vfscanf.lo scanf/vscanf.lo scanf/vsscanf.lo 
rand/rand.lo rand/randclr.lo rand/randdef.lo rand/randiset.lo 
rand/randlc2s.lo rand/randlc2x.lo rand/randmt.lo rand/randmts.lo 
rand/rands.lo rand/randsd.lo rand/randsdui.lo rand/randbui.lo 
rand/randmui.lo
libtool:   error: only absolute run-paths are allowed
Makefile:864: recipe for target 'libgmp.la' failed
make[5]: *** [libgmp.la] Error 1
make[5]: Leaving directory '/home/me/workspace/obj_gcc-6.1.0/gmp'
Makefile:954: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/me/workspace/obj_gcc-6.1.0/gmp'
Makefile:773: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/me/workspace/obj_gcc-6.1.0/gmp'
Makefile:5215: recipe for target 'all-stage1-gmp' failed
make[2]: *** [all-stage1-gmp] Error 2
make[2]: Leaving directory '/home/me/workspace/obj_gcc-6.1.0'
Makefile:26425: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/me/workspace/obj_gcc-6.1.0'
Makefile:921: recipe for target 'all' failed
make: *** [all] Error 2

Any help or ideas would be appreciated.  I see a version of gcc6.1 in 
the openSuse YaST repository but it doesn't state if it over rides /usr/ 
or installs elsewhere...

Sincerly
Kurt M. Sanger
ksanger at rochester.rr.com




More information about the gmp-bugs mailing list