Skip to content

Failed to compile in OS X with a manually compiled GCC #4783

@lifthrasiir

Description

@lifthrasiir

Compiling 2372d2c in OS X 10.7.5 yielded the following error:

$ make
[snip]
  CC(target) [...]/rt/x86_64-apple-darwin/libuv/Release/obj.target/uv/src/libuv/src/uv-common.o
gcc: error: unrecognized command line option ‘-Wnewline-eof’
make[1]: *** [...]/rt/x86_64-apple-darwin/libuv/Release/obj.target/uv/src/libuv/src/uv-common.o] Error 1
make: *** [rt/x86_64-apple-darwin/libuv/Release/libuv.a] Error 2
make: *** Waiting for unfinished jobs....

-Wnewline-eof is only supported by Apple's version of GCC, and a manually compiled GCC (notably, Homebrew's GCC 4.7.0 which I use) does not have it. This can be ultimately traced back to a libuv's problem (node had a similar issue).

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