From owner-freebsd-toolchain@freebsd.org Tue Jul 19 17:38:40 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CC50B9EA2B for ; Tue, 19 Jul 2016 17:38:40 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 125241E43 for ; Tue, 19 Jul 2016 17:38:40 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from [134.153.27.124] (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id C99891D43 for ; Tue, 19 Jul 2016 17:38:39 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) From: "Jonathan Anderson" To: freebsd-toolchain@freebsd.org Subject: LLDB build failure Date: Tue, 19 Jul 2016 15:10:26 -0230 Message-ID: MIME-Version: 1.0 X-Mailer: MailMate (1.9.4r5234) Content-Type: text/plain; format=flowed; markup=markdown X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 17:38:40 -0000 Hello toolchain@, When building a recent (r275944) LLDB on stable/11, I've encountered build failures in tools/lldb-mi (missing symbol llvm_regexec, need to link against LLVMSupport). This problem doesn't occur on (at least) OS X, so perhaps the LLVM build bots don't see it. It looks like the fix is pretty simple: ```diff --- a/tools/lldb-mi/CMakeLists.txt +++ b/tools/lldb-mi/CMakeLists.txt @@ -89,6 +89,10 @@ if ( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" ) target_link_libraries(lldb-mi pthread) endif () +if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" ) + set(LLVM_LINK_COMPONENTS support) +endif () + llvm_config(lldb-mi ${LLVM_LINK_COMPONENTS}) set_target_properties(lldb-mi PROPERTIES VERSION ${LLDB_VERSION}) ``` Is this problem the result of some misunderstanding on my part, or is it a valid issue that I should take upstream (together with the above patch)? Jon -- Jonathan Anderson jonathan@FreeBSD.org From owner-freebsd-toolchain@freebsd.org Tue Jul 19 20:37:31 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A150CB9E293 for ; Tue, 19 Jul 2016 20:37:31 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64EF61F42; Tue, 19 Jul 2016 20:37:31 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x22d.google.com with SMTP id 38so29919905iol.0; Tue, 19 Jul 2016 13:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=HmekXR8yLrpU8rvIcSRyh0V3ZmbdgyXFB3l4Ab25OE0=; b=XyYbH/JpAdz5oWT1+PKc+3rLoOT33dHO9FIMbYBtSlGPLd3INu82r8FGvTIa51VtTJ s+ZU+n6kuPTDUZVgdwBf+5KIHGnHMh56G7RqB0lk/yDV0+AWXRvwnGZF07j5wTlU+jGC qwE+2M9oaBrLEIocLAaLeX8LKZFZsaMdsN611AT41wXThIgxpWvP2u8Ta02PzSdsyJTQ Ph4s5y/9sxb0MXMuuKl3uHsxgzVdAW6CouT96B7McmEJYO6opuu4Cb368w2Ri7CV8TGL TC+6g9NqgoCnmD8kV8lBS2fk2Zpzm+ZPdkiJJWKm0SmWWshNBfMJmN7DwipMzTYHVZfO hQBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=HmekXR8yLrpU8rvIcSRyh0V3ZmbdgyXFB3l4Ab25OE0=; b=b5nUynZAhOFTMZ+cX1GMXsXFqft6ETYhMCN1s/wi3VogiBze7bjklN9GOUyGVajY6x hyiyr5YXsTlisbfommzxIyOq4paGl6VB30aImtKvFms9eD+7GE/yiN8bQ1y7I92x9ui7 VA1ec99Z+zrpCxpjU1fBEMV3/3EyBXAk1FLm9qSlMlW8RDnzG7BpbBnLTz/aj9g+R97m lFcuANqzfvdbQ1g1Rj393PgRbfHcxRAUxkQbf01i+uY9f/uGyzY628x4+01BlkDVLytz uT5gsdfnbLwhtHS9H7stFU0XP/jhvs1HL1mn1K2rV6YVcgfcrPSUu01RRMmtWdioWnxH 3Jog== X-Gm-Message-State: ALyK8tIdqAsax2zQdBjAUmIrh0wmmhwv2Nl+ZwCeYqGJh6ymoMru9H+zeWoP+pFCc9J0RFh6xrjaWEgPMc2elg== X-Received: by 10.107.31.130 with SMTP id f124mr10923167iof.180.1468960650539; Tue, 19 Jul 2016 13:37:30 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.138.28 with HTTP; Tue, 19 Jul 2016 13:37:11 -0700 (PDT) In-Reply-To: References: From: Ed Maste Date: Tue, 19 Jul 2016 16:37:11 -0400 X-Google-Sender-Auth: QGDzH4XMFBEiSRJN64AWoK-I9uE Message-ID: Subject: Re: LLDB build failure To: Jonathan Anderson Cc: "freebsd-toolchain@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 20:37:31 -0000 On 19 July 2016 at 13:40, Jonathan Anderson wrote: > Hello toolchain@, > > When building a recent (r275944) LLDB on stable/11, I've encountered build > failures in tools/lldb-mi (missing symbol llvm_regexec, need to link against > LLVMSupport). This problem doesn't occur on (at least) OS X, so perhaps the > LLVM build bots don't see it. We have a FreeBSD 11 LLDB build bot, which was green as of r272672: http://lab.llvm.org:8011/builders/lldb-amd64-ninja-freebsd11 although I'm not certain exactly what it tests. I build regularly on my stable/10 desktop though and lldb-mi built successfully. From owner-freebsd-toolchain@freebsd.org Thu Jul 21 18:56:34 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D72B8BA0574 for ; Thu, 21 Jul 2016 18:56:34 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id CC1D61FE4; Thu, 21 Jul 2016 18:56:34 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from [134.153.27.124] (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 67DF91608; Thu, 21 Jul 2016 18:56:34 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) From: "Jonathan Anderson" To: "Ed Maste" Cc: "freebsd-toolchain@freebsd.org" Subject: Re: LLDB build failure Date: Thu, 21 Jul 2016 16:28:25 -0230 Message-ID: <0EFCC62F-4523-49D7-9DEB-20CF8F939239@FreeBSD.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Mailer: MailMate (1.9.4r5234) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 18:56:34 -0000 On 19 Jul 2016, at 18:07, Ed Maste wrote: > On 19 July 2016 at 13:40, Jonathan Anderson > wrote: >> Hello toolchain@, >> >> When building a recent (r275944) LLDB on stable/11, I've encountered >> build >> failures in tools/lldb-mi (missing symbol llvm_regexec, need to link >> against >> LLVMSupport). This problem doesn't occur on (at least) OS X, so >> perhaps the >> LLVM build bots don't see it. > > We have a FreeBSD 11 LLDB build bot, which was green as of r272672: > http://lab.llvm.org:8011/builders/lldb-amd64-ninja-freebsd11 > although I'm not certain exactly what it tests. I build regularly on > my stable/10 desktop though and lldb-mi built successfully. I'm attempting to build with BUILD_SHARED_LIBS=ON... could that explain the difference? Should I expect that configuration to work? It has a dramatic effect on build times for LLVM-based tools. Jon -- Jonathan Anderson jonathan@FreeBSD.org From owner-freebsd-toolchain@freebsd.org Fri Jul 22 00:34:02 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5173ABA098E for ; Fri, 22 Jul 2016 00:34:02 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 45EAA1E56; Fri, 22 Jul 2016 00:34:02 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from [192.168.42.150] (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id D869F1307; Fri, 22 Jul 2016 00:34:01 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) From: "Jonathan Anderson" To: "Ed Maste" Cc: "freebsd-toolchain@freebsd.org" Subject: Re: LLDB build failure Date: Thu, 21 Jul 2016 22:05:50 -0230 Message-ID: <699770A1-D43C-4130-801C-73DF556224D8@FreeBSD.org> In-Reply-To: <0EFCC62F-4523-49D7-9DEB-20CF8F939239@FreeBSD.org> References: <0EFCC62F-4523-49D7-9DEB-20CF8F939239@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Content-Transfer-Encoding: quoted-printable X-Mailer: MailMate (1.9.4r5234) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 00:34:02 -0000 On 21 Jul 2016, at 16:28, Jonathan Anderson wrote: > On 19 Jul 2016, at 18:07, Ed Maste wrote: > >> On 19 July 2016 at 13:40, Jonathan Anderson = >> wrote: >>> Hello toolchain@, >>> >>> When building a recent (r275944) LLDB on stable/11, I've encountered = >>> build >>> failures in tools/lldb-mi (missing symbol llvm_regexec, need to link = >>> against >>> LLVMSupport). This problem doesn't occur on (at least) OS X, so = >>> perhaps the >>> LLVM build bots don't see it. >> >> We have a FreeBSD 11 LLDB build bot, which was green as of r272672: >> http://lab.llvm.org:8011/builders/lldb-amd64-ninja-freebsd11 >> although I'm not certain exactly what it tests. I build regularly on >> my stable/10 desktop though and lldb-mi built successfully. > > I'm attempting to build with BUILD_SHARED_LIBS=3DON... could that = > explain the difference? Should I expect that configuration to work? It = > has a dramatic effect on build times for LLVM-based tools. So this is interesting: the build succeeds in Release mode but fails in = Debug: https://allendale.engr.mun.ca/jenkins/job/LLVM-cadets/BUILD_TYPE=3DReleas= e/43/consoleFull https://allendale.engr.mun.ca/jenkins/job/LLVM-cadets/BUILD_TYPE=3DDebug/= 43/consoleFull With BUILD_SHARED_LIBS=3DOFF, both builds succeed. Jon -- Jonathan Anderson jonathan@FreeBSD.org