Graal on Mavericks
Doug Simon
doug.simon at oracle.com
Mon Dec 23 12:19:28 PST 2013
Here’s what I get:
clang++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -DPRODUCT -I/Users/dsimon/linz/basic-graal/src/share/vm/prims -I/Users/dsimon/linz/basic-graal/src/share/vm -I/Users/dsimon/linz/basic-graal/src/share/vm/precompiled -I/Users/dsimon/linz/basic-graal/src/cpu/x86/vm -I/Users/dsimon/linz/basic-graal/src/os_cpu/bsd_x86/vm -I/Users/dsimon/linz/basic-graal/src/os_gpu/bsd_ptx/vm -I/Users/dsimon/linz/basic-graal/src/os/bsd/vm -I/Users/dsimon/linz/basic-graal/src/os/posix/vm -I/Users/dsimon/linz/basic-graal/src/gpu -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.0-b63-internal\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"dsimon\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DGRAAL -DDONT_USE_PRECOMPILED_HEADER -fPIC -fno-rtti -fno-exceptions -fvisibility=hidden -m64 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing -stdlib=libc++ -DDONT_USE_PRECOMPILED_HEADER -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 -flimit-debug-info -Os -g -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-omit-frame-pointer -Werror -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses -Wno-switch -Wno-tautological-compare -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess -Wno-empty-body -Wpointer-arith -Wsign-compare -Wundef -DDTRACE_ENABLED -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c -MMD -MP -MF ../generated/dependencies/abstractCompiler.o.d -o abstractCompiler.o /Users/dsimon/linz/basic-graal/src/share/vm/compiler/abstractCompiler.cpp
The only real difference is a different HotSpot build number which comes from make/hotspot_version. This is because fast_r must not have pulled from https://lafo.ssw.uni-linz.ac.at/hg/basic-graal/ recently. Once someone does this, try again and see if the problem goes away. Not sure what else to do at this stage - write someone at Apple a nice email? ;-)
I’ve attached my output and yours with the user dir prefix replaced by $GRAAL_HOME so you can see the difference better.
-Doug
-------------- next part --------------
On Dec 23, 2013, at 8:56 PM, Mario Wolczko <mario.wolczko at oracle.com> wrote:
> It's failing on abtractCompiler.cpp. This is what I get:
>
> clang++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -DPRODUCT -I/Users/mario/Work/Eclipse/graal/src/share/vm/prims -I/Users/mario/Work/Eclipse/graal/src/share/vm -I/Users/mario/Work/Eclipse/graal/src/share/vm/precompiled -I/Users/mario/Work/Eclipse/graal/src/cpu/x86/vm -I/Users/mario/Work/Eclipse/graal/src/os_cpu/bsd_x86/vm -I/Users/mario/Work/Eclipse/graal/src/os_gpu/bsd_ptx/vm -I/Users/mario/Work/Eclipse/graal/src/os/bsd/vm -I/Users/mario/Work/Eclipse/graal/src/os/posix/vm -I/Users/mario/Work/Eclipse/graal/src/gpu -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.0-b59-internal\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"mario\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -DGRAAL -DDONT_USE_PRECOMPILED_HEADER -fPIC -fno-rtti -fno-exceptions -fvisibility=hidden -m64 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing -stdlib=libc++ -DDONT_USE_PRECOMPILED_HEADER -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 -flimit-debug-info -Os -g -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-omit-frame-pointer -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses -Wno-switch -Wno-tautological-compare -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess -Wno-empty-body -Wpointer-arith -Wsign-compare -Wundef -DDTRACE_ENABLED -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c -MMD -MP -MF ../generated/dependencies/abstractCompiler.o.d -o abstractCompiler.o /Users/mario/Work/Eclipse/graal/src/share/vm/compiler/abstractCompiler.cpp
> clang: error: unable to execute command: Segmentation fault: 11
>
> Does this match the invocation you get?
>
>
> On Dec 22, 2013, at 1:11 AM, Doug Simon <doug.simon at oracle.com> wrote:
>
>> You can be sure it is the compilation of ad_x86_64.cpp by invoking the build as such:
>>
>> mx -v build -D HOTSPOT_BUILD_JOBS=1
>>
>> This will also show exactly the compile command being issued.
>>
>> -Doug
>>
>> On Dec 21, 2013, at 3:02 AM, Christian Thalinger <christian.thalinger at oracle.com> wrote:
>>
>>> This is odd. I’m building HotSpot on Mavericks with the same clang compiler as yours but I’ve never seen this problem. It looks like clang crashes trying to compile ad_x86_64.cpp which is a huge file. Does it happen every time?
>>>
>>> On Dec 20, 2013, at 5:52 PM, Mario Wolczko <mario.wolczko at oracle.com> wrote:
>>>
>>>> I'm getting my build environment going again since upgrading to Mavericks. I'm getting a clang crash while compiling HotSpot - anyone seen this and know the fix? This is while building the graal version associated with fast_r.
>>>>
>>>> My mx/env contains:
>>>>
>>>> DEFAULT_VM=server
>>>> COMPILER_WARNINGS_FATAL=false
>>>> USE_CLANG=true
>>>> LFLAGS=-Xlinker -lstdc++
>>>> USE_PRECOMPILED_HEADER=0
>>>>
>>>> Here's the log:
>>>>
>>>> Excluding com.oracle.graal.api.meta.jdk8.test from build (Java compliance level 1.8 required)
>>>> Excluding com.oracle.graal.hotspot.jdk8.test from build (Java compliance level 1.8 required)
>>>> cd /Users/mario/Work/Eclipse/graal/make; \
>>>> /Applications/Xcode.app/Contents/Developer/usr/bin/make BUILD_DIR=/Users/mario/Work/Eclipse/graal/build/bsd/bsd_amd64_compiler2 BUILD_FLAVOR=product VM_TARGET=product generic_build2
>>>> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>>>>
>>>> python2.7 -u /Users/mario/Work/Eclipse/graal/mxtool/mx.py build --no-native --export-dir /Users/mario/Work/Eclipse/graal/build/bsd/shared
>>>> Excluding com.oracle.graal.api.meta.jdk8.test from build (Java compliance level 1.8 required)
>>>> Excluding com.oracle.graal.hotspot.jdk8.test from build (Java compliance level 1.8 required)
>>>> mkdir -p /Users/mario/Work/Eclipse/graal/build/bsd
>>>> cd /Users/mario/Work/Eclipse/graal/build/bsd; \
>>>> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f /Users/mario/Work/Eclipse/graal/make/bsd/Makefile \
>>>> LP64=1 MACOSX_UNIVERSAL=true BOOTDIR=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home OUTPUTDIR=/Users/mario/Work/Eclipse/graal/build/bsd GAMMADIR=/Users/mario/Work/Eclipse/graal MAKE_VERBOSE= HOTSPOT_RELEASE_VERSION=25.0-b59 JRE_RELEASE_VERSION="1.8.0" HOTSPOT_BUILD_VERSION=internal product
>>>> INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
>>>>
>>>> cd bsd_amd64_compiler2/product && /Applications/Xcode.app/Contents/Developer/usr/bin/make " LP64=1 "
>>>> /Users/mario/Work/Eclipse/graal/build/bsd/bsd_amd64_compiler2/product
>>>> Rescanned ../generated/adfiles/bsd_x86_64.ad but encountered no changes.
>>>> make[4]: Nothing to be done for `all'.
>>>> make[4]: Nothing to be done for `all'.
>>>> if [ -d /Users/mario/Work/Eclipse/graal/agent -a "x86" != "ia64" \
>>>> -a "x86" != "arm" \
>>>> -a "x86" != "ppc" \
>>>> -a "x86" != "zero" ] ; then \
>>>> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f sa.make /Users/mario/Work/Eclipse/graal/build/bsd/bsd_amd64_compiler2/product/../generated/sa-jdi.jar; \
>>>> fi
>>>> make[5]: `/Users/mario/Work/Eclipse/graal/build/bsd/bsd_amd64_compiler2/product/../generated/sa-jdi.jar' is up to date.
>>>> echo "dtrace headers generated"
>>>> dtrace headers generated
>>>> Compiling /Users/mario/Work/Eclipse/graal/src/share/vm/compiler/abstractCompiler.cpp
>>>> Compiling /Users/mario/Work/Eclipse/graal/src/share/vm/utilities/accessFlags.cpp
>>>> Compiling ../generated/adfiles/ad_x86_64.cpp
>>>> Compiling ../generated/adfiles/ad_x86_64_clone.cpp
>>>> Compiling ../generated/adfiles/ad_x86_64_expand.cpp
>>>> Compiling ../generated/adfiles/ad_x86_64_format.cpp
>>>> Compiling ../generated/adfiles/ad_x86_64_gen.cpp
>>>> Compiling ../generated/adfiles/ad_x86_64_misc.cpp
>>>> clang: error: unable to execute command: Segmentation fault: 11
>>>>
>>>> clang: error: clang frontend command failed due to signal (use -v to see invocation)
>>>>
>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>
>>>> Target: x86_64-apple-darwin13.0.0
>>>>
>>>> Thread model: posix
>>>>
>>>> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
>>>>
>>>> clang: error: unable to execute command: Segmentation fault: 11
>>>>
>>>> clang: error: clang frontend command failed due to signal (use -v to see invocation)
>>>>
>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>
>>>> Target: x86_64-apple-darwin13.0.0
>>>>
>>>> Thread model: posix
>>>>
>>>> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
>>>>
>>>> clang: error: unable to execute command: Segmentation fault: 11
>>>>
>>>> clang: error: clang frontend command failed due to signal (use -v to see invocation)
>>>>
>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>
>>>> Target: x86_64-apple-darwin13.0.0
>>>>
>>>> Thread model: posix
>>>>
>>>> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>> ********************
>>>>
>>>>
>>>>
>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>
>>>> Preprocessed source(s) and associated run script(s) are located at:
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_misc-Gp9I3v.cpp
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_misc-Gp9I3v.sh
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>>
>>>>
>>>> ********************
>>>>
>>>> make[4]: *** [ad_x86_64_misc.o] Error 254
>>>>
>>>> make[4]: *** Waiting for unfinished jobs....
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>> ********************
>>>>
>>>>
>>>>
>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>
>>>> Preprocessed source(s) and associated run script(s) are located at:
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_gen-m6LuAu.cpp
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_gen-m6LuAu.sh
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>>
>>>>
>>>> ********************
>>>>
>>>> make[4]: *** [ad_x86_64_gen.o] Error 254
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>> ********************
>>>>
>>>>
>>>>
>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>
>>>> Preprocessed source(s) and associated run script(s) are located at:
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64-xGEQOn.cpp
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64-xGEQOn.sh
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>>
>>>>
>>>> ********************
>>>>
>>>> make[4]: *** [ad_x86_64.o] Error 254
>>>>
>>>> clang: error: unable to execute command: Segmentation fault: 11
>>>>
>>>> clang: error: clang frontend command failed due to signal (use -v to see invocation)
>>>>
>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>
>>>> Target: x86_64-apple-darwin13.0.0
>>>>
>>>> Thread model: posix
>>>>
>>>> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>> ********************
>>>>
>>>>
>>>>
>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>
>>>> Preprocessed source(s) and associated run script(s) are located at:
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_expand-nHh9gT.cpp
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_expand-nHh9gT.sh
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>>
>>>>
>>>> ********************
>>>>
>>>> make[4]: *** [ad_x86_64_expand.o] Error 254
>>>>
>>>> clang: error: unable to execute command: Segmentation fault: 11
>>>>
>>>> clang: error: clang frontend command failed due to signal (use -v to see invocation)
>>>>
>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>
>>>> Target: x86_64-apple-darwin13.0.0
>>>>
>>>> Thread model: posix
>>>>
>>>> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>> ********************
>>>>
>>>>
>>>>
>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>
>>>> Preprocessed source(s) and associated run script(s) are located at:
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/abstractCompiler-D5yMGV.cpp
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/abstractCompiler-D5yMGV.sh
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>>
>>>>
>>>> ********************
>>>>
>>>> make[4]: *** [abstractCompiler.o] Error 254
>>>>
>>>> clang: error: unable to execute command: Segmentation fault: 11
>>>>
>>>> clang: error: clang frontend command failed due to signal (use -v to see invocation)
>>>>
>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>
>>>> Target: x86_64-apple-darwin13.0.0
>>>>
>>>> Thread model: posix
>>>>
>>>> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>> ********************
>>>>
>>>>
>>>>
>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>
>>>> Preprocessed source(s) and associated run script(s) are located at:
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/accessFlags-Qe6EXv.cpp
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/accessFlags-Qe6EXv.sh
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>>
>>>>
>>>> ********************
>>>>
>>>> make[4]: *** [accessFlags.o] Error 254
>>>>
>>>> clang: error: unable to execute command: Segmentation fault: 11
>>>>
>>>> clang: error: clang frontend command failed due to signal (use -v to see invocation)
>>>>
>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>
>>>> Target: x86_64-apple-darwin13.0.0
>>>>
>>>> Thread model: posix
>>>>
>>>> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>> ********************
>>>>
>>>>
>>>>
>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>
>>>> Preprocessed source(s) and associated run script(s) are located at:
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_clone-ZZQteN.cpp
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_clone-ZZQteN.sh
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>>
>>>>
>>>> ********************
>>>>
>>>> make[4]: *** [ad_x86_64_clone.o] Error 254
>>>>
>>>> clang: error: unable to execute command: Segmentation fault: 11
>>>>
>>>> clang: error: clang frontend command failed due to signal (use -v to see invocation)
>>>>
>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>
>>>> Target: x86_64-apple-darwin13.0.0
>>>>
>>>> Thread model: posix
>>>>
>>>> clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>> ********************
>>>>
>>>>
>>>>
>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>
>>>> Preprocessed source(s) and associated run script(s) are located at:
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_format-1WEK2i.cpp
>>>>
>>>> clang: note: diagnostic msg: /var/folders/6f/v22tl__c8xj4030059bb3q1r000rbc/T/ad_x86_64_format-1WEK2i.sh
>>>>
>>>> clang: note: diagnostic msg:
>>>>
>>>>
>>>>
>>>> ********************
>>>>
>>>> make[4]: *** [ad_x86_64_format.o] Error 254
>>>>
>>>> make[3]: *** [the_vm] Error 2
>>>>
>>>> make[2]: *** [product] Error 2
>>>>
>>>> make[1]: *** [generic_build2] Error 2
>>>>
>>>> make: *** [product] Error 2
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
More information about the graal-dev
mailing list