Python-2.2.1, Solaris7, make test fails...
Martin v. Löwis
loewis at informatik.hu-berlin.de
Thu Apr 18 10:50:42 EDT 2002
Hugh Sasse Staff Elec Eng <hgs at dmu.ac.uk> writes:
> I can't yet: I don't know which properties are reversed:
> * Modules included in the config.c file
> * List of objects to be added to library archive
> * linker options added to linker options
> * Rules added to Makefile
> * Names collected in SHAREDMODS variable.
The state of 'will the following modules be static or dynamic'. In a
Setup file, you can have
list static modules here
*shared*
list shared modules here
*static*
list static modules here
*shared*
list shared modules here
*static*
list static modules here
...
> > Use 'gcc --print-prog-name=ld' to find out which ld binary gcc uses.
> /usr/local/sparc-sun-solaris2.7/bin/ld
> /usr/local/sparc-sun-solaris2.7/bin/ld --version gives
>
> GNU ld version 2.12
> Copyright 2002 Free Software Foundation, Inc.
Ok; that explains it: configure does
$CC -Xlinker -V 2>&1 | grep BFD
expecting that the linker output reads like
GNU ld version 2.11.2 (with BFD 2.11.2)
Supported emulations:
elf32_sparc
elf64_sparc
Apparently, in binutils 2.12, GNU ld stops printing BFD in its
output. The proper fix is to invoke --help instead, and to see whether
export-dynamic appears in the output.
> I think I will delay doing that for now, because most of the tests
> worked without using GCC. Another post suggests that this is not common
> to Solaris7, (referring to pre-releases of Python-2.2.1). Therefore I
> may not really be helping anyone else by exploring that.
It turns out that you are the first one to use binutils 2.12 on
Solaris, trying to build Python with that. So you are likely helping
others; Python 2.2.2 (and perhaps 2.1.4) will have this problem
corrected.
Regards,
Martin
More information about the Python-list
mailing list