[build2] error when trying to compile build2
Boris Kolpackov
boris at codesynthesis.com
Thu Feb 3 13:05:46 UTC 2022
Phillip Shelton via users <users at build2.org> writes:
> So I first just tried the following:
> >>C:\compilers\build2_build\build2-toolchain-0.14.0>.\build-mingw.bat c:\compilers\mingw64\bin\g++
> And got the following:
> error: C:\build2\bin\ does not exist
That's probably because you haven't unpacked build2-baseutils. For
manual bootstrap instructions please start here:
https://build2.org/build2-toolchain/doc/build2-toolchain-install.xhtml#bootstrap-windows
And then for MinGW continue with:
https://build2.org/build2-toolchain/doc/build2-toolchain-install.xhtml#bootstrap-windows-mingw
> Now I get the this error
> ..\libbutl\libbutl\process.cxx: In constructor 'butl::process::process(const butl::process_path&, const char**, butl::process::pipe, butl::process::pipe, butl::process::pipe, const char*, const char* const*)':
> ..\libbutl\libbutl\process.cxx:1386:7: error: 'unique_ptr' was not declared in this scope
> 1386 | unique_ptr<char, void (*)(char*)> pevars (
> | ^~~~~~~~~~
> ..\libbutl\libbutl\process.cxx:104:1: note: 'std::unique_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'?
> 103 | #include <libbutl/process-details.hxx>
> +++ |+#include <memory>
> 104 |
Yes, there was a missing header inclusion which has been fixed for the
next release. If you would like, you can try the latest staged toolchain
which includes this fix:
https://build2.org/community.xhtml#stage
Alternatively, if you want to stick with build2 0.14.0, you can use
the (older version of) GCC compiler from the build2-mingw package
(you can still use your MinGW GCC for your own development, just the
build system will be build with an older version).
More information about the users
mailing list