Kind request for suggestion about build error

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 11 01:20:54 PDT 2018


Hi Mauro,

it would be great to know what is the reason that template deduction
fails here. Is that the full error message you pasted above? I would
expect some explanatory notes to explain why the template argument
could not be inferred. If the compiler does not provide that, could
you manually check what definition(s) of open are in scope for that
particular line. I'm pretty sure this error can be fixed by tweaking
the source code a bit, but it's hard to say how without more details
(as a wild guess, you can try replacing "open" with "::open" on that
line).

Also, is there anything special about your build setup? What standard
library are you using? It's kinda surprising that you're running into
this now, although that particular patch has been there for almost a
year now...

cheers,
pavel

On Mon, 11 Jun 2018 at 09:03, Mauro Rossi via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
> Hi,
>
> As an introduction I am a volounter in android-x86 project.
>
> I'm trying to build master 7.0.0 with android-x86 project
> (correspondig to 8.1.0_r18)
>
> When building android image I get the following error:
>
> In file included from external/llvm70/lib/Support/Path.cpp:1082:
> external/llvm70/lib/Support/Unix/Path.inc:770:19: error: no matching
> function for call to 'RetryAfterSignal'
>   if ((ResultFD = sys::RetryAfterSignal(-1, open, P.begin(), OpenFlags, Mode)) <
>                   ^~~~~~~~~~~~~~~~~~~~~
> external/llvm70/lib/Support/../../include/llvm/Support/Errno.h:34:13:
> note: candidate template ignored: couldn't infer template argument
> 'Fun'
> inline auto RetryAfterSignal(const FailT &Fail, const Fun &F,
>             ^
> 1 error generated.
>
> In release_60 branch in order to build I had to revert [1]
> In llvm master 7.0.0 I was able to rollback resolving a couple of
> conflicts in lib/Support/Unix/Path.inc. [2]
>
> If Android is or will be one of the targets I just wanted to ask if
> there is a simpler solution,
> compatible with Android Build System/toolchain, or it's better I stick
> to rollback, given my medium low C++ templates expertise.
>
> Mauro Rossi
>
> [1] https://github.com/llvm-mirror/llvm/commit/d04333d38b8fd9914389c21267fa3859b9ebe0b7
>
> [2] https://github.com/maurossi/llvm/commit/38e1953b00f9fdb4a8469ce6c7270a857ab539a6
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list