cl : Command line warning D9025: overriding '/Oy' with '/Oy-'

892 views
Skip to first unread message

Gabriel Charette

unread,
May 24, 2012, 11:02:11 AM5/24/12
to Chromium-dev
I'm seeing
cl : Command line warning D9025: overriding '/Oy' with '/Oy-'
all over the build off an LKGR sync this morning with VS2010.

According to msdn this happens because we specify /Oy and then /Oy- which overwrites the former.

Seems to be a link warning for every project now, anyone else seeing this?

Gab

Thiago Farina

unread,
May 25, 2012, 1:02:07 PM5/25/12
to Chromium-dev, Gabriel Charette


On May 24, 12:02 pm, Gabriel Charette <g...@chromium.org> wrote:
> I'm seeing
> cl : Command line warning D9025: overriding '/Oy' with '/Oy-'
> all over the build off an LKGR sync this morning with VS2010.
>
> According to msdn<http://msdn.microsoft.com/en-us/library/8k3f51f1(v=vs.80).aspx>
> this
> happens because we specify /Oy and then /Oy- which overwrites the former.
>
> Seems to be a link warning for every project now, anyone else seeing this?
>
Yes, I saw this problem too in my tries.

http://build.chromium.org/p/tryserver.chromium/builders/win_rel/builds/32203/steps/compile/logs/stdio

> Gab

Alex Pakhunov

unread,
May 25, 2012, 1:09:59 PM5/25/12
to tfa...@chromium.org, Chromium-dev, Gabriel Charette
Well, this piece from src/build/common.gpyi seems to be related:

              ['win_debug_OmitFramePointers==0', {
                'OmitFramePointers': 'false',
                # The above is not sufficient (http://crbug.com/106711): it
                # simply eliminates an explicit "/Oy", but both /O2 and /Ox
                # perform FPO regardless, so we must explicitly disable.
                # We still want the false setting above to avoid having
                # "/Oy /Oy-" and warnings about overriding.
                'AdditionalOptions': ['/Oy-'],
              }],
Alex.


> Gab

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-dev



--
Alex.

Scott Graham

unread,
May 25, 2012, 1:48:23 PM5/25/12
to tfa...@chromium.org, Gabriel Charette, Chromium-dev
I can't reproduce this locally. Gab, did you see it locally, or on a try bot?

The gyp settings and gyp don't seem to have changed recently.

On Fri, May 25, 2012 at 10:02 AM, Thiago Farina <tfa...@chromium.org> wrote:
>
>

Scott Graham

unread,
May 25, 2012, 2:28:06 PM5/25/12
to tfa...@chromium.org, Gabriel Charette, Bradley Nelson, Chromium-dev
I take that back, I can reproduce it locally.

I think it started here: https://chromiumcodereview.appspot.com/10423010

Looking at common.gypi, Release seems to default FPO to on via
win_release_OmitFramePointers=1, but then internal/release_impl.gypi
wants to turn it off again.

Do we actually want FPO on or off in Release? It looks like most
recently we felt off was correct, so win_release_OmitFramePointers
should default to 0.

Scott Graham

unread,
May 25, 2012, 2:33:45 PM5/25/12
to tfa...@chromium.org, Gabriel Charette, Bradley Nelson, Chromium-dev
On Fri, May 25, 2012 at 11:28 AM, Scott Graham <sco...@chromium.org> wrote:
> I take that back, I can reproduce it locally.
>
> I think it started here: https://chromiumcodereview.appspot.com/10423010
>
> Looking at common.gypi, Release seems to default FPO to on via
> win_release_OmitFramePointers=1, but then internal/release_impl.gypi
> wants to turn it off again.
>
> Do we actually want FPO on or off in Release? It looks like most
> recently we felt off was correct, so win_release_OmitFramePointers
> should default to 0.

https://chromiumcodereview.appspot.com/10453040

Gabriel Charette

unread,
May 28, 2012, 12:52:09 PM5/28/12
to Scott Graham, tfa...@chromium.org, Bradley Nelson, Chromium-dev
sgtm, but I have no knowledge of whether this is the correct thing to do (i.e. whether we want to OmitFramePointers or not).

Sigurður Ásgeirsson

unread,
May 28, 2012, 2:10:54 PM5/28/12
to g...@chromium.org, Anthony LaForge, Scott Graham, tfa...@chromium.org, Bradley Nelson, Chromium-dev
I believe we had decided FPO should be off, as otherwise crash reporting gets pretty messed up.
Anthony, do you remember the details?

Gabriel Charette

unread,
May 31, 2012, 6:48:27 PM5/31/12
to Sigurður Ásgeirsson, Anthony LaForge, Scott Graham, tfa...@chromium.org, Bradley Nelson, Chromium-dev
Ping?

Anthony LaForge

unread,
May 31, 2012, 6:52:51 PM5/31/12
to Gabriel Charette, Sigurður Ásgeirsson, Scott Graham, tfa...@chromium.org, Bradley Nelson, Chromium-dev
Siggi sized it up correctly,  ultimately we disabled it to improve our ability to analyze crashes.  There were some dumps that FPO mangled too badly to diagnose (I don't recall if the problems were walking the dumps via breakpad, or if too much info was removed).

Kind Regards,

Anthony Laforge
Technical Program Manager
Mountain View, CA
Reply all
Reply to author
Forward
0 new messages