This is an archive of the discontinued LLVM Phabricator instance.

Define findModulesAndOffsets() unconditionally to unbreak build
AbandonedPublic

Authored by krytarowski on Nov 7 2015, 4:56 PM.

Details

Reviewers
joerg
rnk
Summary

With the following commit:

http://reviews.llvm.org/D12884
[Windows] Symbolize with llvm-symbolizer instead of dbghelp in a self-host

build has been broken on NetBSD.

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski updated this revision to Diff 39645.Nov 7 2015, 4:56 PM
krytarowski retitled this revision from to Define findModulesAndOffsets() unconditionally to unbreak build.
krytarowski updated this object.
krytarowski added a reviewer: rnk.
krytarowski set the repository for this revision to rL LLVM.
krytarowski added subscribers: llvm-commits, joerg.
joerg requested changes to this revision.Nov 7 2015, 5:07 PM
joerg added a reviewer: joerg.

As mentioned on IRC, this is clearly not correct. There are two unrelated issues in the tree right now:
(1) backtrace(3) doesn't correctly link against libexecinfo on FreeBSD and NetBSD.
(2) Lack of backtrace(3) results in a broken build due to missing findModulesAndOffsets.

This patch addresses neither.

This revision now requires changes to proceed.Nov 7 2015, 5:07 PM

(2) Lack of backtrace(3) results in a broken build due to missing findModulesAndOffsets.

How to solve (2) differently?

krytarowski abandoned this revision.Nov 14 2015, 8:36 PM

@rnk fixed it upstream the same way

joerg added a comment.Nov 16 2015, 2:12 AM

It's not fixed, it's just no longer breaking the build. The condition used is still completely wrong.

rnk edited edge metadata.Nov 16 2015, 9:02 AM

Sorry, I missed this a week ago. I only responded to the email I got directly about my patch.

Joerg, feel free to fix the ifdef soup.