Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2024 13:26:08 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   build failure affecting port: "error: reference to 'filesystem' is ambiguous"
Message-ID:  <CAFDf7UJ2-QgwE0zU8aZ7ZP26NNPYfPYQZDMYQFxGiKDUw9nyOg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--00000000000022926f06174f7a40
Content-Type: text/plain; charset="UTF-8"

Hello all,

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+=llvm, it fails with
same error so I suspect that something related to main.

Any help is welcome and I didn't openned an upstream PR yet.

Thanks,

---
src/Configuration.cpp:35:20: error: reference to 'filesystem' is ambiguous
   35 |         amsynthrc_fname = 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 {
      |
           ^
src/Configuration.cpp:60:22: error: reference to 'filesystem' is ambiguous
   60 |         current_bank_file = filesystem::get().default_bank;
      |                             ^
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 {
      |
           ^
2 errors generated.
gmake[2]: *** [Makefile:3376: src/amsynth_dssi_gtk-Configuration.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
src/PresetController.cpp:474:9: error: reference to 'filesystem' is
ambiguous
  474 |         return filesystem::get().user_banks;
      |                ^
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 {
      |
           ^
mv -f src/.deps/amsynth-AudioOutput.Tpo src/.deps/amsynth-AudioOutput.Po
1 error generated.
---

-- 
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

--00000000000022926f06174f7a40
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello all,</div><div><br></div><div>I&#39;m lost on b=
uild failure of audio/amsynth (updated to version 1.13.3) on recent main.</=
div><div>Thre strange thing is if I use llvm from ports, USES+=3Dllvm, it f=
ails with same error so I suspect that something related to main.</div><div=
><br></div><div>Any help is welcome and I didn&#39;t openned an upstream PR=
 yet.</div><div><br></div><div>Thanks,<br></div><div><br></div><div>---</di=
v><div>src/Configuration.cpp:35:20: error: reference to &#39;filesystem&#39=
; is ambiguous<br>=C2=A0 =C2=A035 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 amsynthrc_f=
name =3D filesystem::get().config;<br>=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 ^<br>src/filesystem.h:27:7: note: candidate found by name lookup is &#3=
9;filesystem&#39;<br>=C2=A0 =C2=A027 | class filesystem<br>=C2=A0 =C2=A0 =
=C2=A0 | =C2=A0 =C2=A0 =C2=A0 ^<br>/usr/include/c++/v1/__chrono/file_clock.=
h:49:1: note: candidate found by name lookup is &#39;std::filesystem&#39;<b=
r>=C2=A0 =C2=A049 | _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM<br>=C2=A0 =C2=A0 =C2=
=A0 | ^<br>/usr/include/c++/v1/__config:892:80: note: expanded from macro &=
#39;_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM&#39;<br>=C2=A0 892 | =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0in=
line namespace __fs { namespace filesystem {<br>=C2=A0 =C2=A0 =C2=A0 | =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^<br>src/Configurati=
on.cpp:60:22: error: reference to &#39;filesystem&#39; is ambiguous<br>=C2=
=A0 =C2=A060 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 current_bank_file =3D filesystem=
::get().default_bank;<br>=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^<br=
>src/filesystem.h:27:7: note: candidate found by name lookup is &#39;filesy=
stem&#39;<br>=C2=A0 =C2=A027 | class filesystem<br>=C2=A0 =C2=A0 =C2=A0 | =
=C2=A0 =C2=A0 =C2=A0 ^<br>/usr/include/c++/v1/__chrono/file_clock.h:49:1: n=
ote: candidate found by name lookup is &#39;std::filesystem&#39;<br>=C2=A0 =
=C2=A049 | _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM<br>=C2=A0 =C2=A0 =C2=A0 | ^<b=
r>/usr/include/c++/v1/__config:892:80: note: expanded from macro &#39;_LIBC=
PP_BEGIN_NAMESPACE_FILESYSTEM&#39;<br>=C2=A0 892 | =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inline namesp=
ace __fs { namespace filesystem {<br>=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^<br>2 errors generated.<br>gm=
ake[2]: *** [Makefile:3376: src/amsynth_dssi_gtk-Configuration.o] Error 1<b=
r>gmake[2]: *** Waiting for unfinished jobs....<br>src/PresetController.cpp=
:474:9: error: reference to &#39;filesystem&#39; is ambiguous<br>=C2=A0 474=
 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 return filesystem::get().user_banks;<br>=C2=
=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
^<br>src/filesystem.h:27:7: note: candidate found by name lookup is &#39;fi=
lesystem&#39;<br>=C2=A0 =C2=A027 | class filesystem<br>=C2=A0 =C2=A0 =C2=A0=
 | =C2=A0 =C2=A0 =C2=A0 ^<br>/usr/include/c++/v1/__chrono/file_clock.h:49:1=
: note: candidate found by name lookup is &#39;std::filesystem&#39;<br>=C2=
=A0 =C2=A049 | _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM<br>=C2=A0 =C2=A0 =C2=A0 |=
 ^<br>/usr/include/c++/v1/__config:892:80: note: expanded from macro &#39;_=
LIBCPP_BEGIN_NAMESPACE_FILESYSTEM&#39;<br>=C2=A0 892 | =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inline na=
mespace __fs { namespace filesystem {<br>=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^<br>mv -f src/.deps/amsynt=
h-AudioOutput.Tpo src/.deps/amsynth-AudioOutput.Po<br>1 error generated.</d=
iv><div>---<br></div><div><br><span class=3D"gmail_signature_prefix">-- </s=
pan><br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_=
signature"><div dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</fon=
t></div><div><div><font color=3D"#888888">
FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h=
ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr=
eeBSD.org</a><br></font></div></div></div></div></div></div>

--00000000000022926f06174f7a40--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UJ2-QgwE0zU8aZ7ZP26NNPYfPYQZDMYQFxGiKDUw9nyOg>