From owner-freebsd-arm@freebsd.org Wed Oct 17 17:18:30 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A6B910DA629 for ; Wed, 17 Oct 2018 17:18:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-20.consmr.mail.ne1.yahoo.com (sonic315-20.consmr.mail.ne1.yahoo.com [66.163.190.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DDC6A87696 for ; Wed, 17 Oct 2018 17:18:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: HbM6y04VM1kXyix9qnrf2SYPoWR3.rfTd5PErfOgBRX0kH8UVaa9Yeer12r2DrI 0pJ2JSRg65NtzUWvyCGOlmsfz7toJVtDnRyU6eQLpMUksG5NG.zc09ZM8Wyzy8d0dtZq1DcSQJfx efHwpL2089Ku5Mj2PduzM5AMocgSiqGzJKyMipbjwuoT6Sv7xFYsJC43k8DvXSJBIR3m4cYGI4s4 EnsFwwsF9pv_C8wpu2mN2fiGQGkNEmLPZOV0ZwsyRTT1PCbiOe83xVeFItgfngs4ozVIC6EPC50i .VD_kU_ihFDG3xhpwsuPwBZSyG.f6u_P7.tiPD8VIT8YcXKDNCP327Bmx9S007L7oaAtPixpb9br GrrlUcsztKmfNaxERwVYYQMJtBQFEBw4qI9xJ7hUkwJ724FsnrCTgdzIDBJ3GXnhdm.G7CH5a6IA 8gMNzS7HNcVVkUYoqhcJqadmM63MbiZkTHL4iNn1BL87R8S84tPMNe4KNvk0Nw5Ns6I1gIChgPeX 7BRGID1V4IBeEX1lWFok3iwhhnb3Ze1yf0PuLKytSkNihOKBBj4iM8qXJWHJQ4KpJawjuOeUz.RS os6eJg58sjMdFX7Y9uQQsoapMGwPl1vZDxHKXRci6MSmoWtF2jU4hwSF2FiIyiiTLT5CkeOTSORT 1ToQc_JG4UmaiaI.gJk2d.IRLqJZ6u9haRWPqzKSqybXfjr72LXm9hr6ooOLLubjTAVGn61GFVLy Tci3xFk0O3JljeZVE9TwzQw20.g5Ne.i6bns3Hl0rG3eNyzlJPLY6vWSoJprNc5oRlZVWpJ2pg_p zTUmSzFwT.4xjsXhPtlRPMj7Z5CRAnwLrCvBifV6Z4ploMhcvuFFgXALJhZwSOIaQeIjC65gqhQ2 TCV5bYmzg2q4mwEh09wT2O6kwUDrbdz2YM4QYVYLGc1x60GTwHvVmDIPeD6iv3NQqRArAY9WUrq8 h5XluuYcVF2C2YVqCuvje0eFh_wWT4KJfUbhHRflvEsDTd5G.EpGJ2F4gwXQbuWuZAnYKTow1jws j0Ue4Rw6ttPVh50fV2EdbQ2pfHcdKklufQoWHmlYKNR5F.hDTWXMnF04b4O091In1muOFjaZrigH oOkTj2yaAASPq Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Wed, 17 Oct 2018 17:18:23 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp405.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID bb87a18dd3e46dfebabba7ce2ffcfc3d; Wed, 17 Oct 2018 17:18:20 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Clang segfaults on RPI3 in Alpha9 during buildworld From: Mark Millard In-Reply-To: <20181017153116.GA61147@www.zefox.net> Date: Wed, 17 Oct 2018 10:18:18 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <3FEA7FF0-2BF7-4517-A8C1-B68C802CF984@yahoo.com> References: <20181017153116.GA61147@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2018 17:18:30 -0000 On 2018-Oct-17, at 8:31 AM, bob prohaska wrote: > The last several attempts to build world on an RPI3 running = 12.0-ALPHA9 r339305 GENERIC arm64 > have stopped with: >=20 > --- Target/X86/X86LegalizerInfo.o --- > c++ -target aarch64-unknown-freebsd12.0 = --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp = -B/usr/obj/usr/src/arm64.aarch64/ > tmp/usr/bin -O2 -pipe = -I/usr/obj/usr/src/arm64.aarch64/lib/clang/libllvm = -I/usr/src/contrib/llvm/lib/Target/AArch64 -I > /usr/src/contrib/llvm/lib/Target/ARM = -I/usr/src/contrib/llvm/lib/Target/Mips = -I/usr/src/contrib/llvm/lib/Target/PowerPC > -I/usr/src/contrib/llvm/lib/Target/Sparc = -I/usr/src/contrib/llvm/lib/Target/X86 -I/usr/src/lib/clang/include = -I/usr/sr > c/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_LIMIT_MACROS = -D__STDC_CONSTANT_MACROS -DLLVM_DEFAULT_TARGET_TR > IPLE=3D\"aarch64-unknown-freebsd12.0\" = -DLLVM_HOST_TRIPLE=3D\"aarch64-unknown-freebsd12.0\" = -DDEFAULT_SYSROOT=3D\"\" -DLLVM_T > ARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM = -DLLVM_TARGET_ENABLE_MIPS -DLLVM_TARGET_ENABLE_POWERPC = -DLLVM_TARGET_ENAB > LE_SPARC -DLLVM_TARGET_ENABLE_X86 = -DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeAArch64AsmParser = -DLLVM_NATIVE_ASMPRINTER=3DLLVMI > nitializeAArch64AsmPrinter = -DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeAArch64Disassembler = -DLLVM_NATIVE_TARGET=3DLLVMInitia > lizeAArch64Target = -DLLVM_NATIVE_TARGETINFO=3DLLVMInitializeAArch64TargetInfo = -DLLVM_NATIVE_TARGETMC=3DLLVMInitializeAArch64 > TargetMC -ffunction-sections -fdata-sections -gline-tables-only -MD = -MF.depend.Target_X86_X86LegalizerInfo.o -MTTarget/ > X86/X86LegalizerInfo.o -fstack-protector-strong -Qunused-arguments = -std=3Dc++11 -fno-exceptions -fno-rtti -gline-tables- > only -stdlib=3Dlibc++ -Wno-c++11-extensions -c = /usr/src/contrib/llvm/lib/Target/X86/X86LegalizerInfo.cpp -o = Target/X86/X > 86LegalizerInfo.o > --- Target/X86/X86ISelDAGToDAG.o --- > c++: error: unable to execute command: Segmentation fault (core = dumped) > c++: error: clang frontend command failed due to signal (use -v to see = invocation) > FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on = LLVM 6.0.1) > Target: aarch64-unknown-freebsd12.0 > Thread model: posix > InstalledDir: /usr/bin >=20 > So far I'm stuck, is there a workaround? So far I've tried compiling = kernel-toolchain and > updating the kernel alone, but that didn't seem to help. >=20 When clang fails it sometimes produces text like: 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/control-696205.c cc: note: diagnostic msg: /tmp/control-696205.sh cc: note: diagnostic msg:=20 ******************** *** [control.lo] Error code 1 The .c and .sh files are intended to help reproduce the problem without being part of a grander operation like buildworld. (The names of the .c and .h vary from run to run.) Did your example produce such messages? If yes, you may want to provide some sort of access to the files. if no, you may want to report that. Sometimes the .c is big enough to justify compression if it is to go into, say, a FreeBSD bugzilla submittal. Some people bundle the two files into one compressed file. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)