Homebrew for mac os x 10.7.56/25/2023 ![]() ![]() ![]() I encased r = os.waitpid(j.pid, os.WNOHANG) in a try/except block and the build seemed to go fine. Where the offending PID was the original call to BuildPyRosetta.sh (I think). MWait(tag=path) # wait for all compilation jobs to finish.įile "./BuildBindings.py", line 484, in mWait Return buildModule_UsingCppParser(path, dest, include_paths, libpaths, runtime_libpaths, gccxml_path)įile "./BuildBindings.py", line 1632, in buildModule_UsingCppParser If _name_ = "_main_": main(sys.argv)įile "./BuildBindings.py", line 290, in mainīuildModule(n, bindings_path, include_paths=options.I, libpaths=options.L, runtime_libpaths=options.L, gccxml_path=options.gccxml)įile "./BuildBindings.py", line 1009, in buildModule Inconvenience issues I encountered along the wayġ) Running BuildPyRosetta.sh with -jX, where X>1 caused this error: I've compiled with the native MacOS gcc (LLVM-gcc), CLang, and gcc-4.7 installed with homebrew. I think this is related to the 'PyArg_ParseTuple' warnings during compilation, but I can't figure out how to fix it. Example from basic/gpu/_gpu_all_at_once_.0.cpp: By strategically commenting out lines in _init_.py files and in _all_at_once.?.cpp files, then recompiling and re-linking (by hand, copying the relevant commands from output of BuildBindings.py) just those all_at_once files, I've convinced myself that segfaults are caused by attempting to import function definitions with default values assigned to any arguments. usr/local/Cellar/python/2.7.3/Frameworks/amework/Versions/2.7/include/python2.7/modsupport.h:27: warning: 'PyArg_ParseTuple' is an unrecognized format function typeīut importing anything from rosetta causes immediate segfault. boost/python/docstring_options.hpp:8,įrom libs/python/src/object/function.cpp:6: boost/python/object/function.hpp:8,įrom. boost/python/detail/wrap_python.hpp:142,įrom. In file included from /usr/local/Cellar/python/2.7.3/Frameworks/amework/Versions/2.7/include/python2.7/Python.h:126,įrom. The build itself completes (with a couple of exceptions - see end of this post) with errors like this:ĭ++ bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/function.o Trying to build from on Mac OS X Lion 10.7.5 with (and linking against) python 2.7.3 installed with homebrew. I'll do two posts about two different problems I'm having under MacOS and Ubuntu.
0 Comments
Leave a Reply. |