|
Boost-Build : |
Subject: Re: [Boost-build] building boost with mingw-w64
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-20 00:27:55
On Monday 20 October 2008 00:21:49 acsoft_at_[hidden] wrote:
> Hello,
>
> one of our customers wants us to compile a native Windows x64 build of our application. As we are using a lot of C++0x code, we are forced to use a Win64 port of gcc 4.x/MinGW (http://mingw-w64.sourceforge.net/) instead of the regular Visual Studio 8 x64 compiler.
>
> Unfortunately building boost with mingw-w64 fails.
> This is the build log:
>
> 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.
> 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: ./install <build>no in common properties
> Skipping build of: ./install <build>no in common properties
> Skipping build of: ./install <build>no in common properties
> Skipping build of: ./install <build>no in common properties
> ...skipped <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static\threading-multi>libboost_system-mgw44-mt-1_37.lib(clean) for lack of <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static\threading-multi>error_code.o...
> ...skipped <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static\threading-multi>libboost_system-mgw44-mt-1_37.lib for lack of <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static\threading-multi>error_code.o...
> ...skipped <pbuild\mingw-x64\lib>libboost_system-mgw44-mt-1_37.lib for lack of <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static\threading-multi>libboost_system-mgw44-mt-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_system-mgw44-mt.lib for lack of <pbuild\mingw-x64\lib>libboost_system-mgw44-mt-1_37.lib...
> ...skipped <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static>libboost_system-mgw44-1_37.lib(clean) for lack of <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static>error_code.o...
> ...skipped <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static>libboost_system-mgw44-1_37.lib for lack of <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static>error_code.o...
> ...skipped <pbuild\mingw-x64\lib>libboost_system-mgw44-1_37.lib for lack of <pbin.v2\libs\system\build\gcc-mingw-4.4.0\release\link-static>libboost_system-mgw44-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_system-mgw44.lib for lack of <pbuild\mingw-x64\lib>libboost_system-mgw44-1_37.lib...
> ...skipped <pbin.v2\libs\date_time\build\gcc-mingw-4.4.0\release\link-static\threading-multi>libboost_date_time-mgw44-mt-1_37.lib(clean) for lack of <pbin.v2\libs\date_time\build\gcc-mingw-4.4.0\release\link-static\threading-multi>greg_month.o...
> ...skipped <pbin.v2\libs\date_time\build\gcc-mingw-4.4.0\release\link-static\threading-multi>libboost_date_time-mgw44-mt-1_37.lib for lack of <pbin.v2\libs\date_time\build\gcc-mingw-4.4.0\release\link-static\threading-multi>greg_month.o...
> ...skipped <pbuild\mingw-x64\lib>libboost_date_time-mgw44-mt-1_37.lib for lack of <pbin.v2\libs\date_time\build\gcc-mingw-4.4.0\release\link-static\threading-multi>libboost_date_time-mgw44-mt-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_date_time-mgw44-mt.lib for lack of <pbuild\mingw-x64\lib>libboost_date_time-mgw44-mt-1_37.lib...
>
>
> ...
>
> ...skipped <pbuild\mingw-x64\lib>libboost_math_tr1f-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_math_tr1f-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_math_tr1l-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_math_tr1l-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_math_c99-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_math_c99-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_math_c99f-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_math_c99f-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_math_c99l-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_math_c99l-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_program_options-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_program_options-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_serialization-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_serialization-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_wserialization-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_wserialization-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_signals-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_signals-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_prg_exec_monitor-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_prg_exec_monitor-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_unit_test_framework-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_unit_test_framework-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_thread-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_thread-mgw44-mt-d-1_37.lib...
> ...skipped <pbin.v2\libs\wave\build\gcc-mingw-4.4.0\debug\link-static\threading-multi>libboost_wave-mgw44-mt-d-1_37.lib(clean) for lack of <pbin.v2\libs\wave\build\gcc-mingw-4.4.0\debug\link-static\threading-multi>instantiate_cpp_exprgrammar.o...
> ...skipped <pbin.v2\libs\wave\build\gcc-mingw-4.4.0\debug\link-static\threading-multi>libboost_wave-mgw44-mt-d-1_37.lib for lack of <pbin.v2\libs\wave\build\gcc-mingw-4.4.0\debug\link-static\threading-multi>instantiate_cpp_exprgrammar.o...
> ...skipped <pbuild\mingw-x64\lib>libboost_wave-mgw44-mt-d-1_37.lib for lack of <pbin.v2\libs\wave\build\gcc-mingw-4.4.0\debug\link-static\threading-multi>libboost_wave-mgw44-mt-d-1_37.lib...
> ...skipped <pbuild\mingw-x64\lib>libboost_wave-mgw44-mt-d.lib for lack of <pbuild\mingw-x64\lib>libboost_wave-mgw44-mt-d-1_37.lib...
> ...failed updating 2436 targets...
> Skipping build of: ./headers <build>no in common properties
> Skipping build of: ./headers <build>no in common properties
> Skipping build of: ./headers <build>no in common properties
> Skipping build of: ./headers <build>no in common properties
> 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.
> 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: ./build_all <build>no in common properties
> Skipping build of: ./build_all <build>no in common properties
> Skipping build of: ./build_all <build>no in common properties
> Skipping build of: ./build_all <build>no in common properties
>
> This is our build batch file. mingwvars simply adds the MinGW-w64/bin folder to the Path envionment variable.
>
> call mingwvars
> bjam --toolset=gcc --prefix=.\build\mingw-x64 --without-mpi --without-python --build-type=complete -address-model=64 install
> bjam --toolset=gcc --prefix=.\build\mingw-x64 --without-mpi --without-python --build-type=complete -address-model=64 clean
> rd /s /q .\bin.v2
>
> What did we do wrong?
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
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>
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