Skip to content

llbuild fails to build with _FORTIFY_SOURCE=2 #875

@finagolfin

Description

@finagolfin

The Android NDK turned on this flag a couple years ago, so I had to disable it when I started cross-compiling llbuild on my Android CI, because of build errors like this:

lib/llvm/Support/Unix/Process.inc:218:21: error: no matching function for call to 'RetryAfterSignal'
      if ((NullFD = RetryAfterSignal(-1, ::open, "/dev/null", O_RDWR)) < 0)
                    ^~~~~~~~~~~~~~~~
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.

I'm not sure if these fortify checks are specific to the Android NDK or would be applied on other platforms too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions