From owner-freebsd-bugs@freebsd.org Thu Sep 5 02:30:07 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D429DD53CE for ; Thu, 5 Sep 2019 02:30:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46P4R35Lsgz47bL for ; Thu, 5 Sep 2019 02:30:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B7B29D53CD; Thu, 5 Sep 2019 02:30:07 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B77ADD53CC for ; Thu, 5 Sep 2019 02:30:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46P4R34NH8z47bJ for ; Thu, 5 Sep 2019 02:30:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 767EF25165 for ; Thu, 5 Sep 2019 02:30:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x852U7bq002285 for ; Thu, 5 Sep 2019 02:30:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x852U7Nt002279 for bugs@FreeBSD.org; Thu, 5 Sep 2019 02:30:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240342] clang++ bus error while building LLVM as part of Julia Date: Thu, 05 Sep 2019 02:30:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: alex.arslan@julialang.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2019 02:30:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240342 Bug ID: 240342 Summary: clang++ bus error while building LLVM as part of Julia Product: Base System Version: 11.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: alex.arslan@julialang.org I routinely build Julia (https://julialang.org) from source on FreeBSD using ``` gmake -j4 USECCACHE=3D1 USE_BINARYBUILDER=3D0 ``` The `USE_BINARYBUILDER=3D0` option simply tells the build system to downloa= d and compile the dependencies from source rather than downloading prebuilt, cross-compiled binaries for the dependencies. Without this option, LLVM is = not built from source. Today, doing `git clean -fdx` and rebuilding with the above command proceed= ed as usual for a while but then failed with the following while compiling LLV= M: ``` Scanning dependencies of target LLVMCoverage [ 61%] Building CXX object lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMapping.cpp.o In file included from /usr/home/alex/Projects/julia/deps/srccache/llvm-6.0.1/lib/ProfileData/Cove= rage/CoverageMapping.cpp:15: /usr/home/alex/Projects/julia/deps/srccache/llvm-6.0.1/include/llvm/Profile= Data/Coverage/CoverageMapping.h:643:25: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted] LineCoverageIterator &operator=3D(const LineCoverageIterator &R) =3D defa= ult; ^ /usr/home/alex/Projects/julia/deps/srccache/llvm-6.0.1/include/llvm/Profile= Data/Coverage/CoverageMapping.h:663:23: note: copy assignment operator of 'LineCoverageIterator' is implicitly dele= ted because field 'CD' is of reference type 'const llvm::coverage::CoverageData= &' const CoverageData &CD; ^ clang++: error: unable to execute command: Bus error (core dumped) clang++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0) Target: x86_64-unknown-freebsd11.3 Thread model: posix InstalledDir: /usr/bin clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preproces= sed source, and associated run script. clang++: note: diagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/CoverageMapping-01cfc3.cpp clang++: note: diagnostic msg: /tmp/CoverageMapping-01cfc3.sh clang++: note: diagnostic msg:=20 ******************** [ 61%] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/PtrUseVisitor.cpp.o gmake[4]: *** [lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/build.make:63: lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMapping.cpp.o] Error 254 gmake[3]: *** [CMakeFiles/Makefile2:9480: lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/all] Error 2 ``` The requested attachments are at https://gist.github.com/ararslan/ee6b157f8868a45ad865cfa9b3756f35 --=20 You are receiving this mail because: You are the assignee for the bug.=