> On Jan 17, 2017, at 12:44 PM, Stephen Checkoway <s at pahtak.org> wrote: > > >> On Jan 17, 2017, at 14:39, Mehdi Amini <mehdi.amini at apple.com> wrote: >> >> >>> On Jan 17, 2017, at 12:33 PM, Stephen Checkoway <s at pahtak.org> wrote: >>> >>> >>>> On Jan 17, 2017, at 10:11, Mehdi Amini via llvm-dev <llvm-dev at lists.llvm.org> wrote: >>>> >>>> Actually you have to opt-in instead of opt-out right now, and I encourage you to try it if you’re contributing to LLVM: http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo >>> >>> I just gave it a try following the steps for a combination of multiple projects. Initially, it failed to build because it couldn't find llvm-project/libcxx-abi. I symlinked libcxxabi to libcxx-abi, deleted the build directory and tried again. It fails to build, but this time with a bunch of undefined references to __cxa_XXX symbols. I didn't investigate further. >>> >>> Should this have just worked out of the box? >> >> Yes, can you post your cmake invocation, I’ll investigate. > > Sorry, I should have done that initially. I copied it from the website: > > cmake -GNinja ../llvm-project/llvm -DLLVM_ENABLE_PROJECTS="clang;libcxx;compiler-rt”It builds for me right now on OSX (running `ninja check-all` right now), can you `git pull`, try again from a clean build dir, and send me the trace (including the hash you’re on and your OS / platform as well). Thanks, Mehdi
> On Jan 17, 2017, at 16:00, Mehdi Amini <mehdi.amini at apple.com> wrote: > >> >> On Jan 17, 2017, at 12:44 PM, Stephen Checkoway <s at pahtak.org> wrote: >> >> >> >> cmake -GNinja ../llvm-project/llvm -DLLVM_ENABLE_PROJECTS="clang;libcxx;compiler-rt” > > It builds for me right now on OSX (running `ninja check-all` right now), can you `git pull`, try again from a clean build dir, and send me the trace (including the hash you’re on and your OS / platform as well).I did a git pull which updated me to f53d70f759a0b87048576bc87729b368a2d767a9, deleted the build directory (and the libcxx-abi symlink I created), and reran cmake and ninja and I'm not getting any errors involving missing libcxx-abi. I wish I'd saved the error log. I'm really confused by this since I can't find any reference to a libcxx-abi. I'm completely willing to believe user error here (although I cannot for the life of me figure out what I could have done). That said, libcxx still does not build. I get the same undefined references to various __cxa_ functions (e.g., __cxa_allocate_exception, __cxa_throw, __cxa_free_exception) and some vtables (e.g., __cxxabiv1::__si_class_type_info). I'm running Ubuntu 16.04.1 LTS on x86-64. I haven't tried on OS X. [nook:~/programming/llvm/llvm-project] (master) steve$ git pull --rebase remote: Counting objects: 12, done. remote: Compressing objects: 100% (3/3), done. remote: Total 12 (delta 9), reused 12 (delta 9), pack-reused 0 Unpacking objects: 100% (12/12), done. From https://github.com/llvm-project/llvm-project b1f3d87..f53d70f master -> origin/master First, rewinding head to replay your work on top of it... Fast-forwarded master to f53d70f759a0b87048576bc87729b368a2d767a9. [nook:~/programming/llvm/llvm-project] (master) steve$ git rev-parse HEAD f53d70f759a0b87048576bc87729b368a2d767a9 [nook:~/programming/llvm/llvm-project] (master) steve$ cd .. [nook:~/programming/llvm] steve$ mkdir clang-build [nook:~/programming/llvm] steve$ cd clang-build [nook:~/programming/llvm/clang-build] steve$ cmake -GNinja ../llvm-project/llvm -DLLVM_ENABLE_PROJECTS="clang;libcxx;compiler-rt" <snip> [nook:~/programming/llvm/clang-build] steve$ ninja <snip failed build> [nook:~/programming/llvm/clang-build] steve$ uname -a Linux nook 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [nook:~/programming/llvm/clang-build] steve$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial -- Stephen Checkoway
On 1/17/17 3:54 PM, Stephen Checkoway via llvm-dev wrote:> >> On Jan 17, 2017, at 16:00, Mehdi Amini <mehdi.amini at apple.com> wrote: >> >>> >>> On Jan 17, 2017, at 12:44 PM, Stephen Checkoway <s at pahtak.org> wrote: >>> >>> >>> >>> cmake -GNinja ../llvm-project/llvm -DLLVM_ENABLE_PROJECTS="clang;libcxx;compiler-rt” >> >> It builds for me right now on OSX (running `ninja check-all` right now), can you `git pull`, try again from a clean build dir, and send me the trace (including the hash you’re on and your OS / platform as well). > > I did a git pull which updated me to f53d70f759a0b87048576bc87729b368a2d767a9, deleted the build directory (and the libcxx-abi symlink I created), and reran cmake and ninja and I'm not getting any errors involving missing libcxx-abi. I wish I'd saved the error log. I'm really confused by this since I can't find any reference to a libcxx-abi. I'm completely willing to believe user error here (although I cannot for the life of me figure out what I could have done).Helps if you spell it 'libcxxabi' not 'libcxx-abi'.> > That said, libcxx still does not build. I get the same undefined references to various __cxa_ functions (e.g., __cxa_allocate_exception, __cxa_throw, __cxa_free_exception) and some vtables (e.g., __cxxabiv1::__si_class_type_info).These are all symbols from libcxxabi. Jon> > I'm running Ubuntu 16.04.1 LTS on x86-64. I haven't tried on OS X. > > > [nook:~/programming/llvm/llvm-project] (master) steve$ git pull --rebase > remote: Counting objects: 12, done. > remote: Compressing objects: 100% (3/3), done. > remote: Total 12 (delta 9), reused 12 (delta 9), pack-reused 0 > Unpacking objects: 100% (12/12), done. > From https://github.com/llvm-project/llvm-project > b1f3d87..f53d70f master -> origin/master > First, rewinding head to replay your work on top of it... > Fast-forwarded master to f53d70f759a0b87048576bc87729b368a2d767a9. > [nook:~/programming/llvm/llvm-project] (master) steve$ git rev-parse HEAD > f53d70f759a0b87048576bc87729b368a2d767a9 > [nook:~/programming/llvm/llvm-project] (master) steve$ cd .. > [nook:~/programming/llvm] steve$ mkdir clang-build > [nook:~/programming/llvm] steve$ cd clang-build > [nook:~/programming/llvm/clang-build] steve$ cmake -GNinja ../llvm-project/llvm -DLLVM_ENABLE_PROJECTS="clang;libcxx;compiler-rt" > <snip> > [nook:~/programming/llvm/clang-build] steve$ ninja > <snip failed build> > [nook:~/programming/llvm/clang-build] steve$ uname -a > Linux nook 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux > [nook:~/programming/llvm/clang-build] steve$ lsb_release -a > No LSB modules are available. > Distributor ID: Ubuntu > Description: Ubuntu 16.04.1 LTS > Release: 16.04 > Codename: xenial >-- Jon Roelofs jonathan at codesourcery.com CodeSourcery / Mentor Embedded