Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized gcc option #5552

Closed
vicuna opened this issue Mar 21, 2012 · 2 comments
Closed

Unrecognized gcc option #5552

vicuna opened this issue Mar 21, 2012 · 2 comments
Assignees
Labels

Comments

@vicuna
Copy link

@vicuna vicuna commented Mar 21, 2012

Original bug ID: 5552
Reporter: @mmottl
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2012-03-27T14:32:58Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: Mac
OS: Mac OS X
OS Version: 10.7.3
Version: 3.12.1
Fixed in version: 4.00.0+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

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!

@vicuna
Copy link
Author

@vicuna vicuna commented Mar 26, 2012

Comment author: @lefessan

Damien is going to investigate this issue.

@vicuna
Copy link
Author

@vicuna vicuna commented Mar 27, 2012

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants