Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Unrecognized gcc option #5552
Original bug ID: 5552
On Mac OS X I get the following error when compiling C-files with OCaml:
gcc: unrecognized option '-no-cpp-precomp'
This flag is passed implicitly to gcc by the OCaml compiler. The configure script in the OCaml distribution apparently decides to always pass this flag on any "Darwin" platform, because it is required by Apple's version of gcc.
However, sometimes developers may use a different version of gcc than shipped by Apple (e.g. from MacPorts, etc.). Could you please refine the compiler configuration so that this flag is only passed when really needed? Thanks!
Comment author: @damiendoligez
A bit of investigation reveals that this flag stopped being useful at some point before 2008 (probably in 2005). In the current version of Apple's gcc, it is not even documented anymore, but still silently ignored.
I have patched "configure" to remove this flag.
Fixed in 4.00 (commit 12282) and trunk (commit 12283)