Opened 7 weeks ago

Closed 7 weeks 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)

main.log (105.1 KB) - added by RobK88 7 weeks ago.
main.log

Download all attachments as: .zip

Change History (9)

Changed 7 weeks ago by RobK88

Attachment: main.log added

main.log

comment:1 Changed 7 weeks ago by RobK88

Description: modified (diff)

comment:2 in reply to:  description Changed 7 weeks ago by RobK88

Replying to RobK88:

I am unable to upgrade / build shapelib on High Sierra -- fatal error: 'filesystem' file not found

...

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.
Version 0, edited 7 weeks ago by RobK88 (next)

comment:3 Changed 7 weeks 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 7 weeks ago by RobK88

Description: modified (diff)

comment:5 Changed 7 weeks 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 7 weeks ago by nilason (Nicklas Larsson)

Cc: nilason added

comment:7 Changed 7 weeks ago by nilason (Nicklas Larsson)

PR 26066 should fix this. It was the gtest that dragged in "filesystem".

comment:8 Changed 7 weeks ago by nilason (Nicklas Larsson)

Owner: set to nilason
Resolution: fixed
Status: newclosed

In 1aa4bce76b69fb195d73f4022ac3cb7b976e059f/macports-ports (master):

shapelib: disable building test

Closes: #71026

Note: See TracTickets for help on using tickets.