From owner-freebsd-current@freebsd.org Mon Feb 19 11:17:33 2018 Return-Path: Delivered-To: freebsd-current@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 7CF37F1BE58 for ; Mon, 19 Feb 2018 11:17:33 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-ua0-x22b.google.com (mail-ua0-x22b.google.com [IPv6:2607:f8b0:400c:c08::22b]) (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 0FB4D6F1EE; Mon, 19 Feb 2018 11:17:33 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-ua0-x22b.google.com with SMTP id u99so4620807uau.8; Mon, 19 Feb 2018 03:17:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=8cPM9BdDqSUrN1SdUbwTU0MwkyJtOqMwzfvMABE0QRQ=; b=M/pAaCGppBv57J4PFpX0xledYYQT1jhNr4vQGQ7vUl7gF9YSdUhuPpJZJxndncMjsb hrk/XvPvXM5XVWnR3ujxRPxJMy7ZdSkqA3mCXuVCSrmLP4Ns7cbjVCEd3TEa2G+y+VjK P2ngOoOcSuBvRgaaTsMVH9lgtfhwUtvVHIOaXMKYKq1xPptXh+NJe62JEYmikTA33e3T FBTvNExCcJNJSS6NVLbhiN2EeXC3yT4iVzVgBlw/3OgS9DDTS48R6L8EG5O8k+PzVlMt XFcWNlfTBeTQQdh31qaqd5kPlXBCBDL/d4YsqXQAG47YD7aA+yQ1xHJo6ZL0SMWD9AoN nM/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=8cPM9BdDqSUrN1SdUbwTU0MwkyJtOqMwzfvMABE0QRQ=; b=l5H7mlXGt9iPPNCwWZSF4Z8bIHm5qjSNRyi29ofbyDWa35yAtGdz/Y7susGcwWYI9g IRWCoVfeNtIN2k2Utv9NO5kXCwQR0q3ilqGh187KQ8Dm7qPdHn+7rp8LtFv4bOo/o9S3 po8GXkiMXaqAspMFB+Ec2DYJCMJ4459r3Q3XJJejOHtPfDqoFVebFHw0urGC9MMTPs5w UuSSQBNP7VnwRf3SsAbdO04KIY6UiOJn2eJ0aZTTbv693essR4QuwsdhzTiirHgPNxig yo5PLOaLhRWN6bFpWJoTcauDx8qv2/pK21pxnz+5OzkRUjqkyrzmdC+3pBoJy1s8xt4n 3baw== X-Gm-Message-State: APf1xPDRcbSB3lbOW12Ow1vyg5UYB04/RjYA9KuEMY9ZmH1aXTlNyIOb iIKL0v7hMA46aqBV2uPFSA+f0MnWOU2kccMqokd87FyC X-Google-Smtp-Source: AH8x226TnAYacvoNcO3e12w49ODNSc9wjk/sh8QG5L8Kn0xC817fIfiOHIVcpUGtAHqUGeFWD7HmPfnGJFH8aaRWZoE= X-Received: by 10.176.83.88 with SMTP id y24mr841496uay.121.1519039052337; Mon, 19 Feb 2018 03:17:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.4.8 with HTTP; Mon, 19 Feb 2018 03:17:31 -0800 (PST) In-Reply-To: References: From: Ben Woods Date: Mon, 19 Feb 2018 19:17:31 +0800 Message-ID: Subject: Re: Buildworld failing during llvm To: FreeBSD Current , dim@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Feb 2018 11:17:33 -0000 On 18 February 2018 at 09:52, Ben Woods wrote: > Hi everyone, > > My attempts to build FreeBSD 12-current have been failing as of yesterday > with the error below. This problem persists with current at the time of > writing this email (r329497). > > Given llvm was updated to 6.0 around that time, I suspect it is related: > https://svnweb.freebsd.org/base?view=revision&revision=329410 > > > --- clang.full --- > c++ -O2 -pipe -I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libclang > -I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm > -I/usr/src/contrib/llvm/tools/clang/include -I/usr/src/lib/clang/include > -I/usr/src/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL > -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS > -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd12.0\" > -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd12.0\" > -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/amd64.amd64/tmp\" > -ffunction-sections -fdata-sections -g -O0 -Qunused-arguments > -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -std=c++11 > -fno-exceptions -fno-rtti -g -O0 -stdlib=libc++ -Wno-c++11-extensions > -Wl,--gc-sections -static -L/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib > -o clang.full cc1_main.o cc1as_main.o driver.o > /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libclang/libclang.a > /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm/libllvm.a > -L/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/libz -lz > -L/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/ncurses/ncursesw > -lncursesw -L/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/libthr > -lpthread -legacy > /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm/libllvm.a: > could not read symbols: Malformed archive > c++: error: linker command failed with exit code 1 (use -v to see > invocation) > *** [clang.full] Error code 1 > > > Regards, > Ben > > -- > From: Benjamin Woods > woodsb02@gmail.com > I found this issue was caused by having the following line in my /etc/make.conf (which I had there for some ports debugging): DEBUG_FLAGS=-g -O0 I wouldn't have thought this should cause the clang build to fail... Regards, Ben -- From: Benjamin Woods woodsb02@gmail.com