From nobody Mon Apr 22 17:16:18 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VNX376nwzz5HVYH for ; Mon, 22 Apr 2024 17:16:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VNX376ClPz4MWP; Mon, 22 Apr 2024 17:16:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713806179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZC6DPwchbvuVAARXFDuH4S0YvKtmfvc3AGarhToQYwg=; b=oD/iSBbgdRyB0eLMR94IiUT0ld7aV0DQQbJOCW6WVZiZ6ph+DlBFd/v1XPSgPOidHRg+BA YEUg40vAGupAFQ6Cc/ZFnr+pEgOu14CURzRh336u/JxfMUGQ+8z8OtXZVYbw3CaM2E3LTc MmElwFkc7F1IWb32C9Ul9QWCmFhNQucVnxi343hBfEbw4XSy1T8H9RkV/CyrZ3BKaF3cmn odKbsSFPXIT/pdtnF0gcW064c73Vu6++NSMjoD5WNmdS+8MV608F29HvsigGtovXAHThlu GBvucHvbNVKnhMYdKmeFH86yfzUdJUBJO5yev1+YH4WTy1GAihgkzPN6TaLS1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713806179; a=rsa-sha256; cv=none; b=UVBTwDRTh+z4sfZmLvJih2vkOpnAHYiTVkPKegwQBOtpUv84toR08/43W956605mEl8cq3 xe6kvS9wxqwE9HXaEI3c8L4G2tPqMEiLFMHuKLVtbpKc9xzghUT96CxZtyxugn8jpArqg2 hjxk8VjjHEpgJbhMXc7pXf7BmPxSY8i9QMoB2roDI7moIbzyD6TG1ol1Z2j44XWySfKHz/ LHQwOwAhVmpvXRslMlAcUQLZ65zR8qtbRCbHVPr3s8PK/TaPK7mulY11WYU/gO7uGnkV35 5uI3tzORIMNJCzWtVtgIxx+DftJ045d+Q8OSNsVrSlzMl5A7YpKeMjzKQYMXrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713806179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZC6DPwchbvuVAARXFDuH4S0YvKtmfvc3AGarhToQYwg=; b=d1dS9aTDdpn88jl17RDUPKl0Jlycdga55dZ38zwi4uIrCWbj48X0X/3Bqc1M9e7G+2Ie5F RjdOfNhePKV53m3KbCigOjBTvKnib2fvSkBPd7JqaYwZ5AT6o/tl5oNQenBwLCwlldBPPm btlhvxvF+4jk2JkyeowojASYAxfi+u3WbPINqu7brorpvyzAAxGgqOlkWntI1bZBuEka4V qmW3z4lCqkN3ROq1Kgzd2LQOZm4xHF2I0+q3JBZPTVu23SBxi6BL2sDvPrOTkVHBtdtvdB ciZJ1fjpQM/h6XEGV5gCu9bBF9YrfEgVv5QVQjFopslycpRh8CrKLOykSFhnwQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VNX3755Q2z1Q31; Mon, 22 Apr 2024 17:16:19 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D0E0310BCD; Mon, 22 Apr 2024 19:16:18 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.1\)) Subject: Re: clang fails libc++experimental test case... From: Dimitry Andric In-Reply-To: Date: Mon, 22 Apr 2024 19:16:18 +0200 Cc: FreeBSD Hackers Content-Transfer-Encoding: 7bit Message-Id: References: To: "Kevin P. Neal" X-Mailer: Apple Mail (2.3731.700.6.1.1) On 22 Apr 2024, at 19:06, Kevin P. Neal wrote: > > I'm looking at failing test cases with clang+llvm and I'm developing > on FreeBSD. There are multiple failing test cases, but at the moment > I'm looking at: clang/test/Driver/experimental-library-flag.cpp > > This case tests to see if clang properly attempts to link against > either libc++ or libstdc++ depending on the flags given to clang. > Except FreeBSD's implementation in clang/lib/Driver/ToolChains/FreeBSD.cpp > doesn't support libstdc++ at all and just links against libc++. The > result is a failing test. > > Is this intentional? If it is we can mark the test as unsupported on > FreeBSD. If not intentional then we need to fix the clang driver. I think we ripped out libstdc++ support many years ago now. If somebody is really interested in that use case, they could spend the time to make it work again, although it would be tricky to do, since there is no standard location for those headers in FreeBSD anymore. :) So short-term it is probably best to avoid running any of those tests with -stdlib=libstdc++. > I'd really, really like to be able to do a 'make check' on a build of > clang+llvm on FreeBSD and have all tests pass. This is part of that effort. How exactly are you running "make check"? Use the CMake-generated Makefile from the upstream build system? -Dimitry