[lldb-dev] LLDB Assertion failed

Zachary Turner zturner at google.com
Tue Feb 3 15:47:38 PST 2015


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:

CMAKE_BUILD_TYPE:STRING=Debug

Do you have this line in your CMakeCache.txt and still experience this
assertion?

On Tue Feb 03 2015 at 3:43:23 PM Ted Woodward <ted.woodward at codeaurora.org>
wrote:

> My guess would be the change that switched from shell scripts to python
> files to configure swig.
>
> I think the problem is in source/CMakeLists.txt, specifically this line:
>
>                 COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/..
> /scripts/finishSwigWrapperClasses.py --buildConfig=${CMAKE_BUILD_TYPE}
> "--srcRoot=${LLDB_SOURCE_DIR}" "--targetDir=${CMAKE_CURRENT_BINARY_DIR}/../scripts"
> "--cfgBldDir=${CMAKE_CURRENT_BINARY_DIR}/../scripts"
> "--prefix=${CMAKE_BINARY_DIR}" "--cmakeBuildConfiguration=${CMAKE_CFG_INTDIR}"
> -m
>
> The problem is "--buildConfig=${CMAKE_BUILD_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.
>
> --
> Qualcomm Innovation Center, Inc.
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
> Linux Foundation Collaborative Project
>
> -----Original Message-----
> From: lldb-dev-bounces at cs.uiuc.edu [mailto:lldb-dev-bounces at cs.uiuc.edu]
> On Behalf Of Stephane Sezer
> Sent: Tuesday, February 03, 2015 5:03 PM
> To: Siva Chandra
> Cc: lldb-dev at cs.uiuc.edu
> Subject: Re: [lldb-dev] LLDB Assertion failed
>
> Can you point out the change that caused that? I encountered the same
> issue and I’d like to take a look.
>
> --
> Stephane Sezer
>
> > On Feb 2, 2015, at 8:26 PM, Siva Chandra <sivachandra at google.com> wrote:
> >
> > On Mon, Feb 2, 2015 at 8:10 PM, Ziming Song <s.ziming at hotmail.com>
> wrote:
> >> I build LLDB following this tutorial on the website.
> >>
> >> svn co
> >> https://urldefense.proofpoint.com/v1/url?u=http://llvm.org/svn/llvm-p
> >> roject/llvm/trunk&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=g1GoAnQQskSBaWL
> >> JWw6X6w%3D%3D%0A&m=foOOK%2FBlTsGu29qsLDDTx%2FQ3NQCuQ4TU%2F5PitF8MU7w%
> >> 3D%0A&s=c9fabfdb309fb304d09adc3f1407b129278633d19bc9fc5d8afb123f097b317e
> llvm cd llvm/tools svn co 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 clang
> svn co 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=8adb7e06ef9273c29deb17e8b87598
> d932efd6df7911a693e777cc452bb4c189 lldb cd ../..
> >> mkdir build && cd build
> >> cmake ../llvm
> >> make -j4
> >>
> >> But while executing make, I encountered an error saying:
> >>
> >> Python script sym-linking LLDB Python API Program error: Invalid
> >> parameters entered, -h for help.
> >> You entered:
> >> ['--buildConfig=',
> >> '--srcRoot=/home/szm/workSpace/studio/llvm/tools/lldb',
> >> '--targetDir=/home/szm/workSpace/studio/llvm-build2/tools/lldb/source
> >> /../scripts',
> >> '--cfgBldDir=/home/szm/workSpace/studio/llvm-build2/tools/lldb/source
> >> /../scripts', '--prefix=/home/szm/workSpace/studio/llvm-build2',
> >> '--cmakeBuildConfiguration=.', '-m'] (-1)
> >> make[2]: *** [lib/liblldb.so.3.7.0] Error 255
> >> make[1]: *** [tools/lldb/source/CMakeFiles/liblldb.dir/all] Error 2
> >> make: *** [all] Error 2
> >
> > After a recent change, one is having to specify CMAKE_BUILD_TYPE
> explicitly:
> >
> > cmake -DCMAKE_BUILD_TYPE=Debug ../llvm
> > _______________________________________________
> > lldb-dev mailing list
> > lldb-dev at cs.uiuc.edu
> > https://urldefense.proofpoint.com/v1/url?u=http://lists.cs.uiuc.edu/ma
> > ilman/listinfo/lldb-dev&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=g1GoAnQQsk
> > SBaWLJWw6X6w%3D%3D%0A&m=foOOK%2FBlTsGu29qsLDDTx%2FQ3NQCuQ4TU%2F5PitF8M
> > U7w%3D%0A&s=edf8c8f2270656ac81c02393a541d0d5daf34e634b24dbf2726742c2be
> > de172b
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150203/c778fc1c/attachment.html>


More information about the lldb-dev mailing list