[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gmp make problem.
From: |
R. Clayton |
Subject: |
gmp make problem. |
Date: |
Wed, 3 Jan 2001 19:20:17 -0500 (EST) |
I'm trying to install gmp 3.1.1 unpatched on a sparc
cl uname -a
SunOS clayton 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-5_10
cl ./config.guess
sparcv9-sun-solaris2.7
and I've run into some problems. Due to prior problems with just using
"./configure", I ran configure with target = sparc, as recommended by the info
file:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure version 2.14a, executed with
> ./configure --prefix=/export/home/uf/rclayton/local --target=sparc
configure:636: checking host system type
configure:672: checking target system type
configure:707: checking build system type
configure:778: checking for a BSD compatible install
configure:835: checking whether build environment is sane
configure:906: checking for mawk
configure:906: checking for gawk
configure:906: checking for nawk
configure:939: checking whether make sets ${MAKE}
configure:1029: checking whether to enable maintainer-specific portions of
Makefiles
configure:1352: checking for BSD-compatible nm
configure:1418: checking for gcc
configure:1498: checking if the C compiler (gcc) works with flags -g -O2
configure:1508: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1868: checking whether the C compiler (gcc -g -O2 ) works
configure:1884: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1910: checking whether the C compiler (gcc -g -O2 ) is a
cross-compiler
configure:1915: checking whether we are using GNU C
configure:1924: gcc -E conftest.c
configure:1956: checking how to run the C preprocessor
configure:1978: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2050: checking for a BSD compatible install
configure:2107: checking whether ln -s works
configure:2128: checking for suitable m4
trying m4
good
configure:2178: checking for ar
configure:2216: checking how to switch to text section
configure:2235: checking how to switch to data section
configure:2253: checking how to export a symbol
configure:2267: checking what assembly label suffix to use
configure:2281: checking how the .type assembly directive should be used
configure:2288: gcc -c -g -O2 conftest.s 1>&5
/usr/ccs/bin/as: "conftest.s", line 1: error: invalid character (0x40)
configure:2288: gcc -c -g -O2 conftest.s 1>&5
configure:2302: checking if the .size assembly directive works
configure:2308: gcc -c -g -O2 conftest.s 1>&5
configure:2319: checking what prefix to use for a local label
configure:2335: gcc -c -g -O2 conftest.s 1>&5
configure:2335: gcc -c -g -O2 conftest.s 1>&5
configure:2359: checking how to [define] a 32-bit word
configure:2388: gcc -c -g -O2 conftest.s 1>&5
configure:2412: checking if symbols are prefixed by underscore
configure:2422: gcc -c -g -O2 conftest.c 1>&5
configure:2449: checking if .align assembly directive is logarithmic
configure:2467: gcc -c -g -O2 conftest.s 1>&5
configure:2822: checking for Cygwin environment
configure:2841: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2835: `__CYGWIN32__' undeclared (first use in this function)
configure:2835: (Each undeclared identifier is reported only once
configure:2835: for each function it appears in.)
configure: failed program was:
#line 2827 "configure"
#include "confdefs.h"
int
main ()
{
#ifndef __CYGWIN__
# define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
;
return 0;
}
configure:2856: checking for mingw32 environment
configure:2872: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2866: `__MINGW32__' undeclared (first use in this function)
configure:2866: (Each undeclared identifier is reported only once
configure:2866: for each function it appears in.)
configure: failed program was:
#line 2861 "configure"
#include "confdefs.h"
int
main ()
{
return __MINGW32__;
;
return 0;
}
configure:2887: checking for EMX OS/2 environment
configure:2903: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2897: `__EMX__' undeclared (first use in this function)
configure:2897: (Each undeclared identifier is reported only once
configure:2897: for each function it appears in.)
configure: failed program was:
#line 2892 "configure"
#include "confdefs.h"
int
main ()
{
return __EMX__;
;
return 0;
}
configure:2919: checking for executable suffix
configure:2929: gcc -o conftest -g -O2 conftest.c 1>&5
configure:2950: checking for object suffix
configure:2956: gcc -c -g -O2 conftest.c 1>&5
configure:3044: checking build system type
configure:3090: checking for ld used by GCC
configure:3158: checking if the linker (/usr/ccs/bin/ld) is GNU ld
configure:3173: checking for /usr/ccs/bin/ld option to reload object files
configure:3184: checking how to recognise dependant libraries
configure:3446: checking for ranlib
configure:3518: checking for strip
ltconfig:563:checking for gcc option to produce PIC
ltconfig:693:checking that gcc PIC flag -fPIC works.
ltconfig:702: gcc -c -g -O2 -fPIC -DPIC conftest.c 1>&5
ltconfig:754: checking if gcc static flag -static works
ltconfig:762: gcc -o conftest -g -O2 -static conftest.c 1>&5
ltconfig:799: checking if gcc supports -c -o file.o
ltconfig:800: gcc -c -g -O2 -o out/conftest2.o conftest.c 1>&5
ltconfig:832: checking if gcc supports -c -o file.lo
ltconfig:833: gcc -c -g -O2 -c -o conftest.lo conftest.c 1>&5
ltconfig:884: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:885: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c
conftest.c 1>&5
ltconfig:1867: checking if global_symbol_pipe works
ltconfig:1868: gcc -c -g -O2 conftest.c 1>&5
ltconfig:1871: eval "/usr/ccs/bin/nm -p conftest.o | sed -n -e 's/^.*[
]\([BCDEGRST]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'
> conftest.nm"
ltconfig:1923: gcc -o conftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions
conftest.c conftstm.o 1>&5
configure:3769: checking whether optarg is declared
configure:3788: gcc -c -g -O2 conftest.c 1>&5
configure:3813: checking for ANSI C header files
configure:3828: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3913: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3940: checking for getopt.h
configure:3952: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3947: getopt.h: No such file or directory
configure: failed program was:
#line 3946 "configure"
#include "confdefs.h"
#include <getopt.h>
configure:3940: checking for unistd.h
configure:3952: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3940: checking for sys/sysctl.h
configure:3952: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3947: sys/sysctl.h: No such file or directory
configure: failed program was:
#line 3946 "configure"
#include "confdefs.h"
#include <sys/sysctl.h>
configure:3940: checking for sys/time.h
configure:3952: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3976: checking for void
configure:3995: gcc -c -g -O2 conftest.c 1>&5
configure:4015: checking for preprocessor stringizing operator
configure:4053: checking for getopt_long
configure:4086: gcc -o conftest -g -O2 conftest.c 1>&5
Undefined first referenced
symbol in file
getopt_long /var/tmp/cclTG4Fp.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4058 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getopt_long(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getopt_long();
char (*f)();
int
main()
{
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
choke me
#else
f = getopt_long;
#endif
;
return 0;
}
configure:4053: checking for getpagesize
configure:4086: gcc -o conftest -g -O2 conftest.c 1>&5
configure:4053: checking for popen
configure:4086: gcc -o conftest -g -O2 conftest.c 1>&5
configure:4053: checking for processor_info
configure:4086: gcc -o conftest -g -O2 conftest.c 1>&5
configure:4053: checking for strtoul
configure:4086: gcc -o conftest -g -O2 conftest.c 1>&5
configure:4053: checking for sysconf
configure:4086: gcc -o conftest -g -O2 conftest.c 1>&5
configure:4053: checking for sysctlbyname
configure:4086: gcc -o conftest -g -O2 conftest.c 1>&5
Undefined first referenced
symbol in file
sysctlbyname /var/tmp/ccHbB4an.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4058 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sysctlbyname(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sysctlbyname();
char (*f)();
int
main()
{
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_sysctlbyname) || defined (__stub___sysctlbyname)
choke me
#else
f = sysctlbyname;
#endif
;
return 0;
}
configure:4108: checking if ansi2knr should be used
configure:4115: gcc -c -g -O2 conftest.c 1>&5
The gcc version is
cl gcc -v
Reading specs from
/export/opt/gcc/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)
After typing "make", everything grinds along until
/usr/ccs/bin/ld -assert pure-text -Bstatic -o .libs/libgmp.so.4.1 assert.lo
compat.lo errno.lo memory.lo mp_set_fns.lo mp_clz_tab.lo mp_minv_tab.lo
rand.lo randclr.lo randlc.lo randlc2x.lo randraw.lo randsd.lo randsdui.lo
version.lo stack-alloc.lo mp_bpl.lo extract-dbl.lo insert-dbl.lo mpf/init.lo
mpf/init2.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/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.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/set_dfl_prec.lo
mpf/set_prc.lo mpf/set_prc_raw.lo mpf/get_prc.lo mpf/ui_div.lo mpf/sqrt_ui.lo
mpf/floor.lo mpf/ceil.lo mpf/trunc.lo mpf/pow_ui.lo mpf/urandomb.lo
mpf/swap.lo mpz/abs.lo mpz/add.lo mpz/add_ui.lo mpz/addmul_ui.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/clear.lo mpz/clrbit.lo mpz/cmp.lo
mpz/cmp_si.lo mpz/cmp_ui.lo mpz/cmpabs.lo mpz/cmpabs_ui.lo mpz/com.lo
mpz/divexact.lo mpz/dump.lo mpz/fac_ui.lo mpz/fdiv_q.lo mpz/fdiv_q_2exp.lo
mpz/fdiv_q_ui.lo mpz/fdiv_qr.lo mpz/fdiv_qr_ui.lo mpz/fdiv_r.lo
mpz/fdiv_r_2exp.lo mpz/fdiv_r_ui.lo mpz/fdiv_ui.lo mpz/fib_ui.lo
mpz/fits_sint_p.lo mpz/fits_slong_p.lo mpz/fits_sshort_p.lo
mpz/fits_uint_p.lo mpz/fits_ulong_p.lo mpz/fits_ushort_p.lo mpz/gcd.lo
mpz/gcd_ui.lo mpz/gcdext.lo mpz/get_d.lo mpz/get_si.lo mpz/get_str.lo
mpz/get_ui.lo mpz/getlimbn.lo mpz/hamdist.lo mpz/init.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/legendre.lo
mpz/mod.lo mpz/mul.lo mpz/mul_2exp.lo mpz/mul_si.lo mpz/mul_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_ui.lo mpz/pprime_p.lo
mpz/random.lo mpz/random2.lo mpz/realloc.lo mpz/remove.lo mpz/root.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/urandomb.lo mpz/urandomm.lo mpz/xor.lo mpn/mp_bases.lo
mpn/udiv_fp.lo mpn/inlines.lo mpn/add_n.lo mpn/sub_n.lo mpn/mul_1.lo
mpn/addmul_1.lo mpn/submul_1.lo mpn/lshift.lo mpn/rshift.lo mpn/diveby3.lo
mpn/divrem.lo mpn/divrem_1.lo mpn/divrem_2.lo mpn/mod_1.lo mpn/mod_1_rs.lo
mpn/pre_mod_1.lo mpn/dump.lo mpn/mul.lo mpn/mul_fft.lo mpn/mul_n.lo
mpn/mul_basecase.lo mpn/sqr_basecase.lo mpn/random.lo mpn/random2.lo
mpn/sqrtrem.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/perfsqr.lo mpn/bdivmod.lo
mpn/gcd_1.lo mpn/gcd.lo mpn/gcdext.lo mpn/tdiv_qr.lo mpn/bz_divrem_n.lo
mpn/sb_divrem_mn.lo mpn/jacbase.lo mpq/add.lo mpq/canonicalize.lo
mpq/clear.lo mpq/cmp.lo mpq/cmp_ui.lo mpq/div.lo mpq/get_d.lo mpq/get_den.lo
mpq/get_num.lo mpq/init.lo mpq/inv.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_ui.lo
mpq/sub.lo mpq/equal.lo mpq/set_z.lo mpq/set_d.lo mpq/swap.lo -lc
ld: fatal: file pure-text: open failed: No such file or directory
make[2]: *** [libgmp.la] Error 1
I went into gmp-3.1.1/libtool and changed the archive_cmds environment variable
to remove "-assert pure-text"; that fixed "make" but broke "make check":
make[2]: Entering directory
`/export/home/uf/rclayton/local/src/gmp-3.1.1/mpz/tests'
make t-mul t-tdiv t-tdiv_ui t-fdiv t-fdiv_ui t-gcd dive t-sqrtrem convert io
logic bit t-powm t-powm_ui t-pow_ui t-2exp reuse t-root t-jac t-bin t-misc
make[3]: Entering directory
`/export/home/uf/rclayton/local/src/gmp-3.1.1/mpz/tests'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -g -O2 -c t-mul.c
/bin/sh ../../libtool --mode=link gcc -g -O2 -o t-mul t-mul.o
../../libgmp.la
mkdir .libs
libtool: link: warning: this platform does not like uninstalled shared
libraries
libtool: link: `t-mul' will be relinked during installation
gcc -g -O2 -o .libs/t-mul t-mul.o ../../.libs/libgmp.so.4.1
-L/export/home/uf/rclayton/local/src/gmp-3.1.1/.libs
-L/export/home/uf/rclayton/local/lib
ld: elf error: file ../../.libs/libgmp.so.4.1: unknown type, unable to
process using elf(3E) libraries
ld: fatal: File processing errors. No output written to .libs/t-mul
collect2: ld returned 1 exit status
make[3]: *** [t-mul] Error 1
make[3]: Leaving directory
`/export/home/uf/rclayton/local/src/gmp-3.1.1/mpz/tests'
Just to be clear: the problem seems to be the "-assert pure-text" included in
the ld statement above. The problem with "make check" is almost certainly a
result of me fiddling with libtool and will dissapear once the assert problem
is fixed.
- gmp make problem.,
R. Clayton <=