Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Boost-users] building boost with mingw-w64
From: acsoft_at_[hidden]
Date: 2008-10-20 13:40:06


Thank you for your fast answer and your advice.

Adding architecture=64 to the bjam command line leads to the following error:

...
C:/projekte/libs/boost/tools/build/v2/build\feature.jam:467: in feature.validate
-value-string from module feature
error: "64" is not a known value of feature <architecture>
error: legal values: "x86" "ia64" "sparc" "power" "mips1" "mips2" "mips3" "mips4
" "mips32" "mips32r2" "mips64" "parisc" "arm" "combined" "combined-x86-power"
C:/projekte/libs/boost/tools/build/v2/build\property.jam:276: in validate1 from
module property
...

This is my new command line:

call %~dp0tools\mingwvars x64
%~dp0tools\bjam --toolset=gcc --prefix=.\ --libdir=.\lib\x64\ -j%NUMBER_OF_PROCESSORS% -sZLIB_INCLUDE=%CD%\..\zlib\ -sZLIB_SOURCE=%CD%\..\zlib\ address-model=64 threading=multi link=static runtime-link=static debug release install
rd /s /q .\bin.v2
pause

the mingw-w64 bin folder is inside %PATH%, I double checked that. Unfortunately I am still getting an odd error when executing the above statement:

WARNING: No python installation configured and autoconfiguration
         failed. See http://www.boost.org/libs/python/doc/building.html
         for configuration instructions or pass --without-python to
         suppress this message and silently skip all Boost.Python targets
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Skipping build of: libs/python/build/boost_python <build>no in common properti
es
Building Boost.Regex with the optional Unicode/ICU support disabled.
Note: Please refer to the Boost.Regex documentation for more information
Note: this is a strictly optional feature.
Skipping build of: libs/python/build/boost_python <build>no in common properties
...patience...
...patience...
...patience...
...found 18889 targets...
...updating 883 targets...
MkDir1-quick-fix-for-windows bin.v2
MkDir1-quick-fix-for-windows bin.v2\libs
MkDir1-quick-fix-for-windows bin.v2\libs\math
MkDir1-quick-fix-for-windows bin.v2\libs\program_options
MkDir1-quick-fix-for-windows bin.v2\libs\math\build
MkDir1-quick-fix-for-windows bin.v2\libs\program_options\build
MkDir1-quick-fix-for-windows bin.v2\libs\math\build\gcc-mingw-4.4.0
MkDir1-quick-fix-for-windows bin.v2\libs\program_options\build\gcc-mingw-4.4.0
MkDir1-quick-fix-for-windows bin.v2\libs\math\build\gcc-mingw-4.4.0\debug
MkDir1-quick-fix-for-windows bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug
MkDir1-quick-fix-for-windows bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64
MkDir1-quick-fix-for-windows bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static
MkDir1-quick-fix-for-windows bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64
MkDir1-quick-fix-for-windows bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static
MkDir1-quick-fix-for-windows bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64\link-static
MkDir1-quick-fix-for-windows bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi
MkDir1-quick-fix-for-windows bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static
gcc.compile.c++ bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\acosh.o
g++: CreateProcess: No such file or directory

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads -DBOOST_ALL_NO_LIB=1 -I"." -c -o "bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\acosh.o" "libs\math\build\..\src\tr1\acosh.cpp"

...failed gcc.compile.c++ bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\acosh.o...
MkDir1-quick-fix-for-windows bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi
gcc.compile.c++ bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\asinh.o
g++: CreateProcess: No such file or directory

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads -DBOOST_ALL_NO_LIB=1 -I"." -c -o "bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\asinh.o" "libs\math\build\..\src\tr1\asinh.cpp"

...failed gcc.compile.c++ bin.v2\libs\math\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\asinh.o...
gcc.compile.c++ bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\config_file.o
g++: CreateProcess: No such file or directory

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads -DBOOST_ALL_NO_LIB=1 -I"." -c -o "bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\config_file.o" "libs\program_options\src\config_file.cpp"

...failed gcc.compile.c++ bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\config_file.o...
gcc.compile.c++ bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\cmdline.o
g++: CreateProcess: No such file or directory

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads -DBOOST_ALL_NO_LIB=1 -I"." -c -o "bin.v2\libs\program_options\build\gcc-mingw-4.4.0\debug\address-model-64\link-static\runtime-link-static\threading-multi\cmdline.o" "libs\program_options\src\cmdline.cpp"

...

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -I"C:\projekte\libs\zlib" -c -o "bin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi\file_descriptor.o" "libs\iostreams\src\file_descriptor.cpp"

...failed gcc.compile.c++ bin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi\file_descriptor.o...
gcc.compile.c++ bin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi\mapped_file.o
g++: CreateProcess: No such file or directory

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -I"C:\projekte\libs\zlib" -c -o "bin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi\mapped_file.o" "libs\iostreams\src\mapped_file.cpp"

...failed gcc.compile.c++ bin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi\mapped_file.o...
gcc.compile.c++ bin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi\zlib.o
g++: CreateProcess: No such file or directory

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -I"C:\projekte\libs\zlib" -c -o "bin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi\zlib.o" "libs\iostreams\src\zlib.cpp"

...failed gcc.compile.c++ bin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi\zlib.o...
...skipped <pbin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi>libboost_iostreams-mgw44-mt-s-1_37.lib(clean) for lack of <pbin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi>file_descriptor.o...
...skipped <pbin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi>libboost_iostreams-mgw44-mt-s-1_37.lib for lack of <pbin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi>file_descriptor.o...
...skipped <plib\x64>libboost_iostreams-mgw44-mt-s-1_37.lib for lack of <pbin.v2\libs\iostreams\build\gcc-mingw-4.4.0\release\address-model-64\link-static\runtime-link-static\threading-multi>libboost_iostreams-mgw44-mt-s-1_37.lib...
...skipped <plib\x64>libboost_iostreams-mgw44-mt-s.lib for lack of <plib\x64>libboost_iostreams-mgw44-mt-s-1_37.lib...
...failed updating 422 targets...
...skipped 262 targets...
...updated 199 targets...

-------- Original Message --------
From: Vladimir Prus <ghost <at> cs.msu.su>
Subject: Re: building boost with mingw-w64
Newsgroups: gmane.comp.lib.boost.build

>First of all, you did not include the actually error message from compiler
>in your log above. Bjam should have printed both the error messages from
>the compiler and compiler invocation command, find the first such pair,
>and print them.
>
>Second, -address-model=64 will not have any effect, please use
>address-model=64 (no leading dash), together with architecture=64
>
>HTH,
>Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk