<div dir="ltr">Hi,
<div><br></div><div>I&#39;m still working on getting a clean compile on Scientific Linux 7.1. So for I&#39;ve gotten a compile (after applying <span style="color:rgb(0,0,0);white-space:pre-wrap">Pull Request #282) when for the basic build script with no additional flags (./swift/utils/build-script).</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">I&#39;m now trying to also compile with lldb (./swift/utils/build-script --lldb). When I do so I get the following error:</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">-- Build files have been written to: /home/lanes/swift/build/Ninja-DebugAssert/lldb-linux-x86_64<br></span><span class="">++ cmake_config_opt lldb<br></span><span class="">++ product=lldb<br></span><span class="">++ [[ Ninja == \X\c\o\d\e ]]<br></span><span class="">+ /home/lanes/cmake-3.4.1-Linux-x86_64.binary_distribution/bin/cmake --build /home/lanes/swift/build/Ninja-DebugAssert/lldb-linux-x86_64 -- all<br></span><span class="">[10/845] Building CXX object scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o<br></span><span class="">FAILED: /usr/bin/clang++   -DHAVE_PROCESS_VM_READV -DHAVE_ROUND -DLIBXML2_DEFINED -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dreadline_EXPORTS -Iscripts/Python/modules/readline -I/home/lanes/swift/lldb/scripts/Python/modules/readline -I/home/lanes/swift/lldb/include -Iinclude -I/home/lanes/swift/build/Ninja-DebugAssert/llvm-linux-x86_64/include -I/home/lanes/swift/build/Ninja-DebugAssert/llvm-linux-x86_64/tools/clang/include -I/home/lanes/swift/llvm/include -I/home/lanes/swift/llvm/tools/clang/include -I/home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/include -I/home/lanes/swift/swift/include -I/home/lanes/swift/lldb/source -I/usr/local/include/python3.4m -I/home/lanes/swift/lldb/tools/clang/include -I../clang/include -I/usr/include/libxml2 -std=c++11 -fcolor-diagnostics -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension  -fno-exceptions -fno-rtti -g -fPIC -MMD -MT scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o -MF scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o.d -o scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o -c /home/lanes/swift/lldb/scripts/Python/modules/readline/readline.cpp<br></span><span class="">/home/lanes/swift/lldb/scripts/Python/modules/readline/readline.cpp:68:34: error: assigning to &#39;char *(*)(FILE *, FILE *, const char *)&#39; from incompatible type &#39;char *(FILE *, FILE *, char *)&#39;: type mismatch at 3rd parameter (&#39;const char *&#39; vs &#39;char *&#39;)<br></span><span class="">    PyOS_ReadlineFunctionPointer = simple_readline;<br></span><span class="">                                 ^ ~~~~~~~~~~~~~~~<br></span><span class="">/home/lanes/swift/lldb/scripts/Python/modules/readline/readline.cpp:70:5: error: use of undeclared identifier &#39;Py_InitModule4&#39;<br></span><span class="">    Py_InitModule4(<br></span><span class="">    ^<br></span><span class="">2 errors generated.</span></blockquote><div><br></div><div><br></div><div>I&#39;ve installed the python-devel, python27-python-devel, and python33-python-devel packages, as well as swig. </div><div><br></div><div>The readline.cpp file where the error occurs imports Python.h. The header file Python.h exists at /usr/include/python2.7/Python.h, and it includes modsupport.h (/usr/include/python2.7/modsupport.h) which appears to define Py_InitModule4.</div><div><br></div><div>Any thoughts or assistance would be appreciated.</div><div><br></div><div>Thanks,</div><div>Lane</div><div><br></div>




































</div></div>