Bug 197527

Summary: www/webkit2-gtk3 cross compile clang 3.5 failure detected
Product: Base System Reporter: Sean Bruno <sbruno>
Component: armAssignee: freebsd-arm (Nobody) <freebsd-arm>
Status: Closed FIXED    
Severity: Affects Only Me CC: dim, kwm
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
URL: http://chips.ysv.freebsd.org/data/11armv6-11armv6/2015-02-06_22h08m16s/logs/webkit2-gtk3-2.6.5.log
Attachments:
Description Flags
tar archive of the c and sh files. none

Description Sean Bruno freebsd_committer freebsd_triage 2015-02-10 20:08:11 UTC
I'll update a test instance and get more data along with the diagnostic files.  This is a place holder until I do.

[ 12%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/llint/LowLevelInterpreter.cpp.o
Assertion failed: (LIsBuiltins && RIsBuiltins && "Non-built-in locations must be rooted in the main file"), function isBeforeInTranslationUnit, file /usr/local/poudriere/jails/11armv6/usr/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp, line 2100.
Stack dump:
0.	Program arguments: /nxb-bin/usr/bin/c++ -cc1 -triple armv6--freebsd11.0-gnueabi -emit-obj -mrelax-all -disable-free -main-file-name LowLevelInterpreter.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu arm1176jzf-s -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -target-feature -crypto -target-abi aapcs-linux -msoft-float -mfloat-abi soft -dwarf-column-info -coverage-file /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/llint/LowLevelInterpreter.cpp.o -resource-dir /nxb-bin/usr/bin/../lib/clang/3.5.0 -D BUILDING_GTK__=1 -D BUILDING_JavaScriptCore -D BUILDING_WITH_CMAKE=1 -D DATA_DIR="share" -D ENABLE_3D_RENDERING=1 -D ENABLE_PLUGIN_PROCESS_GTK2=1 -D GETTEXT_PACKAGE="WebKit2GTK-4.0" -D HAVE_CONFIG_H=1 -D JavaScriptCore_EXPORTS -D MOZ_X11=1 -D STATICALLY_LINKED_WITH_WTF -D USER_AGENT_GTK_MAJOR_VERSION=601 -D USER_AGENT_GTK_MINOR_VERSION=1 -D WEBKITGTK_API_VERSION_STRING="4.0" -D WTF_PLATFORM_X11=1 -D WTF_USE_3D_GRAPHICS=1 -D WTF_USE_EGL=1 -D WTF_USE_GSTREAMER -D WTF_USE_OPENGL=1 -D WTF_USE_TEXTURE_MAPPER=1 -D WTF_USE_TEXTURE_MAPPER_GL=1 -D WTF_USE_WEBAUDIO_GSTREAMER -D XP_UNIX -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5 -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/API -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/ForwardingHeaders -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/assembler -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/bindings -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/builtins -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/bytecode -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/bytecompiler -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/dfg -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/disassembler -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/ftl -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/heap -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/debugger -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/inspector -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/inspector/agents -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/inspector/remote -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/interpreter -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/jit -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/llint -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/llvm -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/parser -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/profiler -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/replay -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/runtime -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/tools -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/yarr -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/WTF -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/DerivedSources -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/DerivedSources/ForwardingHeaders -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/DerivedSources/JavaScriptCore -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/DerivedSources/JavaScriptCore/inspector -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source -I /usr/local/include -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/disassembler/udis86 -I /usr/local/include/glib-2.0 -I /usr/local/lib/glib-2.0/include -internal-isystem /usr/include/c++/v1 -Wall -Wextra -Wcast-align -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wundef -Wwrite-strings -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-signed-char -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o CMakeFiles/JavaScriptCore.dir/llint/LowLevelInterpreter.cpp.o -x c++ /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp 
1.	<eof> parser at end of file
2.	Code generation
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.5.0 (tags/RELEASE_350/final 216957) 20141124
Target: armv6--freebsd11.0-gnueabi
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/LowLevelInterpreter-a0bea6.cpp
c++: note: diagnostic msg: /tmp/LowLevelInterpreter-a0bea6.sh
c++: note: diagnostic msg:
Comment 1 Sean Bruno freebsd_committer freebsd_triage 2015-02-10 22:30:23 UTC
Created attachment 152855 [details]
tar archive of the c and sh files.
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2015-02-10 22:30:57 UTC
Yep, its reproducible

[ 14%] Assertion failed: (LIsBuiltins && RIsBuiltins && "Non-built-in locations must be rooted in the main file"), function isBeforeInTranslationUnit, file /usr/local/poudriere/jails/11armv6/usr/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp, line 2100.
Stack dump:
0.      Program arguments: /nxb-bin/usr/bin/c++ -cc1 -triple armv6--freebsd11.0-gnueabi -emit-obj -mrelax-all -disable-free -main-file-name LowLevelInterpreter.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu arm1176jzf-s -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -target-feature -crypto -target-abi aapcs-linux -msoft-float -mfloat-abi soft -dwarf-column-info -coverage-file /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/llint/LowLevelInterpreter.cpp.o -resource-dir /nxb-bin/usr/bin/../lib/clang/3.5.1 -D BUILDING_GTK__=1 -D BUILDING_JavaScriptCore -D BUILDING_WITH_CMAKE=1 -D DATA_DIR="share" -D ENABLE_3D_RENDERING=1 -D ENABLE_PLUGIN_PROCESS_GTK2=1 -D GETTEXT_PACKAGE="WebKit2GTK-4.0" -D HAVE_CONFIG_H=1 -D JavaScriptCore_EXPORTS -D MOZ_X11=1 -D STATICALLY_LINKED_WITH_WTF -D USER_AGENT_GTK_MAJOR_VERSION=601 -D USER_AGENT_GTK_MINOR_VERSION=1 -D WEBKITGTK_API_VERSION_STRING="4.0" -D WTF_PLATFORM_X11=1 -D WTF_USE_3D_GRAPHICS=1 -D WTF_USE_EGL=1 -D WTF_USE_GSTREAMER -D WTF_USE_OPENGL=1 -D WTF_USE_TEXTURE_MAPPER=1 -D WTF_USE_TEXTURE_MAPPER_GL=1 -D WTF_USE_WEBAUDIO_GSTREAMER -D XP_UNIX -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5 -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/API -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/ForwardingHeaders -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/assembler -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/bindings -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/builtins -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/bytecode -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/bytecompiler -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/dfg -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/disassembler -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/ftl -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/heap -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/debugger -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/inspector -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/inspector/agents -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/inspector/remote -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/interpreter -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/jit -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/llint -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/llvm -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/parser -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/profiler -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/replay -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/runtime -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/tools -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/yarr -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/WTF -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/DerivedSources -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/DerivedSources/ForwardingHeaders -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/DerivedSources/JavaScriptCore -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/DerivedSources/JavaScriptCore/inspector -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source -I /usr/local/include -I /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/disassembler/udis86 -I /usr/local/include/glib-2.0 -I /usr/local/lib/glib-2.0/include -internal-isystem /usr/include/c++/v1 -Wall -Wextra -Wcast-align -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wundef -Wwrite-strings -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-signed-char -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o CMakeFiles/JavaScriptCore.dir/llint/LowLevelInterpreter.cpp.o -x c++ /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp 
1.      <eof> parser at end of file
2.      Code generation
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.5.1 (tags/RELEASE_351/final 225668) 20150115
Target: armv6--freebsd11.0-gnueabi
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/assembler/ARMAssembler.cpp.o
[ 14%] c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/LowLevelInterpreter-c732b9.cpp
c++: note: diagnostic msg: /tmp/LowLevelInterpreter-c732b9.sh
c++: note: diagnostic msg: 

********************
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/build.make:12042: recipe for target 'Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/llint/LowLevelInterpreter.cpp.o' failed
gmake[3]: *** [Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/llint/LowLevelInterpreter.cpp.o] Error 254
gmake[3]: *** Waiting for unfinished jobs....
Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/assembler/ARMv7Assembler.cpp.o
gmake[3]: Leaving directory '/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5'
CMakeFiles/Makefile2:344: recipe for target 'Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/all' failed
gmake[2]: *** [Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/all] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5'
Makefile:137: recipe for target 'all' failed
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.6.5'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Comment 3 Dimitry Andric freebsd_committer freebsd_triage 2015-02-12 22:28:08 UTC
This also causes an assert with clang 3.6.0.  I'll verify if it also happens with the latest trunk.
Comment 4 Dimitry Andric freebsd_committer freebsd_triage 2015-02-13 09:22:37 UTC
Still asserts with clang trunk r228967 (as of yesterday). I'll prepare an upstream bug report.
Comment 5 Dimitry Andric freebsd_committer freebsd_triage 2015-02-13 12:08:34 UTC
Reported upstream as: http://llvm.org/PR22576
Comment 6 Sean Bruno freebsd_committer freebsd_triage 2016-02-17 12:58:06 UTC
It appears that we can get past the original assertion now.  There are other issues, but this issue is no longer happening.