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>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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

[-- Attachment #2 --]
<div dir="ltr"><div>Hello all,</div><div><br></div><div>I&#39;m lost on build 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+=llvm, it fails 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>---</div><div>src/Configuration.cpp:35:20: error: reference to &#39;filesystem&#39; is ambiguous<br>   35 |         amsynthrc_fname = filesystem::get().config;<br>      |                           ^<br>src/filesystem.h:27:7: note: candidate found by name lookup is &#39;filesystem&#39;<br>   27 | class filesystem<br>      |       ^<br>/usr/include/c++/v1/__chrono/file_clock.h:49:1: note: candidate found by name lookup is &#39;std::filesystem&#39;<br>   49 | _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM<br>      | ^<br>/usr/include/c++/v1/__config:892:80: note: expanded from macro &#39;_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM&#39;<br>  892 |                                              inline namespace __fs { namespace filesystem {<br>      |                                                                                ^<br>src/Configuration.cpp:60:22: error: reference to &#39;filesystem&#39; is ambiguous<br>   60 |         current_bank_file = filesystem::get().default_bank;<br>      |                             ^<br>src/filesystem.h:27:7: note: candidate found by name lookup is &#39;filesystem&#39;<br>   27 | class filesystem<br>      |       ^<br>/usr/include/c++/v1/__chrono/file_clock.h:49:1: note: candidate found by name lookup is &#39;std::filesystem&#39;<br>   49 | _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM<br>      | ^<br>/usr/include/c++/v1/__config:892:80: note: expanded from macro &#39;_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM&#39;<br>  892 |                                              inline namespace __fs { namespace filesystem {<br>      |                                                                                ^<br>2 errors generated.<br>gmake[2]: *** [Makefile:3376: src/amsynth_dssi_gtk-Configuration.o] Error 1<br>gmake[2]: *** Waiting for unfinished jobs....<br>src/PresetController.cpp:474:9: error: reference to &#39;filesystem&#39; is ambiguous<br>  474 |         return filesystem::get().user_banks;<br>      |                ^<br>src/filesystem.h:27:7: note: candidate found by name lookup is &#39;filesystem&#39;<br>   27 | class filesystem<br>      |       ^<br>/usr/include/c++/v1/__chrono/file_clock.h:49:1: note: candidate found by name lookup is &#39;std::filesystem&#39;<br>   49 | _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM<br>      | ^<br>/usr/include/c++/v1/__config:892:80: note: expanded from macro &#39;_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM&#39;<br>  892 |                                              inline namespace __fs { namespace filesystem {<br>      |                                                                                ^<br>mv -f src/.deps/amsynth-AudioOutput.Tpo src/.deps/amsynth-AudioOutput.Po<br>1 error generated.</div><div>---<br></div><div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font color="#888888">Nuno Teixeira</font></div><div><div><font color="#888888">
FreeBSD UNIX:  &lt;eduardo@FreeBSD.org&gt;   Web:  <a href="https://FreeBSD.org" rel="noreferrer" target="_blank">https://FreeBSD.org</a><br></font></div></div></div></div></div></div>;
help

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