[Python-bugs-list] [ python-Bugs-454383 ] make test failed in solaris_2.7 with gcc
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 05 Sep 2001 21:24:41 -0700
Bugs item #454383, was opened at 2001-08-22 16:10
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=454383&group_id=5470
Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Thiep Duong (duongusa)
Assigned to: A.M. Kuchling (akuchling)
Summary: make test failed in solaris_2.7 with gcc
Initial Comment:
I tried to compile/build configure with no option, make
gave no apparent error, but make test failed at the
below messages.
Any clue what to do next? I am new with Python ....
Please help.
skipping 'sunaudiodev' extension (up-to-date)
running build_scripts
not copying
/fas2/eda2/duong/dev/source/UNIX/Python-2.1.1/Tools/scripts/pydoc
(up-to-date)
find ./Lib -name '*.py[co]' -print | xargs rm -f
PYTHONPATH= ./python -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 39, in ?
import random
File
"/fas2/eda2/duong/dev/source/UNIX/Python-2.1.1/Lib/random.py",
line 76, in ?
from math import log as _log, exp as _exp, pi as
_pi, e as _e
ImportError: cannot import name log
make: [test] Error 1 (ignored)
PYTHONPATH= ./python -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 39, in ?
import random
File
"/fas2/eda2/duong/dev/source/UNIX/Python-2.1.1/Lib/random.py",
line 76, in ?
from math import log as _log, exp as _exp, pi as
_pi, e as _e
ImportError: cannot import name log
Bus Error - core dumped
make: *** [test] Error 138
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-09-05 21:24
Message:
Logged In: NO
> Thanks for helping out. I got it fixed now, here what I did I updated
> the readline-4.2 library and the coredump went away, but I got ton of
> messages like:
>
> gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I.
-I/fas2/eda2/duong/dev/source/UNIX/Python-2.1.1/./Include -
> I/usr/local/include -IInclude/ -c
/fas2/eda2/duong/dev/source/UNIX/Python-2.1.1/Modules/readline.c -o buil
> d/temp.solaris-2.7-sun4u-2.1/readline.o
> /fas2/eda2/duong/dev/source/UNIX/Python-2.1.1/Modules/readline.c: In
function `set_completer_delims':
> /fas2/eda2/duong/dev/source/UNIX/Python-2.1.1/Modules/readline.c:212:
warning: passing arg 1 of `free' dis
> cards qualifiers from pointer target type
> gcc -shared build/temp.solaris-2.7-sun4u-2.1/readline.o
-L/usr/lib/termcap -L/usr/local/lib -lreadline -lt
> ermcap -o build/lib.solaris-2.7-sun4u-2.1/readline.so
> Text relocation remains referenced
> against symbol offset in file
> sigdelset 0x64
/usr/local/lib/libreadline.a(signals.o)
> rl_on_new_line_with_prompt 0x1e0
/usr/local/lib/libreadline.a(readline.o)
> kill 0x74
/usr/local/lib/libreadline.a(signals.o)
> rl_beginning_of_history 0x238
/usr/local/lib/libreadline.a(vi_mode.o)
> rl_beginning_of_history 0x250
/usr/local/lib/libreadline.a(vi_mode.o)
>
> ...... many other modules too.
> I also have a SUN C/C++ compiler (V5.0),and use this instead of
> gcc, and the python seems to be much happier.
>
> Thanks for looking into this.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-05 11:31
Message:
Logged In: YES
user_id=6380
It looks like the math module didn't get compiled
completely.
Possibly the compiler invocation used by setup.py to build
shared libraries doesn't work for your platform.
Assigning this to Andrew, who knows about such things.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=454383&group_id=5470