From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752879AbcAOSH3 (ORCPT ); Fri, 15 Jan 2016 13:07:29 -0500 Received: from outbound1a.ore.mailhop.org ([54.213.22.21]:65250 "EHLO outbound1a.ore.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750894AbcAOSH2 (ORCPT ); Fri, 15 Jan 2016 13:07:28 -0500 X-DKIM: OpenDKIM Filter v2.6.8 io 7A6DC8006E Date: Fri, 15 Jan 2016 18:07:24 +0000 From: Jason Cooper To: Joe Perches Cc: Peter Senna Tschudin , thomas@winischhofer.net, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, sergei.shtylyov@cogentembedded.com, Masahiro Yamada Subject: Re: [PATCH V2 0/7] usb-misc: sisusbvga: cleanup and bug fix Message-ID: <20160115180724.GA29306@io.lakedaemon.net> References: <1452879694-21206-1-git-send-email-peter.senna@collabora.com> <1452880309.8586.56.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1452880309.8586.56.camel@perches.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Joe, Peter, On Fri, Jan 15, 2016 at 09:51:49AM -0800, Joe Perches wrote: > (cc'ing Masahiro Yamada and Jason Cooper for objdiff) > > On Fri, 2016-01-15 at 18:41 +0100, Peter Senna Tschudin wrote: ... > As far as I know, gcc has never made guarantees about > object output for the same input content. True, we may want to reach out to the folks doing reproducible builds. They may have seen/diagnosed/fixed this already. > > # But here is the interesting part. Even compiling the exact same source code > > # produces different results > > $ git checkout -- . > > $ md5sum drivers/usb/misc/sisusbvga/sisusb.c > > d6ffbd44f3f1cf81fd55ce84441ab889  drivers/usb/misc/sisusbvga/sisusb.c > > > > $ make -j4 drivers/usb/misc/sisusbvga/sisusb.o > > $ objdump -D drivers/usb/misc/sisusbvga/sisusb.o| \ > >   sed "s/^[[:space:]]\+[0-9a-f]\+//" > /tmp/base_dump_again > > > > $ diff /tmp/base_dump /tmp/base_dump_again  > >  9135,9136c9135,9136 > >  < : 8e 4d 31              mov    0x31(%rbp),%cs > >  < : 46 00 00              rex.RX add %r8b,(%rax) > >  --- > >  > : de 10                 ficom  (%rax) > >  > : 33 46 00              xor    0x0(%rsi),%eax > >  9139c9139 > >  < : 4b 00 00              rex.WXB add %al,(%r8) > >  --- > >  > : 00 4b 00              add    %cl,0x0(%rbx) Well, this clearly shows that the whitespace change is a red herring. I'm just guessing here, but could you try with -j1 to see if you can still reproduce this inconsistency? Cleaning the tree between builds may also narrow down the suspects. thx, Jason.