From nobody Tue Apr 30 17:45:45 2024 X-Original-To: freebsd-current@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 4VTSKR5Xyqz5Jd98 for ; Tue, 30 Apr 2024 17:45:47 +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 4VTSKR51vdz41KQ; Tue, 30 Apr 2024 17:45:47 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714499147; 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=6bjySrDN+yVHr93yq/8DHG/G4LqMxsBdbSTlyFqs4lY=; b=KoVE86V40+vRrQ8Pi0I0uObwTxrr0J1vl054nzIsZNnuzs2s5j1W/wMzTlLnrcpYKG7wK7 aWsjiQ3L/dPH9uslXVzH5GSMNofN8KzSmjYLXLLmMGn0asgJu6PHHvsfoe31uUhtuGBA09 iFieYpP+x5u4Cg9mpwlHHCJH4rtKC2kiQ2x/zRCsAR9rQ6PZf93QkMiCseM4VO8sQP17Y0 XqpDfhIrFxE6zsgxBeO16rRJNmT8+CLDSGiaGuHDXDamFcmLpmW8telbNvXIo39MscjzGc qchoXdZ97URa03ReanSRzi02b9ey1fzSnVFIDXNwc12V7G2/dLi87a8YMTYWoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714499147; a=rsa-sha256; cv=none; b=WEjmIWQTCs/1Fyt1wUmZOd+60QTOpCrigNvDtor7s/A8OCf668UAq+wZUnA1SKSB7QO2na 7q/QBXBmUQSpM3/0FU9k4lpdj0v6GPxao21qc1K3FkQD+tsM7S/TOANeSP04odPxBSod7g y8ErAAruo7Umr8z7bYJKu/YyubSAbIJN6qTLiJ3D4LjKvFDxGZHHLuYB/xhOr7EvUj8yqs XQmEH9dyXhwPsProAJX3oFMQYhP5KU+lKa4nzljFYslLnN0vpT5cF2Z+4KRGeP0Hx9hlGq oyb1QYqIqB/QINMRk0cW0rDNMQrFDpJlBctb54LkOlH1xw1YD3ZTtsRyA/D7Mg== 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=1714499147; 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=6bjySrDN+yVHr93yq/8DHG/G4LqMxsBdbSTlyFqs4lY=; b=vpujRQHRXWLMq4b9ioLZsX1tNcOQz0cLxrpcN8/Lt6fmh4ubnIj0j4SOpMgMLnnyq4+mbg Vxs4Temk881+ieB1+d2dg1ca935w//O5ZnahaTMI+eNvyqYOXTi3LSJ0JUl8yDo+CvPrTZ RnV/b3tUwr3W2EvRK2AMi6T41TH1ISr7VX+L7+exMq08AdPnnat9Ab8ipYdEkp98eMhFY3 Xf+APxAOSjO80dm71lhTvvcVNjR7xoWtCRl7OFO+nrmDDMxUBo5cU+zbvGeBjIMVgJQItd xn6/mr6hCt8OvcRwDz3Kn+2pBjHQZQFtZuN4fe/2J9VZrCEwOKEnXRTv2gh0pw== 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 4VTSKR3wphz1L7t; Tue, 30 Apr 2024 17:45:47 +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 B31D55E662; Tue, 30 Apr 2024 19:45:45 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.1\)) Subject: Re: build failure affecting port: "error: reference to 'filesystem' is ambiguous" From: Dimitry Andric In-Reply-To: Date: Tue, 30 Apr 2024 19:45:45 +0200 Cc: FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <8A27C44B-FBB9-479B-866A-13E06AB8266A@FreeBSD.org> References: To: Nuno Teixeira X-Mailer: Apple Mail (2.3731.700.6.1.1) On 30 Apr 2024, at 14:26, Nuno Teixeira wrote: >=20 > I'm lost on build failure of audio/amsynth (updated to version 1.13.3) = on recent main. > Thre strange thing is if I use llvm from ports, USES+=3Dllvm, it fails = with same error so I suspect that something related to main. >=20 > Any help is welcome and I didn't openned an upstream PR yet. >=20 > Thanks, >=20 > --- > src/Configuration.cpp:35:20: error: reference to 'filesystem' is = ambiguous > 35 | amsynthrc_fname =3D filesystem::get().config; > | ^ > src/filesystem.h:27:7: note: candidate found by name lookup is = 'filesystem' > 27 | class filesystem > | ^ > /usr/include/c++/v1/__chrono/file_clock.h:49:1: note: candidate found = by name lookup is 'std::filesystem' > 49 | _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM > | ^ > /usr/include/c++/v1/__config:892:80: note: expanded from macro = '_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM' > 892 | inline namespace = __fs { namespace filesystem { > | = ^ It looks like the program defines its own "filesystem" class, and also has "using namespace std;".=20 Usually the easiest fix is to use "::filesystem" for the call sites that want to use the program's own definition. Alternatively, rename the 'local' definition to something else, like "my_filesystem". -Dimitry