(09-26-2018, 02:17 AM)Raion Wrote: Python's tests: https://devguide.python.org/runtests/
Yes. GCC mangles pthreads in the 4.7 branch with certain libs. It sucks.
Regarding the error, looks related to your array: https://stackoverflow.com/questions/2662...rray-error
Have you tried another GCC version in obsolete?
awesome! Thanks for the runtests link.
I'll keep playing with trying to get MIPSpro to compile.
I get a (partially) successful compile done with gcc 3.4.6, but still can't seem to figure out the unresolved symbols/lib issue with the extensions/modules. Basically this is what I mean (I'm not sure if I'm using proper python lingo, I've only spent the last few days learning it)
Code:
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_uuid ossaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc atexit pwd
time
Failed to build these modules:
_asyncio _bisect _blake2
_bz2 _codecs_cn _codecs_hk
_codecs_iso2022 _codecs_jp _codecs_kr
_codecs_tw _contextvars _crypt
_csv _ctypes _ctypes_test
_curses _curses_panel _datetime
_dbm _decimal _elementtree
_gdbm _hashlib _heapq
_json _lsprof _lzma
_md5 _multibytecodec _multiprocessing
_opcode _pickle _posixsubprocess
_queue _random _sha1
_sha256 _sha3 _sha512
_socket _sqlite3 _ssl
_struct _testbuffer _testcapi
_testimportmultiple _testmultiphase _tkinter
_xxtestfuzz array audioop
binascii cmath fcntl
grp math mmap
nis parser pyexpat
readline resource select
spwd syslog termios
unicodedata xxlimited zlib
Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381
edit: ok, seems running a test should be easy enough, seems the full test suite needs the extenstions tho.
Code:
-bash-4.2$ ./python -m test
Traceback (most recent call last):
File "/usr/people/develop/dev/python/Python-3.7.0/Lib/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/people/develop/dev/python/Python-3.7.0/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/people/develop/dev/python/Python-3.7.0/Lib/test/__main__.py", line 1, in <module>
from test.libregrtest import main
File "/usr/people/develop/dev/python/Python-3.7.0/Lib/test/libregrtest/__init__.py", line 4, in <module>
from test.libregrtest.cmdline import _parse_args, RESOURCE_NAMES, ALL_RESOURCES
File "/usr/people/develop/dev/python/Python-3.7.0/Lib/test/libregrtest/cmdline.py", line 4, in <module>
from test import support
File "/usr/people/develop/dev/python/Python-3.7.0/Lib/test/support/__init__.py", line 15, in <module>
import logging.handlers
File "/usr/people/develop/dev/python/Python-3.7.0/Lib/logging/handlers.py", line 26, in <module>
import logging, socket, os, pickle, struct, time, re
File "/usr/people/develop/dev/python/Python-3.7.0/Lib/socket.py", line 49, in <module>
import _socket
ModuleNotFoundError: No module named '_socket'
-bash-4.2$
edit2: seems its not quite so simple even with what I believe to be a complete build, such as python-2.7.15.
Code:
Python build finished, but the necessary bits to build these modules were not found:
bsddb185 linuxaudiodev ossaudiodev
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
running build_scripts
copying and adjusting /usr/people/develop/dev/python/Python-2.7.15/Tools/scripts/pydoc -> build/scripts-2.7
copying and adjusting /usr/people/develop/dev/python/Python-2.7.15/Tools/scripts/idle -> build/scripts-2.7
copying and adjusting /usr/people/develop/dev/python/Python-2.7.15/Tools/scripts/2to3 -> build/scripts-2.7
copying and adjusting /usr/people/develop/dev/python/Python-2.7.15/Lib/smtpd.py -> build/scripts-2.7
changing mode of build/scripts-2.7/pydoc from 644 to 755
changing mode of build/scripts-2.7/idle from 644 to 755
changing mode of build/scripts-2.7/2to3 from 644 to 755
changing mode of build/scripts-2.7/smtpd.py from 644 to 755
-bash-4.2$ ./python -m test
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
== CPython 2.7.15 (default, Sep 23 2018, 10:06:11) [C]
== IRIX-6.5-IP32-mips-n32bit-ELF big-endian
== /usr/people/develop/dev/python/Python-2.7.15/build/test_python_548826
Traceback (most recent call last):
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/test/__main__.py", line 3, in <module>
regrtest.main_in_temp_cwd()
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/test/regrtest.py", line 2024, in main_in_temp_cwd
main()
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/test/regrtest.py", line 668, in main
ncpu = cpu_count()
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/test/regrtest.py", line 311, in cpu_count
return multiprocessing.cpu_count()
File "/usr/people/develop/dev/python/Python-2.7.15/Lib/multiprocessing/__init__.py", line 136, in cpu_count
raise NotImplementedError('cannot determine number of cpus')
NotImplementedError: cannot determine number of cpus
-bash-4.2$