Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build v0.9.9 on Ubuntu 22.04 #221

Closed
Evaia opened this issue May 3, 2024 · 5 comments
Closed

Cannot build v0.9.9 on Ubuntu 22.04 #221

Evaia opened this issue May 3, 2024 · 5 comments
Assignees
Labels
build build related issue fixready
Milestone

Comments

@Evaia
Copy link

Evaia commented May 3, 2024

process goes all the way until the end and fails near the end with a /home/[redacted]/src/dwarfs-0.9.9/src/dwarfs/categorizer/fits_categorizer.cpp:41:10: fatal error: range/v3/algorithm/fold_left.hpp: No such file or directory

System is Ubuntu 22.04, both runs are building without tests.

tarball build:

<snip>
[ 94%] Building C object CMakeFiles/dwarfs.dir/src/dwarfs/wcwidth.c.o
[ 94%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/worker_group.cpp.o
[ 94%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/pager.cpp.o
[ 94%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/render_manpage.cpp.o
[ 94%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/mkdwarfs_manpage.cpp.o
[ 94%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/dwarfs_manpage.cpp.o
[ 95%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/dwarfsck_manpage.cpp.o
[ 95%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/dwarfsextract_manpage.cpp.o
[ 95%] Building CXX object CMakeFiles/dwarfs.dir/src/dwarfs/version.cpp.o
/home/[redacted]/src/dwarfs-0.9.9/src/dwarfs/categorizer/fits_categorizer.cpp:41:10: fatal error: range/v3/algorithm/fold_left.hpp: No such file or directory
   41 | #include <range/v3/algorithm/fold_left.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/dwarfs_categorizer.dir/build.make:76: CMakeFiles/dwarfs_categorizer.dir/src/dwarfs/categorizer/fits_categorizer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/[redacted]/src/dwarfs-0.9.9/src/dwarfs/categorizer/pcmaudio_categorizer.cpp: In member function ‘bool dwarfs::{anonymous}::pcmaudio_categorizer_<LoggerPolicy>::check_aiff(dwarfs::inode_fragments&, const std::filesystem::__cxx11::path&, std::span<const unsigned char>, const category_mapper&) const [with LoggerPolicy = dwarfs::debug_logger_policy]’:
/home/[redacted/src/dwarfs-0.9.9/src/dwarfs/categorizer/pcmaudio_categorizer.cpp:692:29: warning: ‘num_sample_frames’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  692 |           num_sample_frames * (meta.number_of_channels * meta.bytes_per_sample);
      |           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [CMakeFiles/Makefile2:490: CMakeFiles/dwarfs_categorizer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 95%] Linking CXX static library libdwarfs.a
[ 95%] Built target dwarfs
make: *** [Makefile:156: all] Error 2

same issue with the git version

<snip>
[ 95%] Linking CXX static library libdwarfs.a
[ 95%] Built target dwarfs
[ 95%] Building CXX object CMakeFiles/dwarfs_tool.dir/src/dwarfs/tool.cpp.o
[ 95%] Building CXX object CMakeFiles/dwarfs_tool.dir/src/dwarfs/iolayer.cpp.o
[ 95%] Linking CXX static library libdwarfs_tool.a
[ 95%] Built target dwarfs_tool
[ 95%] Building CXX object CMakeFiles/dwarfsck_main.dir/src/dwarfsck_main.cpp.o
[ 97%] Building CXX object CMakeFiles/dwarfs_main.dir/src/dwarfs_main.cpp.o
[ 97%] Building CXX object CMakeFiles/dwarfsbench_main.dir/src/dwarfsbench_main.cpp.o
[ 97%] Building CXX object CMakeFiles/dwarfsextract_main.dir/src/dwarfsextract_main.cpp.o
[ 97%] Linking CXX static library libdwarfsck_main.a
[ 97%] Linking CXX static library libdwarfsbench_main.a
[ 97%] Linking CXX static library libdwarfs_main.a
[ 97%] Linking CXX static library libdwarfsextract_main.a
[ 97%] Built target dwarfsbench_main
[ 97%] Built target dwarfsck_main
[ 97%] Built target dwarfs_main
[ 97%] Built target dwarfsextract_main
[ 97%] Building CXX object CMakeFiles/dwarfsbench.dir/src/dwarfsbench.cpp.o
[ 97%] Building CXX object CMakeFiles/dwarfsck.dir/src/dwarfsck.cpp.o
[ 97%] Building CXX object CMakeFiles/dwarfs-bin.dir/src/dwarfs.cpp.o
[ 98%] Building CXX object CMakeFiles/dwarfsextract.dir/src/dwarfsextract.cpp.o
[ 98%] Linking CXX executable dwarfsbench
[ 98%] Linking CXX executable dwarfsck
[ 98%] Linking CXX executable dwarfs
[ 98%] Linking CXX executable dwarfsextract
[ 98%] Built target dwarfsextract
[ 98%] Built target dwarfsck
[ 98%] Built target dwarfsbench
[ 98%] Built target dwarfs-bin
[ 98%] Generating mount.dwarfs
[ 98%] Built target symlinks
/home/[redacted]/src/dwarfs/src/dwarfs/categorizer/fits_categorizer.cpp:41:10: fatal error: range/v3/algorithm/fold_left.hpp: No such file or directory
   41 | #include <range/v3/algorithm/fold_left.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/dwarfs_categorizer.dir/build.make:76: CMakeFiles/dwarfs_categorizer.dir/src/dwarfs/categorizer/fits_categorizer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:490: CMakeFiles/dwarfs_categorizer.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
@mhx
Copy link
Owner

mhx commented May 3, 2024

Did you install librange-v3-dev?

There's a (mostly) up-to-date list of dependencies in the README. There's also the Dockerfile used by the CI action that lists the dependencies as well (and a few more things).

@Evaia
Copy link
Author

Evaia commented May 3, 2024

I did install everything listed there in addition to all of the deps for Folly.

@mhx
Copy link
Owner

mhx commented May 3, 2024

Sorry, you're right. I just checked and 22.04 still has an old version of range-v3 that doesn't contain the fold_left.hpp header.

There's unfortunately no easy workaround other than to install a more recent version of range-v3 manually. Alternatively, you can download a binary release.

I'll see if I can work around this issue for the next release.

@Evaia
Copy link
Author

Evaia commented May 3, 2024

Copy that. Thank you for all of your great work!

@Evaia Evaia closed this as completed May 3, 2024
@mhx mhx added this to the v0.9.10 milestone May 4, 2024
@mhx mhx self-assigned this May 4, 2024
@mhx mhx added build build related issue fixready labels May 4, 2024
@mhx
Copy link
Owner

mhx commented May 4, 2024

802e836 should fix this. I've also set up a 22.04 CI build to make sure this doesn't break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build related issue fixready
Projects
None yet
Development

No branches or pull requests

2 participants