https://llvm.org/bugs/show_bug.cgi?id=31786
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: unassignedb...@nondot.org Reporter: b...@linaro.org CC: llvm-bugs@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: '--param=ssp-buffer-size=4'". 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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs