FYI: head -r317729 for powerpc (via clang) gets "clang frontend command failed due to signal"
Mark Millard
markmi at dsl-only.net
Wed May 3 14:27:52 UTC 2017
I've made a llvm bugzilla submittal for the following: 32908
Attempting a buildworld buildkernel for TARGET_ARCH=powerpc for
head -r317729 got. . .
--- all_subdir_mpt ---
Building /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/mpt/mpt_cam.o
--- mpt_cam.o ---
cc: error: unable to execute command: Segmentation fault (core dumped)
--- all_subdir_mqueue ---
===> mqueue (all)
--- all_subdir_mpt ---
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
Target: powerpc-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp/usr/bin
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.
--- all_subdir_mpt ---
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/mpt_cam-56fad4.c
cc: note: diagnostic msg: /tmp/mpt_cam-56fad4.sh
cc: note: diagnostic msg:
********************
*** [mpt_cam.o] Error code 254
make[4]: stopped in /usr/src/sys/modules/mpt
.ERROR_TARGET='mpt_cam.o'
.ERROR_META_FILE='/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/mpt/mpt_cam.o.meta'
# ls -lTt /tmp/mpt*
-rw-r--r-- 1 root wheel 4894 May 3 06:58:09 2017 /tmp/mpt_cam-56fad4.sh
-rw-r--r-- 1 root wheel 1855254 May 3 06:58:09 2017 /tmp/mpt_cam-56fad4.c
# more /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/mpt/mpt_cam.o.meta
# Meta data file /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/mpt/mpt_cam.o.meta
CMD cc -target powerpc-unknown-freebsd12.0 --sysroot=/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp -B/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp/usr/bin -O2 -pipe -fno-strict-aliasing -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/opt_global.h -I. -I/usr/src/sys -fno-common -g -fno-omit-frame-pointer -I/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG -mno-altivec -msoft-float -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-member -std=iso9899:1999 -c /usr/src/sys/dev/mpt/mpt_cam.c -o mpt_cam.o
CMD ctfconvert -L VERSION -g mpt_cam.o
CWD /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/mpt
TARGET mpt_cam.o
-- command output --
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
Target: powerpc-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp/usr/bin
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/mpt_cam-56fad4.c
cc: note: diagnostic msg: /tmp/mpt_cam-56fad4.sh
cc: note: diagnostic msg:
********************
*** Error code 254
# more /tmp/mpt_cam-56fad4.sh
# Crash reproducer for FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
# Driver args: "--target=powerpc-unknown-freebsd12.0" "--sysroot=/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp" "-B" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp/usr/bin" "-O2" "-pipe" "-fno-strict-aliasing" "-D" "_KERNEL" "-D" "KLD_MODULE" "-nostdinc" "-D" "HAVE_KERNEL_OPTION_HEADERS" "-include" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/opt_global.h" "-I" "." "-I" "/usr/src/sys" "-fno-common" "-g" "-fno-omit-frame-pointer" "-I" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG" "-fno-altivec" "-msoft-float" "-ffreestanding" "-fwrapv" "-fstack-protector" "-gdwarf-2" "-Wall" "-Wredundant-decls" "-Wnested-externs" "-Wstrict-prototypes" "-Wmissing-prototypes" "-Wpointer-arith" "-Winline" "-Wcast-qual" "-Wundef" "-Wno-pointer-sign" "-D" "__printf__=__freebsd_kprintf__" "-Wmissing-include-dirs" "-fdiagnostics-show-option" "-Wno-unknown-pragmas" "-Wno-error-tautological-compare" "-Wno-error-empty-body" "-Wno-error-parentheses-equality" "-Wno-error-unused-function" "-Wno-error-pointer-sign" "-Wno-error-shift-negative-value" "-Wno-error-address-of-packed-member" "-std=iso9899:1999" "-c" "/usr/src/sys/dev/mpt/mpt_cam.c" "-o" "mpt_cam.o"
# Original command: "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp/usr/bin/cc" "-cc1" "-triple" "powerpc-unknown-freebsd12.0" "-emit-obj" "-disable-free" "-main-file-name" "mpt_cam.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-relaxed-aliasing" "-masm-verbose" "-mconstructor-aliases" "-target-cpu" "ppc" "-target-feature" "-hard-float" "-target-feature" "-altivec" "-msoft-float" "-mfloat-abi" "soft" "-dwarf-column-info" "-debug-info-kind=standalone" "-dwarf-version=2" "-debugger-tuning=gdb" "-coverage-notes-file" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/mpt/mpt_cam.gcno" "-nostdsysteminc" "-nobuiltininc" "-resource-dir" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp/usr/bin/../lib/clang/4.0.0" "-include" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/opt_global.h" "-D" "_KERNEL" "-D" "KLD_MODULE" "-D" "HAVE_KERNEL_OPTION_HEADERS" "-I" "." "-I" "/usr/src/sys" "-I" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG" "-D" "__printf__=__freebsd_kprintf__" "-isysroot" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp" "-O2" "-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" "-Wno-error-shift-negative-value" "-Wno-error-address-of-packed-member" "-std=iso9899:1999" "-fdebug-compilation-dir" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/mpt" "-ferror-limit" "19" "-fmessage-length" "0" "-ffreestanding" "-fwrapv" "-stack-protector" "1" "-fno-signed-char" "-fobjc-runtime=gnustep" "-fno-common" "-fdiagnostics-show-option" "-vectorize-loops" "-vectorize-slp" "-o" "mpt_cam.o" "-x" "c" "/usr/src/sys/dev/mpt/mpt_cam.c"
"/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/tmp/usr/bin/cc" "-cc1" "-triple" "powerpc-unknown-freebsd12.0" "-emit-obj" "-disable-free" "-main-file-name" "mpt_cam.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-relaxed-aliasing" "-masm-verbose" "-mconstructor-aliases" "-target-cpu" "ppc" "-target-feature" "-hard-float" "-target-feature" "-altivec" "-msoft-float" "-mfloat-abi" "soft" "-dwarf-column-info" "-debug-info-kind=standalone" "-dwarf-version=2" "-debugger-tuning=gdb" "-coverage-notes-file" "/usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/modules/usr/src/sys/modules/mpt/mpt_cam.gcno" "-nostdsysteminc" "-nobuiltininc" "-D" "_KERNEL" "-D" "KLD_MODULE" "-D" "HAVE_KERNEL_OPTION_HEADERS" "-D" "__printf__=__freebsd_kprintf__" "-O2" "-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" "-Wno-error-shift-negative-value" "-Wno-error-address-of-packed-member" "-std=iso9899:1999" "-ferror-limit" "19" "-fmessage-length" "0" "-ffreestanding" "-fwrapv" "-stack-protector" "1" "-fno-signed-char" "-fobjc-runtime=gnustep" "-fno-common" "-fdiagnostics-show-option" "-vectorize-loops" "-vectorize-slp" "-x" "c" "mpt_cam-56fad4.c"
(The clang self-saved .c is too big to be here. A .xz variant
is in llvm's 32908 .)
===
Mark Millard
markmi at dsl-only.net
More information about the freebsd-ppc
mailing list