Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005552OCaml~DO NOT USE (was: OCaml general)public2012-03-21 19:432012-03-27 16:32
Assigned Todoligez 
PlatformMacOSMac OS XOS Version10.7.3
Product Version3.12.1 
Target VersionFixed in Version4.00.0+dev 
Summary0005552: Unrecognized gcc option
DescriptionOn 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!
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
lefessan (developer)
2012-03-26 14:36

Damien is going to investigate this issue.
doligez (administrator)
2012-03-27 16:32

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)

- Issue History
Date Modified Username Field Change
2012-03-21 19:43 mottl New Issue
2012-03-26 14:36 lefessan Note Added: 0007163
2012-03-26 14:36 lefessan Assigned To => doligez
2012-03-26 14:36 lefessan Status new => acknowledged
2012-03-27 16:32 doligez Note Added: 0007196
2012-03-27 16:32 doligez Status acknowledged => closed
2012-03-27 16:32 doligez Resolution open => fixed
2012-03-27 16:32 doligez Fixed in Version => 4.00.0+dev
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker