Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4774 closed Bugs (worksforme)

building xml_grammar.o and xml_wgrammar.o with MinGW-4.5.0 fails

Reported by: 1czajnik@… Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: Bryce Adelstein Lelbach

Description

I am trying to build boost trunk rev. 66150 under Windows, using MinGW-4.5.0.

gcc -v:

Using built-in specs.
COLLECT_GCC=c:\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.5.0/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-werror --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.0 (GCC) 

project-config.jam:

import option ;
import feature ;

if ! gcc in [ feature.values <toolset> ]
{
    using gcc ; 
}

project : default-build <toolset>gcc ;

local BOOST = "C:/boost" ;
local VER = "trunk" ;

libraries =  ;

option.set prefix : $(BOOST) ;
option.set exec-prefix : $(BOOST) ;
option.set libdir : $(BOOST)/lib/boost-$(VER) ;
option.set includedir : $(BOOST)/include/boost-$(VER) ;
option.set layout : tagged ;

option.set keep-going : false ;

./bjam install

Performing configuration checks

    - has_icu builds           : no
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
    - ../config//has_gcc_visibility builds : no
    - ../config//has_long_double_support builds : yes
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.
warning: No python installation configured and autoconfiguration
note: failed.  See http://www.boost.org/libs/python/doc/building.html
note: for configuration instructions or pass --without-python to
note: suppress this message and silently skip all Boost.Python targets

Component configuration:

    - date_time                : building
    - exception                : building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : building
    - iostreams                : building
    - math                     : building
    - mpi                      : building
    - program_options          : building
    - python                   : building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - signals                  : building
    - system                   : building
    - test                     : building
    - thread                   : building
    - wave                     : building

...patience...
...patience...
...patience...
...found 22440 targets...
...updating 16 targets...
gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_grammar.o

    "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads  -DBOOST_ALL_NO_LIB=1  -I"." -c -o "bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_grammar.o" "libs\serialization\src\xml_grammar.cpp"

...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_grammar.o...
...skipped <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>libboost_serialization-mt-d.a(clean) for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>xml_grammar.o...
...skipped <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>libboost_serialization-mt-d.a for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>xml_grammar.o...
...skipped <pC:\boost\lib\boost-trunk>libboost_serialization-mt-d.a for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>libboost_serialization-mt-d.a...
gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_wgrammar.o

    "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads  -DBOOST_ALL_NO_LIB=1  -I"." -c -o "bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_wgrammar.o" "libs\serialization\src\xml_wgrammar.cpp"

...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_wgrammar.o...
...skipped <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>libboost_wserialization-mt-d.a(clean) for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>xml_wgrammar.o...
...skipped <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>libboost_wserialization-mt-d.a for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>xml_wgrammar.o...
...skipped <pC:\boost\lib\boost-trunk>libboost_wserialization-mt-d.a for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi>libboost_wserialization-mt-d.a...
gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_grammar.o

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads  -DBOOST_ALL_NO_LIB=1 -DNDEBUG  -I"." -c -o "bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_grammar.o" "libs\serialization\src\xml_grammar.cpp"

...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_grammar.o...
...skipped <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>libboost_serialization-mt.a(clean) for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>xml_grammar.o...
...skipped <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>libboost_serialization-mt.a for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>xml_grammar.o...
...skipped <pC:\boost\lib\boost-trunk>libboost_serialization-mt.a for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>libboost_serialization-mt.a...
gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_wgrammar.o

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads  -DBOOST_ALL_NO_LIB=1 -DNDEBUG  -I"." -c -o "bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_wgrammar.o" "libs\serialization\src\xml_wgrammar.cpp"

...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_wgrammar.o...
...skipped <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>libboost_wserialization-mt.a(clean) for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>xml_wgrammar.o...
...skipped <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>libboost_wserialization-mt.a for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>xml_wgrammar.o...
...skipped <pC:\boost\lib\boost-trunk>libboost_wserialization-mt.a for lack of <pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi>libboost_wserialization-mt.a...
...failed updating 4 targets...
...skipped 12 targets...

If any more information is needed, please let me know what else I can do.

Change History (5)

comment:1 by anonymous, 12 years ago

Summary: building xml_archiver.o and xml_warchiver.o with MinGW-4.5.0 failsbuilding xml_grammar.o and xml_wgrammar.o with MinGW-4.5.0 fails

comment:2 by 1czajnik@…, 12 years ago

I have tried compiling releases 1_44_0 and 1_43_0 with the same configuration, and they both compiled fine.

comment:3 by Bryce Adelstein Lelbach, 12 years ago

Resolution: worksforme
Status: newclosed

It's a new grammar. This works fine in regressions, and on my machine. I suspect the problem is on your end. Are you compiling in the VS10 command prompt?

comment:4 by Bryce Adelstein Lelbach, 12 years ago

Cc: Bryce Adelstein Lelbach added

comment:5 by 1czajnik@…, 12 years ago

As a command prompt I am using msys-1.0.10.

What is VS10 command prompt? If it has got something to do with Visual Studio, I don't use it and don't have it installed.

Is there a way to make bjam print more information about the build error? The compiler error, etc.

Note: See TracTickets for help on using tickets.