Date: Wed, 3 May 2017 07:27:48 -0700 From: Mark Millard <markmi@dsl-only.net> To: FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: FYI: head -r317729 for powerpc (via clang) gets "clang frontend command failed due to signal" Message-ID: <CCB78182-BC6B-432D-A0E2-4148F5FE709D@dsl-only.net>
next in thread | raw e-mail | index | archive | help
I've made a llvm bugzilla submittal for the following: 32908 Attempting a buildworld buildkernel for TARGET_ARCH=3Dpowerpc for head -r317729 got. . . --- all_subdir_mpt --- Building = /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/m= odules/usr/src/sys/modules/mpt/mpt_cam.o --- mpt_cam.o --- cc: error: unable to execute command: Segmentation fault (core dumped) --- all_subdir_mqueue --- =3D=3D=3D> 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:=20 ******************** 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:=20 ******************** *** [mpt_cam.o] Error code 254 make[4]: stopped in /usr/src/sys/modules/mpt .ERROR_TARGET=3D'mpt_cam.o' = .ERROR_META_FILE=3D'/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/m= odules/usr/src/sys/modules/mpt/mpt_cam.o.meta # Meta data file = /usr/obj/powerpcvtsc_clang/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODBG/m= odules/usr/src/sys/modules/mpt/mpt_cam.o.meta CMD cc -target powerpc-unknown-freebsd12.0 = --sysroot=3D/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/o= pt_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__=3D__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=3Diso9899: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/m= odules/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:=20 ******************** 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:=20 ******************** *** 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=3Dpowerpc-unknown-freebsd12.0" = "--sysroot=3D/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__=3D__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=3Diso9899: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=3Dstandalone" "-dwarf-version=3D2" = "-debugger-tuning=3Dgdb" "-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/cla= ng/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__=3D__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=3Diso9899: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=3Dgnustep" "-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=3Dstandalone" "-dwarf-version=3D2" = "-debugger-tuning=3Dgdb" "-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__=3D__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=3Diso9899:1999" = "-ferror-limit" "19" "-fmessage-length" "0" "-ffreestanding" "-fwrapv" = "-stack-protector" "1" "-fno-signed-char" "-fobjc-runtime=3Dgnustep" = "-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 .) =3D=3D=3D Mark Millard markmi at dsl-only.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CCB78182-BC6B-432D-A0E2-4148F5FE709D>