[MDEV-12488] Remove type mismatch in InnoDB printf-like calls Created: 2017-04-11 Updated: 2017-04-24 Resolved: 2017-04-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling, Storage Engine - InnoDB |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.1.23, 10.0.31, 10.2.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Osx clang |
||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.23 | ||||||||
| Description |
|
https://s3.amazonaws.com/archive.travis-ci.org/jobs/220849959/log.txt
|
| Comments |
| Comment by Marko Mäkelä [ 2017-04-19 ] | ||||
|
Apparently, the problem is an inconsistency between <inttypes.h> and <stdint.h> in the Mac OS X headers, for uint64_t and PRIu64. That said, I am testing a fix for 10.0 that does some further cleanup:
| ||||
| Comment by Marko Mäkelä [ 2017-04-19 ] | ||||
|
bb-10.0-marko, merged to bb-10.1-marko. | ||||
| Comment by Daniel Black [ 2017-04-20 ] | ||||
|
Ack. Thank you. Sorry it was so invasive a fix. | ||||
| Comment by Marko Mäkelä [ 2017-04-20 ] | ||||
|
danblack, no problem. We have to bite the bullet some time. For 10.2 it will be a smaller patch, because ib_logf() has been replaced with a C++ class. | ||||
| Comment by Marko Mäkelä [ 2017-04-20 ] | ||||
|
A test merge to bb-10.2-marko was pushed. Maybe in 10.0 it is feasible to do a minimal tweak of the 64-bit types for Mac OS X, and keep ulint and most of the other stuff intact.
| ||||
| Comment by Marko Mäkelä [ 2017-04-21 ] | ||||
|
Reduced version: bb-10.0-marko, also merged to bb-10.1-marko | ||||
| Comment by Daniel Black [ 2017-04-21 ] | ||||
|
I just picked up on the OSX errors after looking on Travis (haven't got hardware myself). Seems almost ok for -Wformat for 10.0 with one error on 10.1
(bb-10.2-marko in progress https://travis-ci.org/MariaDB/server/builds/224207229). 10.1 warnings seem to be less and in different spots: http://buildbot.askmonty.org/buildbot/builders/mac-1012-bintar/builds/1278 | ||||
| Comment by Jan Lindström (Inactive) [ 2017-04-21 ] | ||||
|
Hi, 10.0/10.1 is ok to push. | ||||
| Comment by Marko Mäkelä [ 2017-04-21 ] | ||||
|
Thanks, I pushed the 10.0 and merged to 10.1, with some problems from danblack’s build logs addressed. Revised 10.2 patch: bb-10.2-marko | ||||
| Comment by Jan Lindström (Inactive) [ 2017-04-21 ] | ||||
|
ok to push 10.2. | ||||
| Comment by Daniel Black [ 2017-04-24 ] | ||||
|
Thanks again. |