From nobody Thu May 02 12:03:12 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 4VVXdG4gXLz5JvZN for ; Thu, 2 May 2024 12:03:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4VVXdG3tGcz41jf; Thu, 2 May 2024 12:03:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714651394; 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=WklXHeER4sV+xauCMZNNwdypO3puQ2EiniQ6pNxgat8=; b=GBM2grF1t9RiqyaTiiW50Wn2hL2tupkY6cax9XXjWah/XW+AK/WKvw5fCvSyn8wKP32ClD Ggu8141UYdorusqx2zZwbFGzQ4C/c+m7qczVFfg0Jl1xg6gHe491lw6xmxMZrNbuvFzjE0 5VqAjlz266RxknuEHZW0kT1fjTwGxRm7y7W1CV/claJBHx/HezJzr/3cE8K2vhOIus/sRH RAQs+8tXGFy+BD0Jn2wncgmbztth5JnIu/OruxEkov0Qowa2Tyz8P4MDTnGjPfVAyLyBjj wybR/R/6yBgg1UQnabRSqcurE6pRLH/7C6uLthP2fi8jRdaMTBMQFHoPUmvC/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714651394; a=rsa-sha256; cv=none; b=M2uJopU0yrkYcKuGrpHjibJHXT2VhlSmeMmEYJ+x1TXQ+972jiYD4QKLhXVFG/TDimHb/Y LKuUNNNfmkUG2QGKpAxy/2sdDAUtiMnI119RbUW4tcV5ZaWXRDrml/+cy92kf7EXUpXYVO J0FI8m99UFgg/mjZUYbjFvT13r1QNMCBV5MuRABUz4Nx9g/r2UkPk2r3g2DMAIjw9uQERa thmBq5nQLYDokY6IMIKfL+m0QuYvarSocHEvj150hGCZM9lXIcjXXLRt43f8UqsMwQebtJ X12pb47ZKUinBoh4RxKnXT3lPxeOmtoRg3iSqIN6MgtcJFupR6Fyy+xqBqfA8w== 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=1714651394; 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=WklXHeER4sV+xauCMZNNwdypO3puQ2EiniQ6pNxgat8=; b=RMLW3x2B9RsFxs1cTdtV6rR8gfzdO25nXHRXbuO+kCsOVVj5pcLhMCcOvzTNArF/TjwzKV qh61VA2DXJq0KUZXm+ZQbN2R/h0Jys5/RrYUHtGdBELgnUyLNo7rOpyHKAvl6YO3tW1JAh xWjumHQnSaQUJlXdYH6mqarHw3BMbDXklCqZXnfq9WLL6T5g6TYNt5eFjINM5qmGDydmwx dR7Xf/vhwacJsR8r7IabjmGBQyN70nZmceuOEHDpa7UhirzFQGN5SZMCH5J5FfcXEQtxcp BZBFCcMcNiZdJkN6cIIX9Uh9NbvuB+ES/d5pRWTzpeeA+uD9ev0xchtilGI2CA== 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 4VVXdG2lVkz1Clw; Thu, 2 May 2024 12:03:14 +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 6EF4C63BB9; Thu, 02 May 2024 14:03:12 +0200 (CEST) Content-Type: text/plain; charset=utf-8 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: Thu, 2 May 2024 14:03:12 +0200 Cc: FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <9B56E755-1A91-4B69-B858-5A814BF85E7C@FreeBSD.org> References: <8A27C44B-FBB9-479B-866A-13E06AB8266A@FreeBSD.org> To: Nuno Teixeira X-Mailer: Apple Mail (2.3731.700.6.1.1) Nice to see that upstream chose the more correct solution. :) -Dimitry > On 2 May 2024, at 11:57, Nuno Teixeira wrote: >=20 > Hello Dimitry, >=20 > I've quoted your words in upstream PR and it solved with: >=20 > Stop using namespace std > = https://github.com/amsynth/amsynth/commit/6fb79100a6254220e5adc69a14285725= 39ecc377 >=20 > I'm using patch globally that unbreak main and rest of supported = releases don't complaint about it. >=20 > Thanks! >=20 > Dimitry Andric escreveu (ter=C3=A7a, 30/04/2024 = =C3=A0(s) 18:45): > 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 { > > | = ^ >=20 > It looks like the program defines its own "filesystem" class, and also > has "using namespace std;".=20 >=20 > Usually the easiest fix is to use "::filesystem" for the call sites = that > want to use the program's own definition. >=20 > Alternatively, rename the 'local' definition to something else, like > "my_filesystem". >=20 > -Dimitry >=20 >=20 >=20 > --=20 > Nuno Teixeira > FreeBSD UNIX: Web: https://FreeBSD.org