<div dir="ltr">That's strange.  I personally don't specify a value for CMAKE_BUILD_TYPE, but when I look in CMakeCache.txt, I still have this line:<br><br><div><div><span style="line-height:1.5">CMAKE_BUILD_TYPE:STRING=Debug</span><br></div></div><div><br></div><div>Do you have this line in your CMakeCache.txt and still experience this assertion?</div></div><br><div class="gmail_quote">On Tue Feb 03 2015 at 3:43:23 PM Ted Woodward <<a href="mailto:ted.woodward@codeaurora.org">ted.woodward@codeaurora.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My guess would be the change that switched from shell scripts to python files to configure swig.<br>
<br>
I think the problem is in source/CMakeLists.txt, specifically this line:<br>
<br>
                COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/..<u></u>/scripts/<u></u>finishSwigWrapperClasses.py --buildConfig=${CMAKE_BUILD_<u></u>TYPE} "--srcRoot=${LLDB_SOURCE_DIR}" "--targetDir=${CMAKE_CURRENT_<u></u>BINARY_DIR}/../scripts" "--cfgBldDir=${CMAKE_CURRENT_<u></u>BINARY_DIR}/../scripts" "--prefix=${CMAKE_BINARY_DIR}" "--cmakeBuildConfiguration=${<u></u>CMAKE_CFG_INTDIR}" -m<br>
<br>
The problem is "--buildConfig=${CMAKE_BUILD_<u></u>TYPE}". If CMAKE_BUILD_TYPE is not set, you call finishSwigWrapperClasses.py with "--buildConfig=", which breaks the script. In my local Windows build I changed CMAKE_BUILD_TYPE to CMAKE_CFG_INTDIR. I don't know if that's correct, but it fixed my build calling the swig scripts.<br>
<br>
--<br>
Qualcomm Innovation Center, Inc.<br>
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:lldb-dev-bounces@cs.uiuc.edu" target="_blank">lldb-dev-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:lldb-dev-bounces@cs.uiuc.edu" target="_blank">lldb-dev-bounces@cs.<u></u>uiuc.edu</a>] On Behalf Of Stephane Sezer<br>
Sent: Tuesday, February 03, 2015 5:03 PM<br>
To: Siva Chandra<br>
Cc: <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
Subject: Re: [lldb-dev] LLDB Assertion failed<br>
<br>
Can you point out the change that caused that? I encountered the same issue and I’d like to take a look.<br>
<br>
--<br>
Stephane Sezer<br>
<br>
> On Feb 2, 2015, at 8:26 PM, Siva Chandra <<a href="mailto:sivachandra@google.com" target="_blank">sivachandra@google.com</a>> wrote:<br>
><br>
> On Mon, Feb 2, 2015 at 8:10 PM, Ziming Song <<a href="mailto:s.ziming@hotmail.com" target="_blank">s.ziming@hotmail.com</a>> wrote:<br>
>> I build LLDB following this tutorial on the website.<br>
>><br>
>> svn co<br>
>> <a href="https://urldefense.proofpoint.com/v1/url?u=http://llvm.org/svn/llvm-p" target="_blank">https://urldefense.proofpoint.<u></u>com/v1/url?u=http://llvm.org/<u></u>svn/llvm-p</a><br>
>> roject/llvm/trunk&k=<u></u>ZVNjlDMF0FElm4dQtryO4A%3D%3D%<u></u>0A&r=g1GoAnQQskSBaWL<br>
>> JWw6X6w%3D%3D%0A&m=foOOK%<u></u>2FBlTsGu29qsLDDTx%<u></u>2FQ3NQCuQ4TU%2F5PitF8MU7w%<br>
>> 3D%0A&s=<u></u>c9fabfdb309fb304d09adc3f1407b1<u></u>29278633d19bc9fc5d8afb123f097b<u></u>317e llvm cd llvm/tools svn co <a href="https://urldefense.proofpoint.com/v1/url?u=http://llvm.org/svn/llvm-project/cfe/trunk&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=g1GoAnQQskSBaWLJWw6X6w%3D%3D%0A&m=foOOK%2FBlTsGu29qsLDDTx%2FQ3NQCuQ4TU%2F5PitF8MU7w%3D%0A&s=dcd7fe1a20bc7692f537fd9eba8674d0f745c889bf67a229ac368f6d5976ae85" target="_blank">https://urldefense.proofpoint.<u></u>com/v1/url?u=http://llvm.org/<u></u>svn/llvm-project/cfe/trunk&k=<u></u>ZVNjlDMF0FElm4dQtryO4A%3D%3D%<u></u>0A&r=g1GoAnQQskSBaWLJWw6X6w%<u></u>3D%3D%0A&m=foOOK%<u></u>2FBlTsGu29qsLDDTx%<u></u>2FQ3NQCuQ4TU%2F5PitF8MU7w%3D%<u></u>0A&s=<u></u>dcd7fe1a20bc7692f537fd9eba8674<u></u>d0f745c889bf67a229ac368f6d5976<u></u>ae85</a> clang svn co <a href="https://urldefense.proofpoint.com/v1/url?u=http://llvm.org/svn/llvm-project/lldb/trunk&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=g1GoAnQQskSBaWLJWw6X6w%3D%3D%0A&m=foOOK%2FBlTsGu29qsLDDTx%2FQ3NQCuQ4TU%2F5PitF8MU7w%3D%0A&s=8adb7e06ef9273c29deb17e8b87598d932efd6df7911a693e777cc452bb4c189" target="_blank">https://urldefense.proofpoint.<u></u>com/v1/url?u=http://llvm.org/<u></u>svn/llvm-project/lldb/trunk&k=<u></u>ZVNjlDMF0FElm4dQtryO4A%3D%3D%<u></u>0A&r=g1GoAnQQskSBaWLJWw6X6w%<u></u>3D%3D%0A&m=foOOK%<u></u>2FBlTsGu29qsLDDTx%<u></u>2FQ3NQCuQ4TU%2F5PitF8MU7w%3D%<u></u>0A&s=<u></u>8adb7e06ef9273c29deb17e8b87598<u></u>d932efd6df7911a693e777cc452bb4<u></u>c189</a> lldb cd ../..<br>
>> mkdir build && cd build<br>
>> cmake ../llvm<br>
>> make -j4<br>
>><br>
>> But while executing make, I encountered an error saying:<br>
>><br>
>> Python script sym-linking LLDB Python API Program error: Invalid<br>
>> parameters entered, -h for help.<br>
>> You entered:<br>
>> ['--buildConfig=',<br>
>> '--srcRoot=/home/szm/<u></u>workSpace/studio/llvm/tools/<u></u>lldb',<br>
>> '--targetDir=/home/szm/<u></u>workSpace/studio/llvm-build2/<u></u>tools/lldb/source<br>
>> /../scripts',<br>
>> '--cfgBldDir=/home/szm/<u></u>workSpace/studio/llvm-build2/<u></u>tools/lldb/source<br>
>> /../scripts', '--prefix=/home/szm/workSpace/<u></u>studio/llvm-build2',<br>
>> '--cmakeBuildConfiguration=.', '-m'] (-1)<br>
>> make[2]: *** [lib/liblldb.so.3.7.0] Error 255<br>
>> make[1]: *** [tools/lldb/source/CMakeFiles/<u></u>liblldb.dir/all] Error 2<br>
>> make: *** [all] Error 2<br>
><br>
> After a recent change, one is having to specify CMAKE_BUILD_TYPE explicitly:<br>
><br>
> cmake -DCMAKE_BUILD_TYPE=Debug ../llvm<br>
> ______________________________<u></u>_________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
> <a href="https://urldefense.proofpoint.com/v1/url?u=http://lists.cs.uiuc.edu/ma" target="_blank">https://urldefense.proofpoint.<u></u>com/v1/url?u=http://lists.cs.<u></u>uiuc.edu/ma</a><br>
> ilman/listinfo/lldb-dev&k=<u></u>ZVNjlDMF0FElm4dQtryO4A%3D%3D%<u></u>0A&r=g1GoAnQQsk<br>
> SBaWLJWw6X6w%3D%3D%0A&m=foOOK%<u></u>2FBlTsGu29qsLDDTx%<u></u>2FQ3NQCuQ4TU%2F5PitF8M<br>
> U7w%3D%0A&s=<u></u>edf8c8f2270656ac81c02393a541d0<u></u>d5daf34e634b24dbf2726742c2be<br>
> de172b<br>
<br>
<br>
______________________________<u></u>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/lldb-dev</a><br>
<br>
<br>
______________________________<u></u>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/lldb-dev</a><br>
</blockquote></div>