Bug #73407 | -DMAX_INDEXES != 64 causes build failure in opt_range-t unit test | ||
---|---|---|---|
Submitted: | 27 Jul 2014 15:38 | Modified: | 19 Aug 2014 15:01 |
Reporter: | Laurynas Biveinis (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.7.4 | OS: | Any |
Assigned to: | Tor Didriksen | CPU Architecture: | Any |
Tags: | build, max_indexes, unittest |
[27 Jul 2014 15:38]
Laurynas Biveinis
[28 Jul 2014 8:28]
MySQL Verification Team
Hello Laurynas, Thank you for the bug report. Verified as described. Thanks, Umesh
[28 Jul 2014 8:30]
MySQL Verification Team
// How to repeat [ushastry@ushastry 574]$ cmake28 .. -DMAX_INDEXES=255 -DCMAKE_INSTALL_PREFIX=/home/ushastry/mybuilds/mysql-5.7.4/ -DENABLE_DOWNLOADS=YES .. .. [ushastry@ushastry 574]$ sudo make .. Scanning dependencies of target merge_large_tests-t [ 80%] Building CXX object unittest/gunit/CMakeFiles/merge_large_tests-t.dir/merge_large_tests.cc.o In file included from /home/ushastry/mybuilds/mysql-5.7.4/unittest/gunit/copy_info-t.cc:19, from /home/ushastry/mybuilds/mysql-5.7.4/574/unittest/gunit/merge_large_tests.cc:2: /home/ushastry/mybuilds/mysql-5.7.4/source_downloads/gmock-1.6.0/gtest/include/gtest/gtest.h: In function ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = Bitmap<64u>, T2 = Bitmap<256u>]’: /home/ushastry/mybuilds/mysql-5.7.4/source_downloads/gmock-1.6.0/gtest/include/gtest/gtest.h:1353: instantiated from ‘static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = Bitmap<64u>, T2 = key_map, bool lhs_is_null_literal = false]’ /home/ushastry/mybuilds/mysql-5.7.4/unittest/gunit/opt_range-t.cc:1893: instantiated from here /home/ushastry/mybuilds/mysql-5.7.4/source_downloads/gmock-1.6.0/gtest/include/gtest/gtest.h:1316: error: no match for ‘operator==’ in ‘expected == actual’ /home/ushastry/mybuilds/mysql-5.7.4/sql/sql_bitmap.h:155: note: candidates are: my_bool Bitmap<64u>::operator==(const Bitmap<64u>&) const At global scope: cc1plus: warning: unrecognized command line option "-Wno-compare-distinct-pointer-types" cc1plus: warning: unrecognized command line option "-Wno-unused-local-typedefs" cc1plus: warning: unrecognized command line option "-Wno-null-dereference" make[2]: *** [unittest/gunit/CMakeFiles/merge_large_tests-t.dir/merge_large_tests.cc.o] Error 1 make[1]: *** [unittest/gunit/CMakeFiles/merge_large_tests-t.dir/all] Error 2 make: *** [all] Error 2
[28 Jul 2014 8:31]
MySQL Verification Team
// If you are behind proxy then manually download gmock and put it in source_downloads of 5.7.4 source.. [ushastry@ushastry mysql-5.7.4]$ cd source_downloads/ [ushastry@ushastry source_downloads]$ export http_proxy=www-proxy.us.oracle.com:80 [ushastry@ushastry source_downloads]$ wget http://googlemock.googlecode.com/files/gmock-1.6.0.zip --2014-07-28 13:52:01-- http://googlemock.googlecode.com/files/gmock-1.6.0.zip Resolving www-proxy.us.oracle.com... 148.87.19.20 Connecting to www-proxy.us.oracle.com|148.87.19.20|:80... connected. Proxy request sent, awaiting response... 200 OK Length: 2053682 (2.0M) [application/x-zip] Saving to: “gmock-1.6.0.zip” 100%[===========================================================================================================================================================>] 2,053,682 104K/s in 38s 2014-07-28 13:52:45 (52.4 KB/s) - “gmock-1.6.0.zip” saved [2053682/2053682] [ushastry@ushastry source_downloads]$ cd .. [ushastry@ushastry mysql-5.7.4]$ pwd /home/ushastry/mybuilds/mysql-5.7.4 [ushastry@ushastry mysql-5.7.4]$ mkdir -p 574 [ushastry@ushastry mysql-5.7.4]$ mkdir -p 574 && cd 574 [ushastry@ushastry 574]$
[19 Aug 2014 15:01]
Paul DuBois
Fixed in 5.7.5. Changes for test suite. No changelog entry needed.