task in 'bdldfp_decimal.t' failed with exit status 1
sergey-kurenkov opened this issue · 6 comments
waf build
completes successfully on mac but waf build --test build
fails:
$ waf build --test build -j 1
...
[1861/2469] Linking build/groups/bdl/bdls/bdls_pipeutil.t
[1863/2469] Linking build/groups/bdl/bdls/bdls_processutil.t
[1865/2469] Linking build/groups/bdl/bdls/bdls_testutil.t
[1881/2469] Linking build/groups/bdl/bdldfp/libbdldfp.a
[libbdldfp.a (WARNING)] <<<<<<<<<<
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: groups/bdl/bdldfp/libbdldfp.a(bdldfp_uint128.cpp.1.o) has no symbols
>>>>>>>>>>
[1883/2469] Linking build/groups/bdl/bdldfp/bdldfp_binaryintegraldecimalimputil.t
[1884/2469] Compiling groups/bdl/bdldfp/bdldfp_decimal.t.cpp
[bdldfp_decimal.t.cpp (ERROR)] <<<<<<<<<<
../groups/bdl/bdldfp/bdldfp_decimal.t.cpp:467:17: error: no template named 'pair' in namespace 'bsl'; did you mean 'std::pair'?
typedef bsl::pair<Obj, HashType> TestDataPair;
^~~~~~~~~
std::pair
/Library/Developer/CommandLineTools/usr/include/c++/v1/utility:309:29: note: 'std::pair' declared here
struct _LIBCPP_TEMPLATE_VIS pair
^
../groups/bdl/bdldfp/bdldfp_decimal.t.cpp:591:17: error: no template named 'pair' in namespace 'bsl'; did you mean 'std::pair'?
typedef bsl::pair<Obj, HashType> TestDataPair;
^~~~~~~~~
std::pair
/Library/Developer/CommandLineTools/usr/include/c++/v1/utility:309:29: note: 'std::pair' declared here
struct _LIBCPP_TEMPLATE_VIS pair
^
../groups/bdl/bdldfp/bdldfp_decimal.t.cpp:717:17: error: no template named 'pair' in namespace 'bsl'; did you mean 'std::pair'?
typedef bsl::pair<Obj, HashType> TestDataPair;
^~~~~~~~~
std::pair
/Library/Developer/CommandLineTools/usr/include/c++/v1/utility:309:29: note: 'std::pair' declared here
struct _LIBCPP_TEMPLATE_VIS pair
^
3 errors generated.
>>>>>>>>>>
Waf: Leaving directory `/Users/sergey.kurenkov/src/test_bde/build'
Build failed
-> task in 'bdldfp_decimal.t' failed with exit status 1 (run with -v to display more information)
OS:
$ uname -a
Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64
clang:
$ clang++ --version
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
-> task in 'bdldfp_decimal.t' failed with exit status 1:
{task 4337925248: cxx bdldfp_decimal.t.cpp -> bdldfp_decimal.t.cpp.1.o}
['/usr/bin/clang++', '-D__unix', '-m64', '-mtune=opteron', '-D__CLANG_GNUC__=4', '-D__CLANG_GNUC_MINOR__=2', '-D__CLANG_GNUC_PATCHLEVEL__=1', '-DBDE_BUILD_TARGET_DBG', '-DBDE_BUILD_TARGET_EXC', '-DBDE_BUILD_TARGET_MT', '-DBDE_BUILD_TARGET_CPP11', '-std=c++11', '-fexceptions', '-g', '-D_POSIX_PTHREAD_SEMANTICS', '-D_REENTRANT', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdldfp', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdls', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdlde', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdlt', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdlc', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdlma', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdlb', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdlf', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdlsb', '-I/Users/sergey.kurenkov/src/test_bde/groups/bdl/bdlscm', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bsls', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslscm', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bsldoc', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslmf', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslma', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bsltf', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslalg', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslh', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslstl', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bsl+bslhdrs', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bsl+stdhdrs', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslim', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslmt', '-I/Users/sergey.kurenkov/src/test_bde/groups/bsl/bslx', '-I/Users/sergey.kurenkov/src/test_bde/build/thirdparty', '-I/Users/sergey.kurenkov/src/test_bde/thirdparty', '-I/Users/sergey.kurenkov/src/test_bde/build/thirdparty/inteldfp/LIBRARY/src', '-I/Users/sergey.kurenkov/src/test_bde/thirdparty/inteldfp/LIBRARY/src', '../groups/bdl/bdldfp/bdldfp_decimal.t.cpp', '-c', '-o/Users/sergey.kurenkov/src/test_bde/build/groups/bdl/bdldfp/bdldfp_decimal.t.cpp.1.o']
The same issue is on Ubunt with gcc:
[bdldfp_decimal.t.cpp (ERROR)] <<<<<<<<<<
../groups/bdl/bdldfp/bdldfp_decimal.t.cpp: In static member function ‘static void TestDriver::testCase7()’:
../groups/bdl/bdldfp/bdldfp_decimal.t.cpp:467:22: error: ‘pair’ in namespace ‘bsl’ does not name a template type
typedef bsl::pair<Obj, HashType> TestDataPair;
Waf: Leaving directory `/home/skurenkov/src/test_dbe_gcc/build'
Build failed
-> task in 'bdldfp_decimal.t' failed with exit status 1:
{task 140040970348736: cxx bdldfp_decimal.t.cpp -> bdldfp_decimal.t.cpp.1.o}
['/usr/bin/g++', '-Wcast-align', '-Wcast-qual', '-Wall', '-Wextra', '-Wformat-security', '-Wformat-y2k', '-Winit-self', '-Wno-long-long', '-Wno-unknown-pragmas', '-Wpacked', '-Wpointer-arith', '-Wwrite-strings', '-Wno-unused-value', '-Wno-char-subscripts', '-Wsign-compare', '-Wparentheses', '-Wlogical-op', '-Wstrict-overflow=1', '-Wvla', '-Wvolatile-register-var', '-fdiagnostics-show-option', '-Wno-sign-conversion', '-Wconversion', '-Waddress', '-Wtype-limits', '-Wcast-align', '-Wsign-compare', '-Wformat', '-Woverflow', '-Wlarger-than-100000', '-Werror=cast-qual', '-m64', '-mtune=opteron', '-fPIC', '-DBDE_BUILD_TARGET_DBG', '-DBDE_BUILD_TARGET_EXC', '-DBDE_BUILD_TARGET_MT', '-DBDE_BUILD_TARGET_CPP11', '-std=c++11', '--param', 'ggc-min-expand=30', '-fexceptions', '-g', '-D_POSIX_PTHREAD_SEMANTICS', '-D_REENTRANT', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdldfp', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdls', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdlde', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdlt', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdlc', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdlma', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdlb', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdlf', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdlsb', '-I/home/skurenkov/src/test_dbe_gcc/groups/bdl/bdlscm', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bsls', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslscm', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bsldoc', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslmf', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslma', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bsltf', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslalg', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslh', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslstl', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bsl+bslhdrs', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bsl+stdhdrs', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslim', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslmt', '-I/home/skurenkov/src/test_dbe_gcc/groups/bsl/bslx', '-I/home/skurenkov/src/test_dbe_gcc/build/thirdparty', '-I/home/skurenkov/src/test_dbe_gcc/thirdparty', '-I/home/skurenkov/src/test_dbe_gcc/build/thirdparty/inteldfp/LIBRARY/src', '-I/home/skurenkov/src/test_dbe_gcc/thirdparty/inteldfp/LIBRARY/src', '../groups/bdl/bdldfp/bdldfp_decimal.t.cpp', '-c', '-o/home/skurenkov/src/test_dbe_gcc/build/groups/bdl/bdldfp/bdldfp_decimal.t.cpp.1.o']
I got the same error on Mac with waf build --test run
Sounds like bdldfp_decimal.t.cpp
is missing #include <bsl_utility.h>
?
Closing stale issues.