Boost logo

Boost Users :

Subject: [Boost-users] Errors and failed targets when building [filesystem]
From: morbid code (morbidcode666_at_[hidden])
Date: 2015-08-19 11:13:15


Hi guys, I am extremely new at boost. I downloaded the latest version
and I did the following: I am using windows7 64 bit and GCC 5.1.

I opened command line, went to C:\boost\tools\build and ran the command:

    bootstrap gcc

The output is:

    Bootstrapping the build engine
    execcmd.c: In function 'onintr':
    execcmd.c:120:5: warning: implicit declaration of function
'out_printf' [-Wimpli
    cit-function-declaration]
         out_printf( "...interrupted\n" );
         ^
    execnt.c: In function 'maxline':
    execnt.c:524:12: warning: type defaults to 'int' in declaration of
'result' [-Wi
    mplicit-int]
         static result;
                ^
    make.c: In function 'make':
    make.c:132:13: warning: implicit declaration of function
'out_printf' [-Wimplici
    t-function-declaration]
                 out_printf( "...found %d target%s...\n", counts->targets,
                 ^
    make.c: In function 'make0':
    make.c:735:13: warning: implicit declaration of function
'out_flush' [-Wimplicit
    -function-declaration]
                 out_flush();
                 ^
    modules/path.c: In function 'path_exists':
    modules/path.c:16:12: warning: implicit declaration of function
'file_query' [-W
    implicit-function-declaration]
         return file_query( list_front( lol_get( frame->args, 0 ) ) ) ?
                ^

    Bootstrapping is done. To build, run:

        .\b2 --prefix=DIR install

Then I ran:

    b2 --prefix=DIR toolset=gcc install

According to the long output 322 targets have been updated.

I put the path C:\boost\tools\build\DIR\bin to the environment variables.

Lastly, I ran:

    b2 --build-dir=C:\boost-filesystem toolset=gcc --with-filesystem stage

The output:

    ...found 8 targets...
    ...updating 5 targets...
    common.mkdir C:\boost-filesystem\boost
    common.mkdir C:\boost-filesystem\boost\architecture
    common.mkdir C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0
    common.mkdir C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0\debug
    gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0\debug\32.
    o
    libs\config\checks\architecture\32.cpp:9:36: error: size of array
'test' is negative
     int test[sizeof(void*) == 4? 1 : -1];
                                        ^

        "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -c -o
"C:\boost-fil
    esystem\boost\architecture\gcc-mingw-5.1.0\debug\32.o"
"libs\config\checks\archi
    tecture\32.cpp"

    ...failed gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0
    \debug\32.o...
    ...failed updating 1 target...
    ...updated 4 targets...
    Performing configuration checks

        - 32-bit : no
    ...found 2 targets...
    ...updating 1 target...
    gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0\debug\64.
    o
    ...updated 1 target...
        - 64-bit : yes
    ...found 2 targets...
    ...updating 1 target...
    gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0\debug\arm
    .o
    libs\config\checks\architecture\arm.cpp:13:2: error: #error "Not ARM"
     #error "Not ARM"
      ^

        "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -c -o
"C:\boost-fil
    esystem\boost\architecture\gcc-mingw-5.1.0\debug\arm.o"
"libs\config\checks\arch
    itecture\arm.cpp"

    ...failed gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0
    \debug\arm.o...
    ...failed updating 1 target...
        - arm : no
    ...found 2 targets...
    ...updating 1 target...
    gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0\debug\mip
    s1.o
    libs\config\checks\architecture\mips1.cpp:10:2: error: #error "Not MIPS1"
     #error "Not MIPS1"
      ^

        "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -c -o
"C:\boost-fil
    esystem\boost\architecture\gcc-mingw-5.1.0\debug\mips1.o"
"libs\config\checks\ar
    chitecture\mips1.cpp"

    ...failed gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0
    \debug\mips1.o...
    ...failed updating 1 target...
        - mips1 : no
    ...found 2 targets...
    ...updating 1 target...
    gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0\debug\pow
    er.o
    libs\config\checks\architecture\power.cpp:13:2: error: #error "Not PPC"
     #error "Not PPC"
      ^

        "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -c -o
"C:\boost-fil
    esystem\boost\architecture\gcc-mingw-5.1.0\debug\power.o"
"libs\config\checks\ar
    chitecture\power.cpp"

    ...failed gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0
    \debug\power.o...
    ...failed updating 1 target...
        - power : no
    ...found 2 targets...
    ...updating 1 target...
    gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0\debug\spa
    rc.o
    libs\config\checks\architecture\sparc.cpp:10:2: error: #error "Not SPARC"
     #error "Not SPARC"
      ^

        "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -c -o
"C:\boost-fil
    esystem\boost\architecture\gcc-mingw-5.1.0\debug\sparc.o"
"libs\config\checks\ar
    chitecture\sparc.cpp"

    ...failed gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0
    \debug\sparc.o...
    ...failed updating 1 target...
        - sparc : no
    ...found 2 targets...
    ...updating 1 target...
    gcc.compile.c++
C:\boost-filesystem\boost\architecture\gcc-mingw-5.1.0\debug\x86
    .o
    ...updated 1 target...
        - x86 : yes
    ...found 3 targets...
    ...updating 3 targets...
    common.mkdir C:\boost-filesystem\boost\bin.v2
    link.touch C:\boost-filesystem\boost\bin.v2\test-symlink-source
    link.mklink C:\boost-filesystem\boost\bin.v2\test-symlink
    symbolic link created for
C:\boost-filesystem\boost\bin.v2\test-symlink <<===>>
    test-symlink-source
    ...updated 3 targets...
        - symlinks supported : yes
    ...found 1 target...
    ...updating 1 target...
    config-cache.write C:\boost-filesystem\boost\bin.v2\project-cache.jam
    ...updated 1 target...

    Component configuration:

        - atomic : not building
        - chrono : not building
        - container : not building
        - context : not building
        - coroutine : not building
        - coroutine2 : not building
        - date_time : not building
        - exception : not building
        - filesystem : building
        - graph : not building
        - graph_parallel : not building
        - iostreams : not building
        - locale : not building
        - log : not building
        - math : not building
        - mpi : not building
        - program_options : not building
        - python : not building
        - random : not building
        - regex : not building
        - serialization : not building
        - signals : not building
        - system : not building
        - test : not building
        - thread : not building
        - timer : not building
        - wave : not building

    ...patience...
    ...found 690 targets...
    ...updating 51 targets...
    common.mkdir stage
    common.mkdir stage\lib
    common.mkdir C:\boost-filesystem\boost\bin.v2\libs
    common.mkdir C:\boost-filesystem\boost\bin.v2\libs\system
    common.mkdir C:\boost-filesystem\boost\bin.v2\libs\system\build
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\
    debug
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\
    debug\link-static
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\
    debug\link-static\threading-multi
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1
    .0\debug\link-static\threading-multi\error_code.o
    gcc.archive
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\d
    ebug\link-static\threading-multi\libboost_system-mgw51-mt-d-1_59.a
    common.copy stage\lib\libboost_system-mgw51-mt-d-1_59.a
    C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\debug\link-st
    atic\threading-multi\libboost_system-mgw51-mt-d-1_59.a
            1 file(s) copied.
    common.mkdir C:\boost-filesystem\boost\bin.v2\libs\filesystem
    common.mkdir C:\boost-filesystem\boost\bin.v2\libs\filesystem\build
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.
    1.0
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.
    1.0\debug
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.
    1.0\debug\link-static
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.
    1.0\debug\link-static\threading-multi
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\debug\link-static\threading-multi\codecvt_error_category.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\debug\link-static\threading-multi\operations.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\debug\link-static\threading-multi\path.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\debug\link-static\threading-multi\path_traits.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\debug\link-static\threading-multi\portability.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\debug\link-static\threading-multi\unique_path.o
    libs\filesystem\src\unique_path.cpp:28:0: warning: ignoring
#pragma comment [-W
    unknown-pragmas]
     # pragma comment(lib, "Advapi32.lib")
     ^
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\debug\link-static\threading-multi\utf8_codecvt_facet.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\debug\link-static\threading-multi\windows_file_codecvt.o
    gcc.archive
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.1
    .0\debug\link-static\threading-multi\libboost_filesystem-mgw51-mt-d-1_59.a
    common.copy stage\lib\libboost_filesystem-mgw51-mt-d-1_59.a
    C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.1.0\debug\lin
    k-static\threading-multi\libboost_filesystem-mgw51-mt-d-1_59.a
            1 file(s) copied.
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\
    release
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\
    release\link-static
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\
    release\link-static\threading-multi
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1
    .0\release\link-static\threading-multi\error_code.o
    In file included from libs\system\src\error_code.cpp:16:0:
    ./boost/system/error_code.hpp:221:36: warning:
'boost::system::posix_category' d
    efined but not used [-Wunused-variable]
         static const error_category & posix_category = generic_category();
                                        ^
    ./boost/system/error_code.hpp:222:36: warning:
'boost::system::errno_ecat' defin
    ed but not used [-Wunused-variable]
         static const error_category & errno_ecat = generic_category();
                                        ^
    ./boost/system/error_code.hpp:223:36: warning:
'boost::system::native_ecat' defi
    ned but not used [-Wunused-variable]
         static const error_category & native_ecat = system_category();
                                        ^
    gcc.archive
C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\r
    elease\link-static\threading-multi\libboost_system-mgw51-mt-1_59.a
    common.copy stage\lib\libboost_system-mgw51-mt-1_59.a
    C:\boost-filesystem\boost\bin.v2\libs\system\build\gcc-mingw-5.1.0\release\link-
    static\threading-multi\libboost_system-mgw51-mt-1_59.a
            1 file(s) copied.
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.
    1.0\release
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.
    1.0\release\link-static
    common.mkdir
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.
    1.0\release\link-static\threading-multi
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\release\link-static\threading-multi\codecvt_error_category.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\release\link-static\threading-multi\operations.o
    libs\filesystem\src\operations.cpp:688:26: warning:
'{anonymous}::create_symboli
    c_link_api' defined but not used [-Wunused-variable]
       PtrCreateSymbolicLinkW create_symbolic_link_api = PtrCreateSymbolicLinkW(
                              ^
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\release\link-static\threading-multi\path.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\release\link-static\threading-multi\path_traits.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\release\link-static\threading-multi\portability.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\release\link-static\threading-multi\unique_path.o
    libs\filesystem\src\unique_path.cpp:28:0: warning: ignoring
#pragma comment [-W
    unknown-pragmas]
     # pragma comment(lib, "Advapi32.lib")
     ^
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\release\link-static\threading-multi\utf8_codecvt_facet.o
    gcc.compile.c++
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw
    -5.1.0\release\link-static\threading-multi\windows_file_codecvt.o
    gcc.archive
C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.1
    .0\release\link-static\threading-multi\libboost_filesystem-mgw51-mt-1_59.a
    common.copy stage\lib\libboost_filesystem-mgw51-mt-1_59.a
    C:\boost-filesystem\boost\bin.v2\libs\filesystem\build\gcc-mingw-5.1.0\release\l
    ink-static\threading-multi\libboost_filesystem-mgw51-mt-1_59.a
            1 file(s) copied.
    ...updated 51 targets...

So there are some warning while Bootstrapping the build engine, errors
and failed targets when building the filesystem library. Should I be
worried about them? What should I do?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net