Dimitry Andric via llvm-dev
2021-Jun-14 16:22 UTC
[llvm-dev] llvm 12 regression bug with llvm-ar
On 14 Jun 2021, at 17:17, Shawn Webb via llvm-dev <llvm-dev at lists.llvm.org> wrote:> > On Mon, Jun 14, 2021 at 07:45:06AM -0700, Tom Stellard wrote: >> On 6/14/21 5:31 AM, Shawn Webb via llvm-dev wrote: >>> As a little bit of background, HardenedBSD compiles (nearly) the whole >>> operating system (static/shared libraries and applications) with LTO. >>> HardenedBSD is a derivative of FreeBSD that follows FreeBSD very >>> closely (we merge in changes from FreeBSD every six hours). >>> >>> Over the weekend, FreeBSD merged in llvm 12 (upgrading from llvm 11). >>> We've found at least one regression with llvm-ar. Below is the log of >>> the llvm error output. I'm sure you all will need more context, so >>> please let me know how I can help in that regard. >> >> Can you file a bug for this and put release-12.0.1 in the blocks field. >> >> We are getting close to the release, so there may not be enough time to >> fix this, but I would like to track this bug anyway. > > Thanks for the response! I've filed a bug report here: > https://bugs.llvm.org/show_bug.cgi?id=50706 > > I'm going to try to figure out which specific object file is causing > llvm-ar to crash. I'll report back when I know more.Hi Shawn, Just to make sure, these object files are actually LLVM bitcode, right? (Since you're trying to do LTO here.) -Dimitry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 223 bytes Desc: Message signed with OpenPGP URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210614/1f25879c/attachment.sig>
Shawn Webb via llvm-dev
2021-Jun-14 16:27 UTC
[llvm-dev] llvm 12 regression bug with llvm-ar
On Mon, Jun 14, 2021 at 06:22:41PM +0200, Dimitry Andric wrote:> On 14 Jun 2021, at 17:17, Shawn Webb via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > > On Mon, Jun 14, 2021 at 07:45:06AM -0700, Tom Stellard wrote: > >> On 6/14/21 5:31 AM, Shawn Webb via llvm-dev wrote: > >>> As a little bit of background, HardenedBSD compiles (nearly) the whole > >>> operating system (static/shared libraries and applications) with LTO. > >>> HardenedBSD is a derivative of FreeBSD that follows FreeBSD very > >>> closely (we merge in changes from FreeBSD every six hours). > >>> > >>> Over the weekend, FreeBSD merged in llvm 12 (upgrading from llvm 11). > >>> We've found at least one regression with llvm-ar. Below is the log of > >>> the llvm error output. I'm sure you all will need more context, so > >>> please let me know how I can help in that regard. > >> > >> Can you file a bug for this and put release-12.0.1 in the blocks field. > >> > >> We are getting close to the release, so there may not be enough time to > >> fix this, but I would like to track this bug anyway. > > > > Thanks for the response! I've filed a bug report here: > > https://bugs.llvm.org/show_bug.cgi?id=50706 > > > > I'm going to try to figure out which specific object file is causing > > llvm-ar to crash. I'll report back when I know more. > > Hi Shawn, > > Just to make sure, these object files are actually LLVM bitcode, right? > (Since you're trying to do LTO here.)They are. I just figured out that we're not including llvm-ar in the bootstrap tools stage, so we're using the system llvm-ar. We'll need to bootstrap llvm-ar in order to be able to support the changes to LLVM IR that are in llvm 12, but not in 11. So it's looking like the bug I filed might be solved by including llvm-ar in the bootstrap-tools stage. I'll update you as I know more. Thanks, -- Shawn Webb Cofounder / Security Engineer HardenedBSD https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210614/1e72dd67/attachment.sig>