mats petersson via llvm-dev
2016-Nov-16 20:05 UTC
[llvm-dev] Incorrect / missing dependencies in llvm build?
Yesterday, I took latest git version of LLVM, built a makefile using cmake (had to update from my "old" cmake to a newer one, so picked the latest 3.7.0), and ran the resulting makefile with `make -j 8`. This failed with an error, but when I ran make again, it worked fine... My guess as to the problem is that there's one or more dependency that isn't made clear to make (or cmake), and when I run make again, it has built the "previously missing" one. I didn't spend much time debugging this, I may have a go tonight, I just wanted to raise this, in case someone else has seen this and/or has a solution... I was able to reproduce the problem tho', as I built llvm twice with different configurations, and it happened both times - and rerunning make resolved it both times too. -- Mats -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161116/efc39fae/attachment.html>
Jonathan Roelofs via llvm-dev
2016-Nov-16 20:11 UTC
[llvm-dev] Incorrect / missing dependencies in llvm build?
On 11/16/16 1:05 PM, mats petersson via llvm-dev wrote:> Yesterday, I took latest git version of LLVM, built a makefile using > cmake (had to update from my "old" cmake to a newer one, so picked the > latest 3.7.0), and ran the resulting makefile with `make -j 8`. This > failed with an error, but when I ran make again, it worked fine... My > guess as to the problem is that there's one or more dependency that > isn't made clear to make (or cmake), and when I run make again, it has > built the "previously missing" one. > > I didn't spend much time debugging this, I may have a go tonight, I just > wanted to raise this, in case someone else has seen this and/or has a > solution... I was able to reproduce the problem tho', as I built llvm > twice with different configurations, and it happened both times - and > rerunning make resolved it both times too.Folks on my team have seen this. From their description of the failure, it looked to me like it was a problem with missing dependencies on TableGen-generated headers... but I didn't get enough information to be able to track down exactly which TU was missing the dep, and I haven't been able to reproduce it myself. Jon> > -- > Mats > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Jon Roelofs jonathan at codesourcery.com CodeSourcery / Mentor Embedded
Martin J. O'Riordan via llvm-dev
2016-Nov-16 20:28 UTC
[llvm-dev] Incorrect / missing dependencies in llvm build?
I sometimes see this with a clean build and most often it is 'Attributes.inc' that is missing. I usually have to 'touch Attributes.td' for this. But I don't know CMake well enough to know how to fix these issue properly. MartinO -----Original Message----- From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Jonathan Roelofs via llvm-dev Sent: 16 November 2016 20:11 To: mats petersson <mats at planetcatfish.com>; llvm-dev <llvm-dev at lists.llvm.org> Subject: Re: [llvm-dev] Incorrect / missing dependencies in llvm build? On 11/16/16 1:05 PM, mats petersson via llvm-dev wrote:> Yesterday, I took latest git version of LLVM, built a makefile using > cmake (had to update from my "old" cmake to a newer one, so picked the > latest 3.7.0), and ran the resulting makefile with `make -j 8`. This > failed with an error, but when I ran make again, it worked fine... My > guess as to the problem is that there's one or more dependency that > isn't made clear to make (or cmake), and when I run make again, it has > built the "previously missing" one. > > I didn't spend much time debugging this, I may have a go tonight, I > just wanted to raise this, in case someone else has seen this and/or > has a solution... I was able to reproduce the problem tho', as I built > llvm twice with different configurations, and it happened both times - > and rerunning make resolved it both times too.Folks on my team have seen this. From their description of the failure, it looked to me like it was a problem with missing dependencies on TableGen-generated headers... but I didn't get enough information to be able to track down exactly which TU was missing the dep, and I haven't been able to reproduce it myself. Jon> > -- > Mats > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Jon Roelofs jonathan at codesourcery.com CodeSourcery / Mentor Embedded _______________________________________________ LLVM Developers mailing list llvm-dev at lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Maybe Matching Threads
- Incorrect / missing dependencies in llvm build?
- Incorrect / missing dependencies in llvm build?
- Modified LLVM IR
- [GVN] same sequence of instructions in if and else branch
- [LLVMdev] why we assume malloc() always returns a non-null pointer in instruction combing?