Compiling python error

James j.c.mcnulty at open.ac.uk
Thu Nov 1 04:27:37 EST 2001


"Fredrik Lundh" <fredrik at pythonware.com> wrote in message news:<QoRD7.3556$Z_1.623608 at newsc.telia.net>...
> James" <j.c.mcnulty at open.ac.uk> wrote:
> > When I try to configure python i get the following errors.
> 
> what platform?  what Python version?  what compiler version?
> (etc)
> 
> > checking whether the C++ compiler (c++  ) is a cross-compiler... yes
> 
> this usually means that your compiler failed to compile a trivial C
> program into something that could be executed on your machine.
> usual causes are bad licenses or botched compiler installations.
> 
> check the config.log file for more clues.
> 
> </F>

Hi,

I am trying to compile python 2.1.1 on Solaris 8 Sparc with the latest gcc.

Here is a copy of config.log.

bash-2.03# more config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:631: checking MACHDEP
configure:673: checking for --without-gcc
configure:734: checking for --with-cxx=<compiler>
configure:764: checking for c++
configure:799: checking whether the C++ compiler (c++  ) works
configure:815: c++ -o conftest    conftest.C  1>&5
configure:841: checking whether the C++ compiler (c++  ) is a cross-compiler
configure:858: checking for gcc
configure:971: checking whether the C compiler (gcc  ) works
configure:987: gcc -o conftest    conftest.c  1>&5
configure:1013: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1018: checking whether we are using GNU C
configure:1027: gcc -E conftest.c
configure:1046: checking whether gcc accepts -g
configure:1078: checking for Cygwin environment
configure:1094: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1090: `__CYGWIN32__' undeclared (first use in this function)
configure:1090: (Each undeclared identifier is reported only once
configure:1090: for each function it appears in.)
configure: failed program was:
#line 1083 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1111: checking for mingw32 environment
configure:1123: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1119: `__MINGW32__' undeclared (first use in this function)
configure:1119: (Each undeclared identifier is reported only once
configure:1119: for each function it appears in.)
configure: failed program was:
#line 1116 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:1142: checking for executable suffix
configure:1152: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1173: checking for --with-suffix
configure:1215: checking LIBRARY
configure:1237: checking LINKCC
configure:1253: checking LDLIBRARY
configure:1284: checking for ranlib
configure:1317: checking for ar
configure:1387: checking for a BSD compatible install
configure:1484: checking how to run the C preprocessor
configure:1505: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1564: checking for AIX
configure:1589: checking for minix/config.h
configure:1599: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1595: minix/config.h: No such file or directory
configure: failed program was:
#line 1594 "configure"
#include "confdefs.h"
#include <minix/config.h>
configure:1638: checking whether gcc accepts -OPT:Olimit=0

Any ideas would be greatly appreciated.

James



More information about the Python-list mailing list