Opened 16 months ago
Closed 16 months ago
#71026 closed defect (fixed)
shapelib @1.6.1 -- Unable to build -- fatal error: 'filesystem' file not found
| Reported by: | RobK88 | Owned by: | nilason (Nicklas Larsson) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.10.2 |
| Keywords: | highsierra | Cc: | nilason (Nicklas Larsson) |
| Port: | shapelib |
Description (last modified by RobK88)
I am unable to upgrade / build shapelib in High Sierra -- fatal error: 'filesystem' file not found
bash-3.2$ port outdated
The following installed ports are outdated:
gh 2.53.0_0 < 2.55.0_0
qt5-qttools 5.15.12_0 < 5.15.15_0
shapelib 1.5.0_0 < 1.6.1_0
xastir 2.1.8_11 < 2.1.8_12
bash-3.2$
bash-3.2$
bash-3.2$ sudo port clean shapelib
---> Cleaning shapelib
bash-3.2$
bash-3.2$ sudo port -v upgrade shapelib
...
Building CXX object tests/CMakeFiles/dbf_test.dir/dbf_test.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/build/tests && /usr/bin/clang++ -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/shapelib-1.6.1 -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/build/_deps/googletest-src/googletest/include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/build/_deps/googletest-src/googletest -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -std=c++17 -arch x86_64 -mmacosx-version-min=10.13 -MD -MT tests/CMakeFiles/dbf_test.dir/dbf_test.cc.o -MF CMakeFiles/dbf_test.dir/dbf_test.cc.o.d -o CMakeFiles/dbf_test.dir/dbf_test.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/shapelib-1.6.1/tests/dbf_test.cc
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/shapelib-1.6.1/tests/sbn_test.cc:3:10: fatal error: 'filesystem' file not found
#include <filesystem>
^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/shapelib-1.6.1/tests/dbf_test.cc:4:10: fatal error: 'filesystem' file not found
#include <filesystem>
^~~~~~~~~~~~
1 error generated.
make[2]: *** [tests/CMakeFiles/sbn_test.dir/sbn_test.cc.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/build'
make[1]: *** [tests/CMakeFiles/sbn_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [tests/CMakeFiles/dbf_test.dir/dbf_test.cc.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/build'
make[1]: *** [tests/CMakeFiles/dbf_test.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/build'
Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/work/build" && /usr/bin/make -j2 -w all VERBOSE=ON
Exit code: 2
Error: Failed to build shapelib: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_shapelib/shapelib/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Attachments (1)
Change History (9)
Changed 16 months ago by RobK88
comment:1 Changed 16 months ago by RobK88
| Description: | modified (diff) |
|---|
comment:3 Changed 16 months ago by RobK88
P.S. I also tried building using clang-11, clang-15 and clang-16. The builds all failed but with different errors.
comment:4 Changed 16 months ago by RobK88
| Description: | modified (diff) |
|---|
comment:5 Changed 16 months ago by kencu (Ken)
The system software installed in High Sierra by Apple is now too old to support "filesystem", and no amount of tweaking the bulid or selecting other compilers will change that.
If you use legacysupport and enable macports-libcxx in legacysupport's options for systems up to your needed system, it will often build.
It then needs to be actually tested.
Because the libc++ in macports-libcxx and the libc++ installed in High SIerra are different, and because LLVM/LIBCXX specifically provide no guarantees of compatibility between different libc++ versions, there are runtime errors that show up sometimes. If those runtime errors happen, then the macports-libcxx approach can't be used.
comment:6 Changed 16 months ago by nilason (Nicklas Larsson)
| Cc: | nilason added |
|---|
comment:7 Changed 16 months ago by nilason (Nicklas Larsson)
PR 26066 should fix this. It was the gtest that dragged in "filesystem".
comment:8 Changed 16 months ago by nilason (Nicklas Larsson)
| Owner: | set to nilason |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |

main.log