Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005552OCamlOCaml generalpublic2012-03-21 19:432012-03-27 16:32
Reportermottl 
Assigned Todoligez 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
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
(0007163)
lefessan (developer)
2012-03-26 14:36

Damien is going to investigate this issue.
(0007196)
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


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker