RFR: JDK-8087193: Support building with devkits on Macosx

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Fri Jun 12 06:52:46 UTC 2015

On 2015-06-11 15:09, Erik Joelsson wrote:
> It seems this approach didn't quite work out. The bootstrapping order 
> of configure is sensitive. Here is another attempt at solving the 
> issue by simply forcing macosx to be x86_64 in our config.guess wrapper.
> http://cr.openjdk.java.net/~erikj/8087193/webrev.02/

This code:

+echo $OUT | grep i386-apple-darwin > /dev/null 2> /dev/null
+if test $? = 0; then
+  REAL_CPU=`uname -m`
+  OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`

Can you provide an example of  uname -m and the resulting OUT string on 


> /Erik
> On 2015-06-11 13:14, Erik Joelsson wrote:
>> I forgot to motivate the change. Configure runs config.guess to 
>> figure out what kind of machine it's running on. That file in turn 
>> uses the C preprocessor to figure out if it's 32 or 64 bit. If we 
>> don't setup devkit before running config.guess, the preprocessor 
>> might not be available and configure will think the mac is a 32 bit 
>> machine.
>> /Erik
>> On 2015-06-11 12:46, Erik Joelsson wrote:
>>> Hello,
>>> Please review this minor tweak to configure which enables the use of 
>>> a portable devkit on Macosx. Also included is the script used to 
>>> generate the devkit. The plan is use this internally on our build 
>>> servers to ease installation and setup of our machines.
>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8087193
>>> Webrev: http://cr.openjdk.java.net/~erikj/8087193/webrev.01/
>>> /Erik

More information about the build-dev mailing list