Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22045

How to boost.build properly boost 1.72.0 with gcc? b2.exe file not found

$
0
0

I am trying to install boost libraries on my windows 10 computer.

These are the steps that I did:

However, when I run on cmd the following command: bootstrap.bat gcc or this command: bootstrap.bat mingw, I get this message from cmd:

Bootstrapping the build engine
builtins.cpp: In function 'FILE* windows_popen_wrapper(const char*, const char*)':
builtins.cpp:2483:18: error: '_popen' was not declared in this scope
         result = _popen( command, "r" );
                  ^~~~~~
builtins.cpp:2483:18: note: suggested alternative: '_lopen'
         result = _popen( command, "r" );
                  ^~~~~~
                  _lopen
builtins.cpp: In function 'LIST* builtin_shell(FRAME*, int)':
builtins.cpp:2418:20: error: '_pclose' was not declared in this scope
     #define pclose _pclose
                    ^~~~~~~
builtins.cpp:2549:19: note: in expansion of macro 'pclose'
     exit_status = pclose( p );
                   ^~~~~~
builtins.cpp:2418:20: note: suggested alternative: '_lclose'
     #define pclose _pclose
                    ^~~~~~~
builtins.cpp:2549:19: note: in expansion of macro 'pclose'
     exit_status = pclose( p );
                   ^~~~~~
debugger.cpp: In function 'char* debug_string_read(FILE*)':
debugger.cpp:110:14: error: 'strdup' was not declared in this scope
     result = strdup( buf->value );
              ^~~~~~
debugger.cpp:110:14: note: suggested alternative: 'strcmp'
     result = strdup( buf->value );
              ^~~~~~
              strcmp
debugger.cpp: In function 'void debug_init_handles(const char*, const char*)':
debugger.cpp:1073:21: error: '_fdopen' was not declared in this scope
     command_input = _fdopen( read_fd, "r" );
                     ^~~~~~~
debugger.cpp:1073:21: note: suggested alternative: '_wsopen'
     command_input = _fdopen( read_fd, "r" );
                     ^~~~~~~
                     _wsopen
debugger.cpp: In function 'void init_parent_handles(HANDLE, HANDLE)':
debugger.cpp:1091:21: error: '_fdopen' was not declared in this scope
     command_child = _fdopen( _open_osfhandle( (intptr_t)in, _O_RDONLY ), "r" );
                     ^~~~~~~
debugger.cpp:1091:21: note: suggested alternative: '_wsopen'
     command_child = _fdopen( _open_osfhandle( (intptr_t)in, _O_RDONLY ), "r" );
                     ^~~~~~~
                     _wsopen
execnt.cpp: In function 'int is_parent_child(DWORD, DWORD)':
execnt.cpp:1085:23: error: 'stricmp' was not declared in this scope
                 if ( !stricmp( pinfo.szExeFile, "csrss.exe" ) &&
                       ^~~~~~~
execnt.cpp:1085:23: note: suggested alternative: 'strncmp'
                 if ( !stricmp( pinfo.szExeFile, "csrss.exe" ) &&
                       ^~~~~~~
                       strncmp
execnt.cpp:1088:23: error: 'stricmp' was not declared in this scope
                 if ( !stricmp( pinfo.szExeFile, "smss.exe" ) &&
                       ^~~~~~~
execnt.cpp:1088:23: note: suggested alternative: 'strncmp'
                 if ( !stricmp( pinfo.szExeFile, "smss.exe" ) &&
                       ^~~~~~~
                       strncmp
jam.cpp: In function 'int main(int, char**, char**)':
jam.cpp:200:22: error: 'environ' was not declared in this scope
 # define use_environ environ
                      ^~~~~~~
jam.cpp:561:37: note: in expansion of macro 'use_environ'
         var_defines( root_module(), use_environ, 1 );
                                     ^~~~~~~~~~~
jam.cpp:200:22: note: suggested alternative: 'union'
 # define use_environ environ
                      ^~~~~~~
jam.cpp:561:37: note: in expansion of macro 'use_environ'
         var_defines( root_module(), use_environ, 1 );
                                     ^~~~~~~~~~~
jam.cpp: In function 'char* executable_path(const char*)':
jam.cpp:729:54: error: 'strdup' was not declared in this scope
     return ( !ret || ret == sizeof( buf ) ) ? NULL : strdup( buf );
                                                      ^~~~~~
jam.cpp:729:54: note: suggested alternative: 'strcmp'
     return ( !ret || ret == sizeof( buf ) ) ? NULL : strdup( buf );
                                                      ^~~~~~
                                                      strcmp
sysinfo.cpp: In function 'unsigned int {anonymous}::std_thread_hardware_concurrency()':
sysinfo.cpp:93:21: error: 'std::thread' has not been declared
         return std::thread::hardware_concurrency();
                     ^~~~~~
File not found

Failed to bootstrap the build engine
Please consult bootstrap.log for further diagnostics.

So I consulted bootstrap.logand it says that:

###
### Using 'gcc' toolset.
###

C:\C++\C++ Libraries\boost\boost_1_72_0\tools\build\src\engine>g++ -x c++ -std=c++11 -s -O3 -o b2.exe   -DNDEBUG  builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp execnt.cpp filent.cpp filesys.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam.cpp jambase.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp regexp.cpp rules.cpp scan.cpp search.cpp strings.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp  

C:\C++\C++ Libraries\boost\boost_1_72_0\tools\build\src\engine>dir *.exe 
The volume in drive… C has no label.

Volume serial number: the serial number of the volume

 Directory of C:\C++\C++ Libraries\boost\boost_1_72_0\tools\build\src\engine


C:\C++\C++ Libraries\boost\boost_1_72_0\tools\build\src\engine>copy /b .\b2.exe .\bjam.exe 
The specified file could not be found

What am I doing wrong?


Viewing all articles
Browse latest Browse all 22045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>