[llvm-bugs] [Bug 31786] New: llgo from branches/release_40 fails to build

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 27 14:26:42 PST 2017


            Bug ID: 31786
           Summary: llgo from branches/release_40 fails to build
           Product: new-bugs
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: bero at linaro.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17905
  --> https://llvm.org/bugs/attachment.cgi?id=17905&action=edit
Don't ignore the return value of write() calls

llgo from branches/release_40 doesn't compile.

At first, building libgo barfs with complaints about return values of
runtime_write being ignored (runtime_write is #defined to write, which in glibc
is marked __attribute__((__warn_unused_result__)) -- and libgo is built with
-Werror, causing the warning to be fatal).

After fixing that (1st attached patch), the build barfs again because compiler
flags passed to clang are also used for llgo, but llgo only understands a
subset of the flags clang understands -- causing "gllgo: error: unrecognized
command line option '-pipe'" and "gllgo: error: unknown command line option:

The second patch I'm attaching fixes the latter (for the moment, by making llgo
accept (and quietly ignore) those flags - but maybe using a separate set of
flags when calling gllgo is a better fix).

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170127/89b99487/attachment-0001.html>

More information about the llvm-bugs mailing list