[build2] error when trying to compile build2

Phillip Shelton phillip.shelton at cardno.com.au
Thu Feb 3 11:13:16 UTC 2022


Hi,

I am trying to bootstrap build2 on a work computer.

I am using the following compiler
>>C:\compilers\build2_build\build2-toolchain-0.14.0> c:\compilers\mingw64\bin\g++ --version
g++ (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

So I changed line 96 of the .bat file to:
set "idir=C:\compilers\build2"

from set "idir=C:\build2"

This got further.

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 |

Is this because of the version of the compiler?
Will just doing as the note suggests work? Or will I have other unintended problems if I do this?

Phillip Shelton
SENIOR TRANSPORT MODELLER
CARDNO

[cid:image001.png at 01D81942.D96DD760]<http://www.cardno.com/>

Phone +61 7 3369 9822  Direct +61 7 3877 6991
Address Level 11, 515 St Paul's Terrace, Fortitude Valley,  Queensland 4006 Australia
Postal Locked Bag 4006, Fortitude Valley 4006
Email phillip.shelton at cardno.com.au  Web www.cardno.com
CONNECT WITH CARDNO
[cid:image002.png at 01D81942.D96DD760]<http://www.linkedin.com/company/cardno>
[cid:image003.png at 01D81942.D96DD760]<http://twitter.com/cardno>
[cid:image004.png at 01D81942.D96DD760]<http://www.facebook.com/CardnoGlobal>
[cid:image005.png at 01D81942.D96DD760]<http://www.youtube.com/channel/UChnRtfJ_XrGJkMOgsrDmqBw>

[Reconciliation Action Plan Icon]
Cardno acknowledges the Traditional Owners of the land upon which we live and work and pay our respects to their Elders past, present and emerging - learn more<https://www.cardno.com/media/5170/cardno-reflect-reconciliation-action-plan.pdf>.

Cardno's management systems are certified to ISO9001 (quality) and AS/NZS4801/OHSAS18001 (occupational health and safety)
This email and its attachments may contain confidential and/or privileged information for the sole use of the intended recipient(s). All electronically supplied data must be checked against an applicable hardcopy version which shall be the only document which Cardno warrants accuracy. If you are not the intended recipient, any use, distribution or copying of the information contained in this email and its attachments is strictly prohibited. If you have received this email in error, please email the sender by replying to this message and immediately delete and destroy any copies of this email and any attachments. The views or opinions expressed are the author's own and may not reflect the views or opinions of Cardno.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20220203/c20e593f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2818 bytes
Desc: image001.png
URL: <https://lists.build2.org/archives/users/attachments/20220203/c20e593f/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 258 bytes
Desc: image002.png
URL: <https://lists.build2.org/archives/users/attachments/20220203/c20e593f/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 275 bytes
Desc: image003.png
URL: <https://lists.build2.org/archives/users/attachments/20220203/c20e593f/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 251 bytes
Desc: image004.png
URL: <https://lists.build2.org/archives/users/attachments/20220203/c20e593f/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 282 bytes
Desc: image005.png
URL: <https://lists.build2.org/archives/users/attachments/20220203/c20e593f/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 3655 bytes
Desc: image006.png
URL: <https://lists.build2.org/archives/users/attachments/20220203/c20e593f/attachment-0011.png>


More information about the users mailing list