|
From: Thomas P. <pul...@ch...> - 2004-08-30 05:13:22
|
Hi.
I recently wrote in about a problem I was having trying to get fink
update-all to run and having it fail while trying to compile gmp-4.1.3-11.
The error was, and continues to be, that the C++ compiler was not available.
It was suggested that I try installing gcc 3.1, though it was already
present. I reinstalled in but met with the same problem again. It was then
suggested that I take a look at the config.log in the build directory to see
if I could find out where specifically it had failed. While I really don't
possess the know how to really make heads or tails of what was going on in
there, I gather from the logs reporting of undefined symbols while checking
the compiler the failure was due to the recent upgrade to Xcode 1.5, which I
had installed. I thought then that I might try downgrading the XCode
installation to 1.2 to see if that made any difference. I ran the
uninstall-devtools perl script from the Xcode 1.5 disk and then checked to
make sure it had in fact gotten everything, which it seemed to. I then
installed Xcode 1.2, which seemed to go successfully. The build number of
gcc was reported by gcc -v as 1640 as opposed to 1666 for the Xcode 1.5 gcc
3.3. Anyway, after restarting and repairing permissions, I tried fink
update-all again. But it failed once again at exactly the same point.
Comparing the config.log files from the effort to compile under both builds,
1640 and 1666, of gcc 3.3, I discovered that they were exactly the same,
which is to say that the same symbols came back undefined, etc. I've pasted
the config.log file from the attempt to compile gmp with build 1640 of gcc
3.3 below. I would appreciate any advice/help that is available with this.
Thanks.
Sincerely,
Tom Pulhamus
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.52. Invocation command line was
$ ./configure --prefix=/sw --infodir=${prefix}/share/info --enable-cxx
--enable-mpfr
## ---------- ##
## Platform. ##
## ---------- ##
hostname = cc3-24.217.192.153.charter-stl.com
uname -m = Power Macintosh
uname -r = 7.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004;
root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC
/usr/bin/uname -p = powerpc
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 7.5.0:
Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC
Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc7450 (PowerPC 7450)
Processor active: 0
Primary memory available: 1024.00 megabytes.
Default processor set: 56 tasks, 130 threads, 1 processors
Load average: 2.48, Mach factor: 0.19
unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH = /sw/bin:/sw/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin
## ------------ ##
## Core tests. ##
## ------------ ##
configure:1204: PATH=".;."; conftest.sh
./configure: line 1205: conftest.sh: command not found
configure:1207: $? = 127
configure:1282: checking build system type
configure:1300: result: powerpc7450-apple-darwin7.5.0
configure:1307: checking host system type
configure:1321: result: powerpc7450-apple-darwin7.5.0
configure:1347: checking for a BSD compatible install
configure:1396: result: /usr/bin/install -c
configure:1407: checking whether build environment is sane
configure:1450: result: yes
configure:1483: checking for mawk
configure:1509: result: no
configure:1483: checking for gawk
configure:1498: found /sw/bin/gawk
configure:1506: result: gawk
configure:1516: checking whether make sets ${MAKE}
configure:1536: result: yes
configure:1627: checking whether to enable maintainer-specific portions of
Makefiles
configure:1636: result: no
configure:1027: User:
ABI=
CC=
CFLAGS=(unset)
CPPFLAGS=-I/sw/include
MPN_PATH=
configure:1033: GMP:
abilist=standard
cclist=gcc cc
configure:2808: gcc 2>&1 | grep xlc >/dev/null
configure:2811: $? = 1
configure:2842: checking compiler gcc -g -O2 -mpowerpc -I/sw/include
configure:2870: gcc -g -O2 -mpowerpc -I/sw/include conftest.c >&5
ld: warning prebinding disabled because dependent library:
/usr/local/lib/libgcc.dylib is not prebound
configure:2873: $? = 0
configure:2877: ./a.out || ./a.exe || ./conftest
configure:2880: $? = 0
configure:2889: result: yes
configure:3129: checking compiler gcc -g -O2 -mpowerpc -I/sw/include
-Wa,-mppc
configure:3157: gcc -g -O2 -mpowerpc -I/sw/include -Wa,-mppc conftest.c >&5
/usr/libexec/gcc/darwin/ppc/as: I don't understand 'm' flag!
/usr/libexec/gcc/darwin/ppc/as: I don't understand 'p' flag!
/usr/libexec/gcc/darwin/ppc/as: Flag option -p has already been seen!
/usr/libexec/gcc/darwin/ppc/as: I don't understand 'p' flag!
/usr/libexec/gcc/darwin/ppc/as: I don't understand 'c' flag!
/var/tmp//cc29yXan.s:1:Invalid mnemonic '.section'
/var/tmp//cc29yXan.s:2:Invalid mnemonic '.section'
/var/tmp//cc29yXan.s:3:Invalid mnemonic '.stabs'
/var/tmp//cc29yXan.s:4:Invalid mnemonic '.stabs'
/var/tmp//cc29yXan.s:5:Invalid mnemonic
'__TEXT,__text,regular,pure_instructions'
/var/tmp//cc29yXan.s:6:Invalid mnemonic '.align'
/var/tmp//cc29yXan.s:8:Invalid mnemonic '.stabs'
/var/tmp//cc29yXan.s:9:Invalid mnemonic '.align'
/var/tmp//cc29yXan.s:10:Invalid mnemonic '.globl'
/var/tmp//cc29yXan.s:11:FATAL:Symbol .section already defined.
configure:3160: $? = 1
configure:3176: result: no
configure:3064: checking compiler gcc -g -O2 -mpowerpc -no-cpp-precomp
configure:3071: gcc -g -O2 -mpowerpc -no-cpp-precomp conftest.c
>conftest.out 2>&1
configure:3074: $? = 0
ld: warning prebinding disabled because dependent library:
/usr/local/lib/libgcc.dylib is not prebound
configure:3083: result: yes
configure:3129: checking compiler gcc -g -O2 -mpowerpc -no-cpp-precomp
-I/sw/include -mcpu=7450
configure:3157: gcc -g -O2 -mpowerpc -no-cpp-precomp -I/sw/include
-mcpu=7450 conftest.c >&5
ld: warning prebinding disabled because dependent library:
/usr/local/lib/libgcc.dylib is not prebound
configure:3160: $? = 0
configure:3164: ./a.out || ./a.exe || ./conftest
configure:3167: $? = 0
configure:3176: result: yes
configure:3307: checking for gcc
configure:3330: result: gcc
configure:3558: checking for C compiler version
configure:3561: gcc --version </dev/null >&5
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1640)
Copyright (C) 2002 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.
configure:3564: $? = 0
configure:3566: gcc -v </dev/null >&5
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1640)
configure:3569: $? = 0
configure:3571: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:3574: $? = 1
configure:3594: checking for C compiler default output
configure:3597: gcc -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450
-I/sw/include -L/sw/lib conftest.c >&5
ld: warning prebinding disabled because dependent library:
/usr/local/lib/libgcc.dylib is not prebound
configure:3600: $? = 0
configure:3629: result: a.out
configure:3634: checking whether the C compiler works
configure:3640: ./a.out
configure:3643: $? = 0
configure:3658: result: yes
configure:3665: checking whether we are cross compiling
configure:3667: result: no
configure:3670: checking for executable suffix
configure:3672: gcc -o conftest -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450
-I/sw/include -L/sw/lib conftest.c >&5
ld: warning prebinding disabled because dependent library:
/usr/local/lib/libgcc.dylib is not prebound
configure:3675: $? = 0
configure:3697: result:
configure:3703: checking for object suffix
configure:3721: gcc -c -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450
-I/sw/include conftest.c >&5
configure:3724: $? = 0
configure:3743: result: o
configure:3747: checking whether we are using the GNU C compiler
configure:3768: gcc -c -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450
-I/sw/include conftest.c >&5
configure:3771: $? = 0
configure:3774: test -s conftest.o
configure:3777: $? = 0
configure:3789: result: yes
configure:3795: checking whether gcc accepts -g
configure:3813: gcc -c -g -I/sw/include conftest.c >&5
configure:3816: $? = 0
configure:3819: test -s conftest.o
configure:3822: $? = 0
configure:3832: result: yes
configure:3859: gcc -c -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450
-I/sw/include conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:3862: $? = 1
configure: failed program was:
#ifndef __cplusplus
choke me
#endif
configure:3968: checking for style of include used by make
configure:3995: result: GNU
configure:4001: checking dependency style of gcc
configure:4063: result: none
configure:4067: checking for gcc option to accept ANSI C
configure:4124: gcc -c -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450
-I/sw/include conftest.c >&5
configure:4127: $? = 0
configure:4130: test -s conftest.o
configure:4133: $? = 0
configure:4150: result: none needed
configure:4163: checking how to run the C preprocessor
configure:4189: gcc -E -I/sw/include conftest.c
configure:4195: $? = 0
configure:4222: gcc -E -I/sw/include conftest.c
configure:4219:28: ac_nonexistent.h: No such file or directory
configure:4228: $? = 1
configure: failed program was:
#line 4218 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:4265: result: gcc -E
configure:4280: gcc -E -I/sw/include conftest.c
configure:4286: $? = 0
configure:4313: gcc -E -I/sw/include conftest.c
configure:4310:28: ac_nonexistent.h: No such file or directory
configure:4319: $? = 1
configure: failed program was:
#line 4309 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:4385: gcc -c -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450
-I/sw/include conftest.c >&5
configure:4388: $? = 0
configure:4391: test -s conftest.o
configure:4394: $? = 0
configure:4460: checking for g++
configure:4475: found /usr/bin/g++
configure:4483: result: g++
configure:4498: checking for C++ compiler version
configure:4501: g++ --version </dev/null >&5
g++ (GCC) 3.3 20030304 (Apple Computer, Inc. build 1640)
Copyright (C) 2002 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.
configure:4504: $? = 0
configure:4506: g++ -v </dev/null >&5
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1640)
configure:4509: $? = 0
configure:4511: g++ -V </dev/null >&5
g++: `-V' option must have argument
configure:4514: $? = 1
configure:4517: checking whether we are using the GNU C++ compiler
configure:4538: g++ -c -I/sw/include conftest.cc >&5
configure:4541: $? = 0
configure:4544: test -s conftest.o
configure:4547: $? = 0
configure:4559: result: yes
configure:4565: checking whether g++ accepts -g
configure:4583: g++ -c -g -I/sw/include conftest.cc >&5
configure:4586: $? = 0
configure:4589: test -s conftest.o
configure:4592: $? = 0
configure:4602: result: yes
configure:4642: g++ -c -g -O2 -I/sw/include conftest.cc >&5
configure:4645: $? = 0
configure:4648: test -s conftest.o
configure:4651: $? = 0
configure:4673: g++ -c -g -O2 -I/sw/include conftest.cc >&5
configure: In function `int main()':
configure:4666: error: `exit' undeclared (first use this function)
configure:4666: error: (Each undeclared identifier is reported only once for
each function it appears in.)
configure:4676: $? = 1
configure: failed program was:
#line 4661 "configure"
#include "confdefs.h"
int
main ()
{
exit (42);
;
return 0;
}
configure:4642: g++ -c -g -O2 -I/sw/include conftest.cc >&5
configure:4645: $? = 0
configure:4648: test -s conftest.o
configure:4651: $? = 0
configure:4673: g++ -c -g -O2 -I/sw/include conftest.cc >&5
configure:4676: $? = 0
configure:4679: test -s conftest.o
configure:4682: $? = 0
configure:4706: checking dependency style of g++
configure:4768: result: none
CXXFLAGS chosen by autoconf: -g -O2
configure:4796: checking C++ compiler g++ -g -O2 -mpowerpc -no-cpp-precomp
-mcpu=7450
configure:4811: g++ -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450 conftest.cc
-o conftest >&5
ld: warning prebinding disabled because dependent library:
/usr/local/lib/libgcc.dylib is not prebound
ld: Undefined symbols:
__Unwind_Resume
__Unwind_GetDataRelBase
__Unwind_GetIP
__Unwind_GetLanguageSpecificData
__Unwind_GetRegionStart
__Unwind_GetTextRelBase
__Unwind_SetGR
__Unwind_SetIP
___udivdi3
___umoddi3
__Unwind_DeleteException
__Unwind_RaiseException
configure:4814: $? = 1
configure:4823: result: no
configure:4796: checking C++ compiler g++ -g -O2
configure:4811: g++ -g -O2 conftest.cc -o conftest >&5
ld: warning prebinding disabled because dependent library:
/usr/local/lib/libgcc.dylib is not prebound
ld: Undefined symbols:
__Unwind_Resume
__Unwind_GetDataRelBase
__Unwind_GetIP
__Unwind_GetLanguageSpecificData
__Unwind_GetRegionStart
__Unwind_GetTextRelBase
__Unwind_SetGR
__Unwind_SetIP
___udivdi3
___umoddi3
__Unwind_DeleteException
__Unwind_RaiseException
configure:4814: $? = 1
configure:4823: result: no
configure:4832: error: C++ compiler not available
## ----------------- ##
## Cache variables. ##
## ----------------- ##
ac_cv_build=powerpc7450-apple-darwin7.5.0
ac_cv_build_alias=powerpc7450-apple-darwin7.5.0
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-I/sw/include
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L/sw/lib
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=powerpc7450-apple-darwin7.5.0
ac_cv_host_alias=powerpc7450-apple-darwin7.5.0
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=none
am_cv_CXX_dependencies_compiler_type=none
## ------------ ##
## confdefs.h. ##
## ------------ ##
#define HAVE_HOST_CPU_powerpc7450 1
#define PACKAGE "gmp"
#define VERSION "4.1.3"
#define WANT_FFT 1
#define HAVE_HOST_CPU_FAMILY_powerpc 1
#ifdef __cplusplus
#include <stdlib.h>
#endif
configure: exit 1
|