Opened 11 years ago

Closed 11 years ago

#42864 closed defect (fixed)

ocaml @4.01.0 build failure with Xcode 5.1

Reported by: ats@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: mww@…, openmaintainer@…, ats@…
Port: ocaml

Description

The ocaml port fails to build with Xcode 5.1. It fails as follows:

:info:build /usr/bin/clang -DCAML_NAME_SPACE -O -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT    -c -o interp.o interp.c
:info:build clang: error: unknown argument: '-fno-defer-pop' [-Wunused-command-line-argument-hard-error-in-future]
:info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

It appears that clang in Xcode 5.1 will treat unknown arguments as an error. This can be worked around by setting -Wno-error=unused-command-line-argument-hard-error-in-future or removing the unknown argument.

Here are a couple links I found which discuss this issue:

Version Information for: /Applications/Xcode.app
      CFBundleShortVersionString 5.1 
      CFBundleVersion 5084 

Hardware Information:
      Model Name: MacBook Air
      Model Identifier: MacBookAir5,2
      Processor Name: Intel Core i7
      Processor Speed: 2 GHz
      Number of Processors: 1
      Total Number of Cores: 2
      L2 Cache (per Core): 256 KB
      L3 Cache: 4 MB
      Memory: 8 GB

Operating System Information:
      ProductName:	Mac OS X
      OS X Version:	10.9.3
      BuildVersion:	13D17

Attachments (1)

main.log (13.5 KB) - added by ats@… 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by ats@…

Attachment: main.log added

comment:1 Changed 11 years ago by ats@…

Cc: ats@… added

Cc Me!

comment:2 Changed 11 years ago by mww@…

Resolution: fixed
Status: newclosed

Fixed in r117887

Note: See TracTickets for help on using tickets.