You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output #66353
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2014-08-17.08:17:19.597>created_at=<Date2014-08-06.12:37:48.673>labels= ['tests']
title='_ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output'updated_at=<Date2014-08-17.08:17:19.596>user='https://bugs.python.org/snehal'
Traceback (most recent call last):
File "/home/ubuntu/python/Python-3.4.1/Lib/test/test_venv.py", line 352, in test_with_pip
with_pip=True)
subprocess.CalledProcessError: Command '['/tmp/tmpge5lfrua/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/python/Python-3.4.1/Lib/test/test_venv.py", line 358, in test_with_pipself.fail(msg.format(exc, details))
AssertionError: Command '['/tmp/tmpge5lfrua/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
**Subprocess Output**
Traceback (most recent call last):
File "/home/ubuntu/python/Python-3.4.1/Lib/runpy.py", line 170, in _run_module_as_main"__main__", mod_spec)
File "/home/ubuntu/python/Python-3.4.1/Lib/runpy.py", line 85, in _run_codeexec(code, run_globals)
File "/home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__main__.py", line 4, in <module>
ensurepip._main()
File "/home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py", line 209, in _main
default_pip=args.default_pip,
File "/home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py", line 116, in bootstrap
_run_pip(args + [p[0] for p in_PROJECTS], additional_paths)
File "/home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py", line 40, in _run_pipimport pip
File "/tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/__init__.py", line 9, in <module>
File "/tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/log.py", line 9, in <module>
File "/tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/__init__.py", line 2, in <module>
File "/tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/initialise.py", line 5, in <module>
File "/tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/ansitowin32.py", line 6, in <module>
File "/tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/winterm.py", line 2, in <module>
File "/tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/win32.py", line 7, in <module>
File "/home/ubuntu/python/Python-3.4.1/Lib/ctypes/__init__.py", line 7, in <module>from _ctypes import Union, Structure, Array
ImportError: No module named '_ctypes'
Ran 13 tests in 0.561s
FAILED (failures=1)
test test_venv failed
make: *** [test] Error
Traceback (most recent call last):
File "/home/ubuntu/python/Python-3.4.1/Lib/test/test_venv.py", line 352, in test_with_pip
with_pip=True)
subprocess.CalledProcessError: Command '['/tmp/tmp1_atkzms/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/python/Python-3.4.1/Lib/test/test_venv.py", line 358, in test_with_pipself.fail(msg.format(exc, details))
AssertionError: Command '['/tmp/tmp1_atkzms/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
**Subprocess Output**
Traceback (most recent call last):
File "/home/ubuntu/python/Python-3.4.1/Lib/runpy.py", line 170, in _run_module_as_main"__main__", mod_spec)
File "/home/ubuntu/python/Python-3.4.1/Lib/runpy.py", line 85, in _run_codeexec(code, run_globals)
File "/home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__main__.py", line 4, in <module>
ensurepip._main()
File "/home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py", line 209, in _main
default_pip=args.default_pip,
File "/home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py", line 116, in bootstrap
_run_pip(args + [p[0] for p in_PROJECTS], additional_paths)
File "/home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py", line 40, in _run_pipimport pip
File "/tmp/tmplglzwy2e/pip-1.5.6-py2.py3-none-any.whl/pip/__init__.py", line 9, in <module>
File "/tmp/tmplglzwy2e/pip-1.5.6-py2.py3-none-any.whl/pip/log.py", line 9, in <module>
File "/tmp/tmplglzwy2e/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/__init__.py", line 2, in <module>
File "/tmp/tmplglzwy2e/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/initialise.py", line 5, in <module>
File "/tmp/tmplglzwy2e/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/ansitowin32.py", line 6, in <module>
File "/tmp/tmplglzwy2e/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/winterm.py", line 2, in <module>
File "/tmp/tmplglzwy2e/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/win32.py", line 7, in <module>
File "/home/ubuntu/python/Python-3.4.1/Lib/ctypes/__init__.py", line 7, in <module>from _ctypes import Union, Structure, Array
ImportError: No module named '_ctypes'
Ran 13 tests in 0.574s
FAILED (failures=1)
test test_venv failed
1 test failed:
test_venv
Thanks. So apparently the _ctypes module failed to build. You should rerun "make" in your build directory and find out why _ctypes.so fails to build. If necessary, show the results here.
snehal commented on Aug 13, 2014
snehalmannequin
MannequinAuthor
More actions
/home/python/Python-3.4.1/Modules/_ctypes/libffi/config.guess: unable to guess system type
This script, last modified 2012-12-29, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
If the version you run (/home/python/Python-3.4.1/Modules/_ctypes/libffi/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
I tried modifying config.guess for ppc65le , and did run configure and make again... after which I got following
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
/usr/bin/ld: build/temp.linux-ppc64le-3.4/home/python/Python-3.4.1/Modules/_ctypes/libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output
/usr/bin/ld: failed to merge target specific data of file build/temp.linux-ppc64le-3.4/home/python/Python-3.4.1/Modules/_ctypes/libffi/src/powerpc/linux64.o
/usr/bin/ld: build/temp.linux-ppc64le-3.4/home/python/Python-3.4.1/Modules/_ctypes/libffi/src/powerpc/linux64_closure.o: ABI version 1 is not compatible with ABI version 2 output
/usr/bin/ld: failed to merge target specific data of file build/temp.linux-ppc64le-3.4/home/python/Python-3.4.1/Modules/_ctypes/libffi/src/powerpc/linux64_closure.o
changed the title [-]FAIL: test_with_pip (test.test_venv.EnsurePipTest)[/-][+]_ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output[/+]on Aug 16, 2014
this is fixed in the 3.4 branch (post 3.4.1) and on all active branches. you should be able to use --with-system-libffi in your current environment (maybe after running: apt-get build-dep python3.4.
Activity
snehal commentedon Aug 6, 2014
On ppc64le architecture I see following error with
TAR : https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz
======================================================================
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
----------------------------------------------------------------------
Ran 13 tests in 0.561s
FAILED (failures=1)
test test_venv failed
make: *** [test] Error
snehal commentedon Aug 6, 2014
I have libffi installed on system
root@beta1:/home/ubuntu/python/Python-3.4.1# dpkg -l | grep libffi
ii libffi-dev:ppc64el 3.1~rc1+r3.0.13-12 ppc64el Foreign Function Interface library (development files)
ii libffi6:ppc64el 3.1~rc1+r3.0.13-12 ppc64el Foreign Function Interface library runtime
ii libffi6-dbg:ppc64el 3.1~rc1+r3.0.13-12 ppc64el Foreign Function Interface library runtime (debug symbols)
ned-deily commentedon Aug 6, 2014
When you built 3.4.1, did the _ctypes module build correctly? What happens when you try to import ctypes?
snehal commentedon Aug 7, 2014
When I gave following command, I see no error
root@beta1:/home/ubuntu/python/Python-3.4.1# python3.4 -c 'import ctypes'
root@beta1:/home/ubuntu/python/Python-3.4.1#
I do see ctypes in root@beta1:/home/ubuntu/python/Python-3.4.1/Lib# folder
snehal commentedon Aug 7, 2014
Also ctypes contains following
root@beta1:/home/ubuntu/python/Python-3.4.1/Lib/ctypes# ls
_endian.py __init__.py macholib __pycache__ test util.py wintypes.py
ned-deily commentedon Aug 7, 2014
OK. Does test_ctypes run successfully?
cd /home/ubuntu/python/Python-3.4.1
./python -E -S -m test -v test_ctypes
and then does test_venv run successfully in isolation?
cd /home/ubuntu/python/Python-3.4.1
./python -E -S -m test -v test_venv
Also, what ./configure command arguments did you use to build it?
It's hard to tell what might be failing otherwise other than the _ctypes extension build failing.
snehal commentedon Aug 8, 2014
1oot@beta1:/home/ubuntu/python/Python-3.4.1# cd /home/ubuntu/python/Python-3.4.
esot@beta1:/home/ubuntu/python/Python-3.4.1# ./python -E -S -m test -v test_ctyp
== CPython 3.4.1 (default, Aug 7 2014, 02:08:49) [GCC 4.8.2]
== Linux-3.13.0-32-generic-ppc64le-with-debian-jessie-sid little-endian
== hash algorithm: siphash24 64bit
== /home/ubuntu/python/Python-3.4.1/build/test_python_1245
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=1, ignore_environment=1, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_ctypes
test_ctypes skipped -- No module named '_ctypes'
1 test skipped:
test_ctypes
-----------------------------
== CPython 3.4.1 (default, Aug 7 2014, 02:08:49) [GCC 4.8.2]-m test -v test_venv
== Linux-3.13.0-32-generic-ppc64le-with-debian-jessie-sid little-endian
== hash algorithm: siphash24 64bit
== /home/ubuntu/python/Python-3.4.1/build/test_python_1248
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=1, ignore_environment=1, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_venv
test_defaults (test.test_venv.BasicTest) ... ok
test_executable (test.test_venv.BasicTest) ... ok
test_executable_symlinks (test.test_venv.BasicTest) ... ok
test_isolation (test.test_venv.BasicTest) ... ok
test_overwrite_existing (test.test_venv.BasicTest) ... ok
test_prefixes (test.test_venv.BasicTest) ... ok
test_symlinking (test.test_venv.BasicTest) ... ok
test_unoverwritable_fails (test.test_venv.BasicTest) ... ok
test_upgrade (test.test_venv.BasicTest) ... ok
test_devnull_exists_and_is_empty (test.test_venv.EnsurePipTest) ... ok
test_explicit_no_pip (test.test_venv.EnsurePipTest) ... ok
test_no_pip_by_default (test.test_venv.EnsurePipTest) ...
ok
test_with_pip (test.test_venv.EnsurePipTest) ... FAIL
======================================================================
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
----------------------------------------------------------------------
Ran 13 tests in 0.574s
FAILED (failures=1)
test test_venv failed
1 test failed:
test_venv
ned-deily commentedon Aug 8, 2014
Thanks. So apparently the _ctypes module failed to build. You should rerun "make" in your build directory and find out why _ctypes.so fails to build. If necessary, show the results here.
snehal commentedon Aug 13, 2014
/home/python/Python-3.4.1/Modules/_ctypes/libffi/config.guess: unable to guess system type
This script, last modified 2012-12-29, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
If the version you run (/home/python/Python-3.4.1/Modules/_ctypes/libffi/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = 2012-12-29
uname -m = ppc64le
uname -r = 3.13-1-powerpc64le
uname -s = Linux
uname -v = #1 SMP Debian 3.13.4-1 (2014-02-22)
/usr/bin/uname -p =
/bin/uname -X =
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =
I tried modifying config.guess for ppc65le , and did run configure and make again... after which I got following
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
/usr/bin/ld: build/temp.linux-ppc64le-3.4/home/python/Python-3.4.1/Modules/_ctypes/libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output
/usr/bin/ld: failed to merge target specific data of file build/temp.linux-ppc64le-3.4/home/python/Python-3.4.1/Modules/_ctypes/libffi/src/powerpc/linux64.o
/usr/bin/ld: build/temp.linux-ppc64le-3.4/home/python/Python-3.4.1/Modules/_ctypes/libffi/src/powerpc/linux64_closure.o: ABI version 1 is not compatible with ABI version 2 output
/usr/bin/ld: failed to merge target specific data of file build/temp.linux-ppc64le-3.4/home/python/Python-3.4.1/Modules/_ctypes/libffi/src/powerpc/linux64_closure.o
[-]FAIL: test_with_pip (test.test_venv.EnsurePipTest)[/-][+]_ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output[/+]vstinner commentedon Aug 16, 2014
This issue is unrelated to venv, it's an issue between libffi and ctypes.
vstinner commentedon Aug 16, 2014
This issue may be related to the issue bpo-22176.
doko42 commentedon Aug 17, 2014
this is fixed in the 3.4 branch (post 3.4.1) and on all active branches. you should be able to use --with-system-libffi in your current environment (maybe after running: apt-get build-dep python3.4.