bug-gmp
[Top][All Lists]
Advanced

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

GMP on OSX errors


From: glenbo
Subject: GMP on OSX errors
Date: Mon, 18 Dec 2000 09:28:50 -0800 (PST)

Here is my bug report from installing GMP on OSX. I have dual PowerMac G4 
450 w/128MB RAM. Let me know if you need anything else or want me to try
something additional. Thanks for the help.

--glen

01100111 01101100 01100101
01101110 01100010 01101111




-GMP version = 3.1.1

-I am attempting to install GMP 3.1.1 on the MacOSX Public Beta. I get  
errors when I attempt to do a simple install (./configure; make) I have
tried multiple options, including doing a simple install with no options,
then also doing a targeted install with --host=powerpc-apple-darwin1.2 and
removing the line:
        include_mpn(`powerpc32/regmap.m4')
from config.m4. Neither way works. I get the following errors:

        tmp-add_n.s:64:Junk character -1 ().
        make[3]: *** [add_n.lo] Error 1
        make[2]: *** [all-recursive] Error 1
        make[1]: *** [all-recursive] Error 1
        make: *** [all-recursive-am] Error 2

-I ran configure with the --host=powerpc-apple-darwin1.2 option

-'cc -v' = Reading specs from /usr/libexec/ppc/2.95.2/specs
Apple Computer, Inc. version cc-796.3, based on gcc driver version 2.7.2.1 
executing gcc version 2.95.2

-'uname -a' = Darwin localhost 1.2 Darwin Kernel Version 1.2: Wed Aug 30 
23:32:53 PDT 2000; root:xnu/xnu-103.obj~1/RELEASE_PPC  Power Macintosh powerpc

-'./config.guess' = powerpc-apple-darwin1.2

here are config.log and config.mf:

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  --host=powerpc-apple-darwin1.2

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: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
-mpowerpc
configure:1508: gcc -o conftest -g -O2 -mpowerpc   conftest.c  1>&5
./configure: command not found: gcc [1507]
configure: failed program was:

#line 1503 "configure"
#include "confdefs.h"

int main(){return(0);}
configure:1418: checking for cc
configure:1498: checking if the C compiler (cc) works with flags -g
configure:1508: cc -o conftest -g   conftest.c  1>&5
configure:1868: checking whether the C compiler (cc -g  ) works
configure:1884: cc -o conftest -g   conftest.c  1>&5
configure:1910: checking whether the C compiler (cc -g  ) is a
cross-compiler
configure:1915: checking whether we are using GNU C
configure:1924: cc -E conftest.c
configure:1956: checking how to run the C preprocessor
configure:1978: cc -E  conftest.c >/dev/null 2>conftest.out
configure:1974: undefined type, found `Syntax'
configure:1974: illegal external declaration, missing `;' after `Error'
configure: failed program was:
#line 1972 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1996: cc -E -traditional-cpp  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: cc -c -g conftest.s 1>&5
conftest.s:1:Unknown pseudo-op: .type
conftest.s:1:Rest of line ignored. 1st junk character valued 115 (s).
conftest.s:1:Invalid mnemonic 'function'
configure:2288: cc -c -g conftest.s 1>&5
conftest.s:1:Unknown pseudo-op: .type
conftest.s:1:Rest of line ignored. 1st junk character valued 115 (s).
configure:2288: cc -c -g conftest.s 1>&5
conftest.s:1:Unknown pseudo-op: .type
conftest.s:1:Rest of line ignored. 1st junk character valued 115 (s).
configure:2302: checking if the .size assembly directive works
configure:2308: cc -c -g conftest.s 1>&5
conftest.s:1:Unknown pseudo-op: .size
conftest.s:1:Rest of line ignored. 1st junk character valued 115 (s).
configure:2319: checking what prefix to use for a local label
configure:2335: cc -c -g conftest.s 1>&5
configure:2359: checking how to [define] a 32-bit word
configure:2388: cc -c -g conftest.s 1>&5
configure:2412: checking if symbols are prefixed by underscore
configure:2422: cc -c -g  conftest.c 1>&5
configure:2449: checking if .align assembly directive is logarithmic
configure:2467: cc -c -g conftest.s 1>&5
configure:2822: checking for Cygwin environment
configure:2841: cc -c -g  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: cc -c -g  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: cc -c -g  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: cc -o conftest -g   conftest.c  1>&5
configure:2950: checking for object suffix
configure:2956: cc -c -g  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/bin/ld) is GNU ld
configure:3173: checking for /usr/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 cc option to produce PIC
ltconfig:693:checking that cc PIC flag -fPIC works.
ltconfig:702: cc -c -g -fPIC -DPIC  conftest.c 1>&5
ltconfig:754: checking if cc static flag -static works
ltconfig:762: cc -o conftest -g   -static conftest.c  1>&5
/usr/bin/ld: can't locate file for: -lcrt0.o
ltconfig:799: checking if cc supports -c -o file.o
ltconfig:800: cc -c -g -o out/conftest2.o  conftest.c 1>&5
ltconfig:832: checking if cc supports -c -o file.lo
ltconfig:833: cc -c -g -c -o conftest.lo  conftest.c 1>&5
ltconfig:884: checking if cc supports -fno-rtti -fno-exceptions
ltconfig:885: cc -c -g -fno-rtti -fno-exceptions -c conftest.c  conftest.c
1>&5
ltconfig:1867: checking if global_symbol_pipe works
ltconfig:1868: cc -c -g  conftest.c 1>&5
ltconfig:1871: eval "/usr/bin/nm -p conftest.o | sed -n -e 's/^.*[
]\([BCDEGRST]\)[        ][      ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3
\3/p' > conftest.nm"
cannot find nm_test_var in conftest.nm
ltconfig:1867: checking if global_symbol_pipe works
ltconfig:1868: cc -c -g  conftest.c 1>&5
ltconfig:1871: eval "/usr/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: cc -o conftest -g -fno-builtin -fno-rtti -fno-exceptions
conftest.c conftstm.o 1>&5
configure:3769: checking whether optarg is declared
configure:3788: cc -c -g  conftest.c 1>&5
configure: In function `main':
configure:3805: `optarg' undeclared (first use in this function)
configure:3805: (Each undeclared identifier is reported only once
configure:3805: for each function it appears in.)
configure: failed program was:
#line 3774 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#else
# if HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
int
main ()
{
#ifndef optarg
  char *p = (char *) optarg;
#endif

  ;
  return 0;
}
configure:3813: checking for ANSI C header files
configure:3828: cc -E -traditional-cpp  conftest.c >/dev/null
2>conftest.out
configure:3913: cc -o conftest -g   conftest.c  1>&5
configure:3940: checking for getopt.h
configure:3952: cc -E -traditional-cpp  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: cc -E -traditional-cpp  conftest.c >/dev/null
2>conftest.out
configure:3940: checking for sys/sysctl.h
configure:3952: cc -E -traditional-cpp  conftest.c >/dev/null
2>conftest.out
configure:3940: checking for sys/time.h
configure:3952: cc -E -traditional-cpp  conftest.c >/dev/null
2>conftest.out
configure:3976: checking for void
configure:3995: cc -c -g  conftest.c 1>&5
configure:4015: checking for preprocessor stringizing operator
configure:4053: checking for getopt_long
configure:4086: cc -o conftest -g   conftest.c  1>&5
/usr/bin/ld: Undefined symbols:
_getopt_long
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: cc -o conftest -g   conftest.c  1>&5
configure:4053: checking for popen
configure:4086: cc -o conftest -g   conftest.c  1>&5
configure:4053: checking for processor_info
configure:4086: cc -o conftest -g   conftest.c  1>&5
configure:4053: checking for strtoul
configure:4086: cc -o conftest -g   conftest.c  1>&5
configure:4053: checking for sysconf
configure:4086: cc -o conftest -g   conftest.c  1>&5
configure:4053: checking for sysctlbyname
configure:4086: cc -o conftest -g   conftest.c  1>&5
configure:4108: checking if ansi2knr should be used
configure:4115: cc -c -g  conftest.c 1>&5




config.m4:

dnl config.m4.  Generated automatically by configure.
changequote(<,>)dnl
ifdef(<__CONFIG_M4_INCLUDED__>,,<
define(<TEXT>, <.text>)
define(<DATA>, <.data>)
define(<GLOBL>, <.globl>)
define(<LABEL_SUFFIX>, <$1:>)
define(<TYPE>, <dnl>)
define(<SIZE>, <dnl>)
define(<LSYM_PREFIX>, <L>)
define(<W32>, <.long>)
define(<GSYM_PREFIX>, <_>)
define(<ALIGN_LOGARITHMIC>,<yes>)
dnl  CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir
define(<CONFIG_TOP_SRCDIR>,<`.../.'>)
define(<KARATSUBA_SQR_THRESHOLD>,<46>)
>)
changequote(`,')dnl
ifdef(`__CONFIG_M4_INCLUDED__',,`
include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
define_not_for_expansion(`HAVE_TARGET_CPU_powerpc')
')
define(`__CONFIG_M4_INCLUDED__')








reply via email to

[Prev in Thread] Current Thread [Next in Thread]