eos icon indicating copy to clipboard operation
eos copied to clipboard

Docker build failing

Open olddonkey opened this issue 8 years ago • 1 comments

Hi: I am new to C++,

when I try to build docker image:

./boost/integer_traits.hpp:90:1: error: expected class name
{ };
^
./boost/integer_traits.hpp:95:58: error: use of undeclared identifier 'UCHAR_MAX'
    public detail::integer_traits_base<unsigned char, 0, UCHAR_MAX>
                                                         ^
./boost/integer_traits.hpp:96:1: error: expected class name
{ };
^
./boost/integer_traits.hpp:131:47: error: use of undeclared identifier 'SHRT_MIN'
    public detail::integer_traits_base<short, SHRT_MIN, SHRT_MAX>
                                              ^
./boost/integer_traits.hpp:132:1: error: expected class name
{ };
^
./boost/integer_traits.hpp:137:59: error: use of undeclared identifier 'USHRT_MAX'
    public detail::integer_traits_base<unsigned short, 0, USHRT_MAX>
                                                          ^
./boost/integer_traits.hpp:138:1: error: expected class name
{ };
^
./boost/integer_traits.hpp:143:45: error: use of undeclared identifier 'INT_MIN'
    public detail::integer_traits_base<int, INT_MIN, INT_MAX>
                                            ^
./boost/integer_traits.hpp:144:1: error: expected class name
{ };
^
./boost/integer_traits.hpp:149:57: error: use of undeclared identifier 'UINT_MAX'
    public detail::integer_traits_base<unsigned int, 0, UINT_MAX>
                                                        ^
./boost/integer_traits.hpp:150:1: error: expected class name
{ };
^
./boost/integer_traits.hpp:155:46: error: use of undeclared identifier 'LONG_MIN'
    public detail::integer_traits_base<long, LONG_MIN, LONG_MAX>
                                             ^
./boost/integer_traits.hpp:156:1: error: expected class name
{ };
^
./boost/integer_traits.hpp:161:58: error: use of undeclared identifier 'ULONG_MAX'
    public detail::integer_traits_base<unsigned long, 0, ULONG_MAX>
                                                         ^
./boost/integer_traits.hpp:162:1: error: expected class name
{ };
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
...skipped <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>libboost_test_exec_monitor.a(clean) for lack of <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>compiler_log_formatter.o...
...skipped <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>libboost_test_exec_monitor.a for lack of <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>compiler_log_formatter.o...
...skipped <p/usr/local/lib>libboost_test_exec_monitor.a for lack of <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>libboost_test_exec_monitor.a...
...skipped <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>libboost_unit_test_framework.a(clean) for lack of <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>compiler_log_formatter.o...
...skipped <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>libboost_unit_test_framework.a for lack of <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>compiler_log_formatter.o...
...skipped <p/usr/local/lib>libboost_unit_test_framework.a for lack of <pbin.v2/libs/test/build/clang-linux-4.0/release/link-static/threading-multi>libboost_unit_test_framework.a...
...failed updating 76 targets...
The command '/bin/sh -c wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2 -O - | tar -xj     && cd boost_1_64_0     && ./bootstrap.sh --prefix=/usr/local     && echo 'using clang : 4.0 : clang++-4.0 ;' >> project-config.jam     && ./b2 -d0 -j4 --with-thread --with-date_time --with-system --with-filesystem --with-program_options        --with-signals --with-serialization --with-chrono --with-test --with-context --with-locale --with-coroutine --with-iostreams toolset=clang link=static install     && cd .. && rm -rf boost_1_64_0' returned a non-zero code: 1

Seems like some environment issue makes the type can't be found, any idea how to solve this?

Tried to find similar issue, but nothing I can find.

olddonkey avatar Feb 07 '18 05:02 olddonkey

This should be resolved. If not, please re-open.

ericiles avatar Mar 09 '18 15:03 ericiles