Closed Quuxplusone closed 10 years ago
Attached llvm-dragonfly.patch
(2314 bytes, text/plain): patches required to build llvm on DragonFly
Attached crash-r191854.log
(84248 bytes, text/x-log): r191854 build attempt trace
Attached crash-trunk-r193677.log
(32242 bytes, text/x-log): r193677 (trunk) build attempt trace
Please send llvm related patches to llvm-commits. As an aside, I do not see any changes to the CMake side of things. Does that Just Work (tm)?
Ok, I will do this.
There are no cmake changes necessary that we know of at this time.
Just an update: the patches have been merged into Trunk as of r193750. Therefore, there is no need to apply them anymore before attempting a build against Trunk and reproduce the bug described here.
It seems broken since r185236: http://lists.cs.uiuc.edu/pipermail/llvm-
commits/Week-of-Mon-20130624/179547.html
Unfortunately, r185237 (http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-
Mon-20130624/179552.html) does not fix the problem and it is this line in
include/llvm/Analysis/BlockFrequencyImpl.h that cause the build to break:
uint64_t N = std::max(BackFreq.getFrequency(), UINT64_C(1));
So it seems to me that BackFreq.getFrequency() does not return the correct type.
I'm pretty sure the fix should be simple but it does not stand out to me.
It actually was DragonFly BSD itself that required a fix. See http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2a61a4766f203ace8a0d0ed677e146bd3959dd58
This issue can now be considered solved.
llvm-dragonfly.patch
(2314 bytes, text/plain)crash-r191854.log
(84248 bytes, text/x-log)crash-trunk-r193677.log
(32242 bytes, text/x-log)