Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Issue 10451068: Fixing gcc 4.7 building problems. (Closed)

Created:
8 years, 6 months ago by Han
Modified:
8 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, jochen+watch-content_chromium.org, erikwright (departed), apatrick_chromium, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, oshima+watch_chromium.org, brettw-cc_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fixing gcc 4.7 building problems. a) - gcc-4.7 improved the implicit headers that it includes. with <4.7, the gthr-default.h file always pulls in unistd.h. with >=4.7, they avoided that include when possible. so code that isn't including unistd.h itself but needs it now breaks. b) - narrowing conversion in initiliazation list now raises an 'ill-formed conversion' warning, which causes error when -Werror is given. [THIS PART IS NOW REVERTED IN THE PATCH} c) - included patches from pastebin - http://pastebin.com/raw.php?i=p3UKs7Cg Note - this may not be fixing all the gcc 4.7 build problems for all parts, but rather than submitting one big-fix-for-all CL, we'd better do it incrementally (given that all the modification is reasonable and minor) so that at least some parts get a successful gcc 4.7 build. BUG=None TEST=Built successfully using GCC-4.7 under chromium chroot Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140470

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : Modified per Adam's comments #

Total comments: 8

Patch Set 5 : Modified per Brett's comments #

Total comments: 2

Patch Set 6 : Modified per Mattias' comments #

Patch Set 7 : Modified per Mattias' comments #

Total comments: 1

Patch Set 8 : Reverted patch from pastebin and modified according to James' comments #

Patch Set 9 : Reverted patch from pastebin and modified according to James' comments #

Total comments: 2

Patch Set 10 : Removed spurious newline from webcursor_gtk_data.h #

Total comments: 3

Patch Set 11 : Wrap unisdt.h using OS_POSIX macro #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -26 lines) Patch
M base/time_posix.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/process_proxy/process_output_watcher.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/settings/settings_frontend.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_linux.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/sandbox_init.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M crypto/ec_private_key_nss.cc View 1 2 3 4 5 chunks +6 lines, -5 lines 0 comments Download
M crypto/ec_signature_creator_nss.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M crypto/third_party/nss/secsign.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M ipc/ipc_channel.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ipc/ipc_platform_file.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/base/x509_util_nss.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_broker.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/skia_utils_gtk.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_video_capture_impl.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Han
Hi guys, mind taking a look at this CL? Thanks.
8 years, 6 months ago (2012-05-29 18:21:21 UTC) #1
brettw
Please list who you would like to review what.
8 years, 6 months ago (2012-05-29 18:23:19 UTC) #2
agl
crypto/, ipc/ LGTM https://chromiumcodereview.appspot.com/10451068/diff/2001/ipc/ipc_channel.h File ipc/ipc_channel.h (right): https://chromiumcodereview.appspot.com/10451068/diff/2001/ipc/ipc_channel.h#newcode10 ipc/ipc_channel.h:10: #include <sys/types.h> Wrap with #if defined(OS_POSIX)? ...
8 years, 6 months ago (2012-05-29 18:33:21 UTC) #3
Han
Thanks, Adam. https://chromiumcodereview.appspot.com/10451068/diff/2001/ipc/ipc_channel.h File ipc/ipc_channel.h (right): https://chromiumcodereview.appspot.com/10451068/diff/2001/ipc/ipc_channel.h#newcode10 ipc/ipc_channel.h:10: #include <sys/types.h> On 2012/05/29 18:33:22, agl wrote: ...
8 years, 6 months ago (2012-05-29 18:42:33 UTC) #4
Han
On 2012/05/29 18:23:19, brettw wrote: > Please list who you would like to review what. ...
8 years, 6 months ago (2012-05-29 18:44:35 UTC) #5
brettw
LGTM https://chromiumcodereview.appspot.com/10451068/diff/9001/base/time_posix.cc File base/time_posix.cc (right): https://chromiumcodereview.appspot.com/10451068/diff/9001/base/time_posix.cc#newcode37 base/time_posix.cc:37: static_cast<long int>(microseconds * Time::kNanosecondsPerMicrosecond)}; Can you just do ...
8 years, 6 months ago (2012-05-29 19:30:45 UTC) #6
jochen (gone - plz use gerrit)
Where does the pastebin diff come from, esp. who holds the copyright? On May 29, ...
8 years, 6 months ago (2012-05-29 19:37:33 UTC) #7
Han
Hi Brett, thanks. Done. https://chromiumcodereview.appspot.com/10451068/diff/9001/base/time_posix.cc File base/time_posix.cc (right): https://chromiumcodereview.appspot.com/10451068/diff/9001/base/time_posix.cc#newcode37 base/time_posix.cc:37: static_cast<long int>(microseconds * Time::kNanosecondsPerMicrosecond)}; On ...
8 years, 6 months ago (2012-05-29 20:57:04 UTC) #8
yzshen1
ppapi/ LGTM Thanks!
8 years, 6 months ago (2012-05-29 20:59:49 UTC) #9
Han
On 2012/05/29 19:37:33, jochen wrote: > Where does the pastebin diff come from, esp. who ...
8 years, 6 months ago (2012-05-29 21:01:53 UTC) #10
Mattias Nissler (ping if slow)
LGTM with a nit. https://chromiumcodereview.appspot.com/10451068/diff/7002/chrome/browser/policy/policy_path_parser_linux.cc File chrome/browser/policy/policy_path_parser_linux.cc (right): https://chromiumcodereview.appspot.com/10451068/diff/7002/chrome/browser/policy/policy_path_parser_linux.cc#newcode6 chrome/browser/policy/policy_path_parser_linux.cc:6: #include <unistd.h> I guess this ...
8 years, 6 months ago (2012-05-30 08:02:23 UTC) #11
Andreas Reis
On 2012/05/29 21:01:53, Han wrote: > On 2012/05/29 19:37:33, jochen wrote: > > Where does ...
8 years, 6 months ago (2012-05-30 13:33:42 UTC) #12
jochen (gone - plz use gerrit)
On Wed, May 30, 2012 at 3:33 PM, <andreas.reis@gmail.com> wrote: > On 2012/05/29 21:01:53, Han ...
8 years, 6 months ago (2012-05-30 13:42:56 UTC) #13
Han
Mattias, thanks, done! https://chromiumcodereview.appspot.com/10451068/diff/7002/chrome/browser/policy/policy_path_parser_linux.cc File chrome/browser/policy/policy_path_parser_linux.cc (right): https://chromiumcodereview.appspot.com/10451068/diff/7002/chrome/browser/policy/policy_path_parser_linux.cc#newcode6 chrome/browser/policy/policy_path_parser_linux.cc:6: #include <unistd.h> On 2012/05/30 08:02:25, Mattias ...
8 years, 6 months ago (2012-05-30 16:09:27 UTC) #14
Han
On 2012/05/29 18:44:35, Han wrote: > On 2012/05/29 18:23:19, brettw wrote: > > Please list ...
8 years, 6 months ago (2012-05-31 17:06:45 UTC) #15
jamesr
The CLA situation should be sorted out before spending time reviewing.
8 years, 6 months ago (2012-05-31 17:11:28 UTC) #16
Han
On 2012/05/31 17:11:28, jamesr wrote: > The CLA situation should be sorted out before spending ...
8 years, 6 months ago (2012-05-31 17:14:40 UTC) #17
jamesr
https://chromiumcodereview.appspot.com/10451068/diff/2004/webkit/glue/webcursor_gtk_data.h File webkit/glue/webcursor_gtk_data.h (right): https://chromiumcodereview.appspot.com/10451068/diff/2004/webkit/glue/webcursor_gtk_data.h#newcode35 webkit/glue/webcursor_gtk_data.h:35: #pragma GCC diagnostic ignored "-Wnarrowing" This seems very weird ...
8 years, 6 months ago (2012-05-31 17:33:40 UTC) #18
mal
I would strongly prefer that the original authors of the code sign the CLA to ...
8 years, 6 months ago (2012-05-31 18:24:20 UTC) #19
Han
On 2012/05/31 18:24:20, mal wrote: > I would strongly prefer that the original authors of ...
8 years, 6 months ago (2012-05-31 18:25:38 UTC) #20
mal
We should at least get a statement from the authors that the changes are ok ...
8 years, 6 months ago (2012-05-31 18:27:19 UTC) #21
Andreas Reis
On 2012/05/31 18:27:19, mal wrote: > We should at least get a statement from the ...
8 years, 6 months ago (2012-05-31 18:35:05 UTC) #22
Han
On 2012/05/31 17:33:40, jamesr wrote: > https://chromiumcodereview.appspot.com/10451068/diff/2004/webkit/glue/webcursor_gtk_data.h > File webkit/glue/webcursor_gtk_data.h (right): > > https://chromiumcodereview.appspot.com/10451068/diff/2004/webkit/glue/webcursor_gtk_data.h#newcode35 > ...
8 years, 6 months ago (2012-05-31 20:32:23 UTC) #23
jamesr
webkit/ LGTM https://chromiumcodereview.appspot.com/10451068/diff/5004/webkit/glue/webcursor_gtk_data.h File webkit/glue/webcursor_gtk_data.h (right): https://chromiumcodereview.appspot.com/10451068/diff/5004/webkit/glue/webcursor_gtk_data.h#newcode312 webkit/glue/webcursor_gtk_data.h:312: spurious newline here
8 years, 6 months ago (2012-05-31 20:34:18 UTC) #24
Han
On 2012/05/31 18:35:05, Andreas Reis wrote: > On 2012/05/31 18:27:19, mal wrote: > > We ...
8 years, 6 months ago (2012-05-31 20:36:50 UTC) #25
Han
https://chromiumcodereview.appspot.com/10451068/diff/5004/webkit/glue/webcursor_gtk_data.h File webkit/glue/webcursor_gtk_data.h (right): https://chromiumcodereview.appspot.com/10451068/diff/5004/webkit/glue/webcursor_gtk_data.h#newcode312 webkit/glue/webcursor_gtk_data.h:312: On 2012/05/31 20:34:19, jamesr wrote: > spurious newline here ...
8 years, 6 months ago (2012-05-31 20:41:45 UTC) #26
sky
https://chromiumcodereview.appspot.com/10451068/diff/2005/ui/gfx/skia_utils_gtk.cc File ui/gfx/skia_utils_gtk.cc (right): https://chromiumcodereview.appspot.com/10451068/diff/2005/ui/gfx/skia_utils_gtk.cc#newcode25 ui/gfx/skia_utils_gtk.cc:25: static_cast<guint16>(SkColorGetR(color) * kSkiaToGDKMultiplier), http://developer.gnome.org/gdk/stable/gdk-Colormaps-and-Colors.html says the range is 0 ...
8 years, 6 months ago (2012-06-02 22:41:20 UTC) #27
Han
Thanks, Scott! https://chromiumcodereview.appspot.com/10451068/diff/2005/ui/gfx/skia_utils_gtk.cc File ui/gfx/skia_utils_gtk.cc (right): https://chromiumcodereview.appspot.com/10451068/diff/2005/ui/gfx/skia_utils_gtk.cc#newcode25 ui/gfx/skia_utils_gtk.cc:25: static_cast<guint16>(SkColorGetR(color) * kSkiaToGDKMultiplier), On 2012/06/02 22:41:20, sky ...
8 years, 6 months ago (2012-06-04 20:10:28 UTC) #28
sky
LGTM https://chromiumcodereview.appspot.com/10451068/diff/2005/ui/gfx/skia_utils_gtk.cc File ui/gfx/skia_utils_gtk.cc (right): https://chromiumcodereview.appspot.com/10451068/diff/2005/ui/gfx/skia_utils_gtk.cc#newcode25 ui/gfx/skia_utils_gtk.cc:25: static_cast<guint16>(SkColorGetR(color) * kSkiaToGDKMultiplier), On 2012/06/04 20:10:29, Han wrote: ...
8 years, 6 months ago (2012-06-04 21:13:27 UTC) #29
Han
On 2012/06/04 21:13:27, sky wrote: > LGTM > > https://chromiumcodereview.appspot.com/10451068/diff/2005/ui/gfx/skia_utils_gtk.cc > File ui/gfx/skia_utils_gtk.cc (right): > ...
8 years, 6 months ago (2012-06-04 21:46:38 UTC) #30
Avi (use Gerrit)
That's up to you. Click the "Commit: [ ]" checkbox under your patch to add ...
8 years, 6 months ago (2012-06-04 21:49:03 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shenhan@google.com/10451068/2005
8 years, 6 months ago (2012-06-04 21:54:33 UTC) #32
commit-bot: I haz the power
Try job failure for 10451068-2005 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-04 22:12:18 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shenhan@google.com/10451068/28002
8 years, 6 months ago (2012-06-05 00:03:57 UTC) #34
commit-bot: I haz the power
8 years, 6 months ago (2012-06-05 01:54:56 UTC) #35
Change committed as 140470

Powered by Google App Engine
This is Rietveld 408576698