Bug 197396 - clang failure building kernel sys/dev/hptmv
Summary: clang failure building kernel sys/dev/hptmv
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-07 16:50 UTC by Sean Bruno
Modified: 2015-02-20 17:02 UTC (History)
1 user (show)

See Also:


Attachments
tar of c source file and shell script from clang35 (227.57 KB, text/plain)
2015-02-07 16:52 UTC, Sean Bruno
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer freebsd_triage 2015-02-07 16:50:07 UTC
Cannot emit physreg copy instruction
UNREACHABLE executed at /usr/src/lib/clang/libllvmx86codegen/../../../contrib/llvm/lib/Target/X86/X86InstrInfo.cpp:3176!
Stack dump:
0.      Program arguments: /usr/obj/usr/src/tmp/usr/bin/cc -cc1 -triple x86_64-unknown-freebsd11.0 -emit-obj -mrelax-all -disable-free -main-file-name hptproc.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -mcode-model kernel -target-cpu x86-64 -target-feature -mmx -target-feature -sse -target-feature -aes -target-feature -avx -disable-red-zone -no-implicit-float -gdwarf-2 -dwarf-column-info -coverage-file /usr/obj/usr/src/sys/TASTY/modules/usr/src/sys/modules/hptmv/hptproc.o -nostdsysteminc -nobuiltininc -resource-dir /usr/obj/usr/src/tmp/usr/bin/../lib/clang/3.5.1 -include /usr/obj/usr/src/sys/TASTY/opt_global.h -D _KERNEL -D KLD_MODULE -D HAVE_KERNEL_OPTION_HEADERS -I . -I /usr/src/sys -I /usr/src/sys/contrib/altq -I /usr/obj/usr/src/sys/TASTY -isysroot /usr/obj/usr/src/tmp -Werror -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -Wmissing-include-dirs -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -fdebug-compilation-dir /usr/obj/usr/src/sys/TASTY/modules/usr/src/sys/modules/hptmv -ferror-limit 19 -fmessage-length 0 -ffreestanding -fformat-extensions -fwrapv -stack-protector 1 -mstackrealign -fobjc-runtime=gnustep -fno-common -fdiagnostics-show-option -o hptproc.o -x c /usr/src/sys/modules/hptmv/../../dev/hptmv/hptproc.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module '/usr/src/sys/modules/hptmv/../../dev/hptmv/hptproc.c'.
4.      Running pass 'Post-RA pseudo instruction expansion pass' on function '@hpt_proc_in'
cc: error: unable to execute command: Abort trap (core dumped)
cc: 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: x86_64-unknown-freebsd11.0
Thread model: posix
cc: 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.
cc: note: diagnostic msg: 
********************

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

********************
--- hptproc.o ---
*** [hptproc.o] Error code 254

make[4]: stopped in /usr/src/sys/modules/hptmv
1 error
Comment 1 Sean Bruno freebsd_committer freebsd_triage 2015-02-07 16:52:02 UTC
Created attachment 152679 [details]
tar of c source file and shell script from clang35
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2015-02-07 23:52:07 UTC
Offending commit was reverted, I'll close this in a week if we don't want to use this as a tracking bug.