← All tasks
cppavast/retdec #842Not a task: not reproduced

Build error: undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'

envgap__avast__retdec-842

01 / FAILURE SIGNATURE

As reported upstream

ar_extractor.cpp:(.text+0x135c): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
b04be8b5cbf99c140763e7e20f45ff9b6f31c488
Manifest
src/utils/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

avast/retdec #842 · read the original issue
cmake output

```

-- Capstone: using remote Capstone revision.

-- LLVM: using remote LLVM revision.

-- YARA: using remote YARA revision.

-- YaraMod: using remote YaraMod revision.

-- -- Library stdc++fs NOT FOUND -> linking utils without stdc++fs library

-- Configuring done

-- Generating done

-- Build files have been written to: ....

```



make output

```

$ make

[  1%] Built target capstone-project

[  2%] Built target llvm-project

[  2%] Built target tinyxml2

[  3%] Built target yara

[  4%] Built target yaramod-project

[  6%] Built target utils

[  6%] Built target ar-extractor

[  6%] Linking CXX executable retdec-ar-extractor

/usr/bin/ld: CMakeFiles/ar-extractortool.dir/ar_extractor.cpp.o: in function `processArguments(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)':

ar_extractor.cpp:(.text+0x135c): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'

/usr/bin/ld: ar_extractor.cpp:(.text+0x1369): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'

/usr/bin/ld: ../ar-extractor/libretdec-ar-extractor.a(archive_wrapper.cpp.o): in function `retdec::ar_extractor::ArchiveWrapper::extract(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':

archive_wrapper.cpp:(.text+0x3a92): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'

/usr/bin/ld: archive_wrapper.cpp:(.text+0x3a9a): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'

collect2: error: ld returned 1 exit status

make[2]: *** [src/ar-extractortool/CMakeFiles/ar-extractortool.dir/build.make:123: src/ar-extractortool/retdec-ar-extractor] Error 1

make[1]: *** [CMakeFiles/Makefile2:631: src/ar-extractortool/CMakeFiles/ar-extractortool.dir/all] Error 2

make: *** [Makefile:130: all] Error 2

$

```

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]