Build Issues on OS X
Phil Race
philip.race at oracle.com
Thu Feb 14 09:16:14 PST 2013
The fix should make it into JDK 8 master within about a week.
I wasn't sure about the timing of a JDK7 backport as really a fix
should "bake" in 8 for a couple of months, but if more
people are running into this with JDK7 because of xcode updates,
then on balance it seems I should accelerate that schedule.
-phil.
On 2/14/2013 4:31 AM, Anthony Petrov wrote:
> Hi Petr,
>
> This is a known issue and a fix is being reviewed on this mailing list
> at the moment:
>
> http://mail.openjdk.java.net/pipermail/macosx-port-dev/2013-February/005359.html
>
>
> You can take the patch, apply it to your workspace, and give it a try,
> or wait until the fix is pushed to the repository.
>
> --
> best regards,
> Anthony
>
> On 02/14/13 16:24, Petr Hadraba wrote:
>> Dear guys,
>>
>> sorry to bother you, but I would like to get a bit more involved into
>> the JDK world. I decided to start with JDK7-dev repository. But I'm
>> unable to compile JObjC native component.
>>
>> I've followed Your instructions; I've set up all the necessary tools
>> and theirs respective versions. The sanity check completes successfully.
>>
>> My configuration:
>> - OS X 10.7.5
>> - Xcode 4.6 incl. CLI tools
>>
>> I tried both JDK7u13 and JDK6u37 as bootstrap JDK with the same
>> result. It seems I have misconfigured something.
>>
>> Could you please point me somewhere where I can get more information
>> about this issue?
>>
>> Thanks in advance and sorry if this is something stupid.
>>
>> Sincerely Yours,
>>
>> PETR
>>
>>
>> [exec] === BUILD NATIVE TARGET build-core-native OF PROJECT
>> JObjC WITH CONFIGURATION Debug ===
>> [exec] Check dependencies
>> [exec]
>> [exec] CompileC
>> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.o
>> src/core/native/SEL.m normal i386 objective-c
>> com.apple.compilers.llvm.clang.1_0.compiler
>> [exec] cd /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc
>> [exec] setenv LANG en_US.US-ASCII
>> [exec]
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
>> -x objective-c -arch i386 -fmessage-length=0 -fobjc-gc -Wno-trigraphs
>> -fpascal-strings -Os -Werror -Werror-implicit-function-declaration
>> -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type
>> -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat
>> -Wmissing-braces -Wparentheses -Wswitch -Wunused-function
>> -Wno-unused-label -Wno-unused-parameter -Wunused-variable
>> -Wunused-value -Wno-empty-body -Wuninitialized -Wunknown-pragmas
>> -Wshadow -Wfour-char-constants -Wno-conversion
>> -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion
>> -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof
>> -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector
>> -Wno-deprecated-implementations -fasm-blocks -fstrict-aliasing
>> -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion
>> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/JObjC.h
> map
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug/include
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug/src/jni_headers/core
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.build/src/jni_headers/core
> -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/DerivedSources/i386
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/DerivedSources -Wmost
> -Wno-four-char-constants -Wno-unknown-pragmas -Wformat
> -Wformat-security -Wcast-align -Wwrite-strings -Wuninitialized
> -Wshadow -Wshorten-64-to-32 -Wsign-compare -Wpointer-arith -Wall
> -F/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug
> -F/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks
> -MMD -MT dependencies -MF
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.d
> --serialize-diagnostics
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.dia
> -c
> /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc/src/core/native/SEL.m
> -o
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.o
>> [exec]
>> /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc/src/core/native/SEL.m:37:12:
>> error: cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is
>> deprecated; use sel_getName instead [-Werror,-Wcast-of-sel-type]
>> [exec] return ptr_to_jlong(sel);
>> [exec] ^~~~~~~~~~~~~~~~~
>> [exec]
>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Headers/JNFJNI.h:42:44:
>> note: expanded from macro 'ptr_to_jlong'
>> [exec] #define ptr_to_jlong(a) ((jlong)(uintptr_t)(a))
>> [exec] ^~~
>> [exec] 1 error generated.
>> [exec]
>> [exec] CompileC
>> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/FFIType.o
>> src/core/native/FFIType.m normal x86_64 objective-c
>> com.apple.compilers.llvm.clang.1_0.compiler
>> [exec] cd /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc
>> [exec] setenv LANG en_US.US-ASCII
>> [exec]
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
>> -x objective-c -arch x86_64 -fmessage-length=0 -fobjc-gc
>> -Wno-trigraphs -fpascal-strings -Os -Werror
>> -Werror-implicit-function-declaration -Wno-missing-field-initializers
>> -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties
>> -Wno-receiver-is-weak -Wformat -Wmissing-braces -Wparentheses
>> -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter
>> -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized
>> -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wno-conversion
>> -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion
>> -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof
>> -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector
>> -Wno-deprecated-implementations -fasm-blocks -fstrict-aliasing
>> -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion
>> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/JObjC
> .hmap
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug/include
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug/src/jni_headers/core
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.build/src/jni_headers/core
> -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/DerivedSources/x86_64
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/DerivedSources -Wmost
> -Wno-four-char-constants -Wno-unknown-pragmas -Wformat
> -Wformat-security -Wcast-align -Wwrite-strings -Wuninitialized
> -Wshadow -Wshorten-64-to-32 -Wsign-compare -Wpointer-arith -Wall
> -F/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug
> -F/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks
> -MMD -MT dependencies -MF
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/FFIType.d
> --serialize-diagnostics
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_6
> 4/FFIType.dia -c
> /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc/src/core/native/FFIType.m
> -o
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/FFIType.o
>> [exec]
>> [exec] CompileC
>> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.o
>> src/core/native/SEL.m normal x86_64 objective-c
>> com.apple.compilers.llvm.clang.1_0.compiler
>> [exec] cd /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc
>> [exec] setenv LANG en_US.US-ASCII
>> [exec]
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
>> -x objective-c -arch x86_64 -fmessage-length=0 -fobjc-gc
>> -Wno-trigraphs -fpascal-strings -Os -Werror
>> -Werror-implicit-function-declaration -Wno-missing-field-initializers
>> -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties
>> -Wno-receiver-is-weak -Wformat -Wmissing-braces -Wparentheses
>> -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter
>> -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized
>> -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wno-conversion
>> -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion
>> -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof
>> -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector
>> -Wno-deprecated-implementations -fasm-blocks -fstrict-aliasing
>> -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion
>> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/JObjC
> .hmap
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug/include
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug/src/jni_headers/core
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.build/src/jni_headers/core
> -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/DerivedSources/x86_64
> -I/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/DerivedSources -Wmost
> -Wno-four-char-constants -Wno-unknown-pragmas -Wformat
> -Wformat-security -Wcast-align -Wwrite-strings -Wuninitialized
> -Wshadow -Wshorten-64-to-32 -Wsign-compare -Wpointer-arith -Wall
> -F/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Debug
> -F/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks
> -MMD -MT dependencies -MF
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.d
> --serialize-diagnostics
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SE
> L.dia -c
> /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc/src/core/native/SEL.m
> -o
> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.o
>> [exec]
>> /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc/src/core/native/SEL.m:37:12:
>> error: cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is
>> deprecated; use sel_getName instead [-Werror,-Wcast-of-sel-type]
>> [exec] return ptr_to_jlong(sel);
>> [exec] ^~~~~~~~~~~~~~~~~
>> [exec]
>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Headers/JNFJNI.h:42:44:
>> note: expanded from macro 'ptr_to_jlong'
>> [exec] #define ptr_to_jlong(a) ((jlong)(uintptr_t)(a))
>> [exec] ^~~
>> [exec] 1 error generated.
>> [exec]
>> [exec]
>> [exec] ** BUILD FAILED **
>> [exec]
>> [exec]
>> [exec] The following build commands failed:
>> [exec] CompileC
>> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/i386/SEL.o
>> src/core/native/SEL.m normal i386 objective-c
>> com.apple.compilers.llvm.clang.1_0.compiler
>> [exec] CompileC
>> /Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.dst/Objects-normal/x86_64/SEL.o
>> src/core/native/SEL.m normal x86_64 objective-c
>> com.apple.compilers.llvm.clang.1_0.compiler
>> [exec] (2 failures)
>>
>> BUILD FAILED
>> /Users/petr/tmp/jdk7/src/jdk/src/macosx/native/jobjc/build.xml:158:
>> exec returned: 65
>> at
>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
>> at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
>> at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>> at org.apache.tools.ant.Task.perform(Task.java:348)
>> at org.apache.tools.ant.Target.execute(Target.java:392)
>> at org.apache.tools.ant.Target.performTasks(Target.java:413)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
>> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
>> at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
>> at org.apache.tools.ant.Main.runBuild(Main.java:811)
>> at org.apache.tools.ant.Main.startAnt(Main.java:217)
>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>>
>> Total time: 7 seconds
>> make[4]: ***
>> [/Users/petr/tmp/jdk7/src/build/macosx-x86_64/JObjC.build/JObjC.jar]
>> Error 1
>> make[3]: *** [all] Error 1
>> make[2]: *** [all] Error 1
>> make[1]: *** [jdk-build] Error 2
>> make: *** [build_product_image] Error 2
>>
More information about the macosx-port-dev
mailing list