United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7118094 : Use of printf on Mac cannot accept format string starting with --

Details
Type:
Bug
Submit Date:
2011-12-05
Status:
Closed
Updated Date:
2012-03-19
Project Name:
JDK
Resolved Date:
2012-03-19
Component:
infrastructure
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4 (b11)

Related Reports

Sub Tasks

Description
The jdk7u-osx forest:

On the Mac, the builds appeared to complete then die at the last minute with a complaint about
options passed into printf. It appears that the Mac does not like the "--" characters being passed
in (file make/Defs-internal.gmk in define ReportBuildTimes).

########################################################################
##### Leaving jdk for target(s) sanity all docs images             #####
########################################################################
##### Build time 00:14:15 jdk for target(s) sanity all docs images #####
########################################################################

/usr/bin/printf: illegal option -- -
usage: printf format [arguments ...]
make[1]: *** [generic_build_repo_series] Error 1
make: *** [build_product_image] Error 2

                                    

Comments
EVALUATION

Not sure when jdk7u-osx will be integrated into 7u4, guessing b04.
                                     
2011-12-13
EVALUATION

Fix pushed into jdk7u=osx repositories
                                     
2011-12-07
EVALUATION

Cannot use printf formats starting with -- on the Mac.
                                     
2011-12-06
SUGGESTED FIX

Don't use -- as the prefix, use something like ## or @@
                                     
2011-12-05



Hardware and Software, Engineered to Work Together