From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69884 invoked by alias); 24 Nov 2015 11:27:43 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 69857 invoked by uid 89); 24 Nov 2015 11:27:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 24 Nov 2015 11:27:41 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 292024E; Tue, 24 Nov 2015 11:27:39 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-34.ams2.redhat.com [10.36.116.34]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tAOBRbkP002285 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 24 Nov 2015 06:27:38 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id tAOBRZo2019636; Tue, 24 Nov 2015 12:27:35 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id tAOBRVIo019635; Tue, 24 Nov 2015 12:27:31 +0100 Date: Tue, 24 Nov 2015 11:34:00 -0000 From: Jakub Jelinek To: Christophe Lyon Cc: Maxim Ostapenko , Kostya Serebryany , GCC Patches , Yury Gribov , Vyacheslav Barinov , Slava Garbuzov , Adhemerval Zanella Subject: Re: [PATCH 1/2] Libsanitizer merge from upstream r253555. Message-ID: <20151124112731.GP5675@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20151123132411.GB5675@tucnak.redhat.com> <565416E9.3080905@partner.samsung.com> <20151124082523.GK5675@tucnak.redhat.com> <56542184.5040003@partner.samsung.com> <20151124083833.GL5675@tucnak.redhat.com> <565426A4.1050804@partner.samsung.com> <20151124111210.GO5675@tucnak.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg02873.txt.bz2 On Tue, Nov 24, 2015 at 12:23:05PM +0100, Christophe Lyon wrote: > On 24 November 2015 at 12:12, Jakub Jelinek wrote: > > On Tue, Nov 24, 2015 at 12:08:13PM +0100, Christophe Lyon wrote: > >> > Sure. > >> > I had a build in progress with your proposed patch, but it didn't > >> > complete before you committed :-) > >> > > >> > >> So... it still does not work for me. I re-tried several times, made sure I had > >> everything cleanup before starting new builds from scratch, hence the delay. > >> > >> I'm still seeing: > >> /tmp/2050111_1.tmpdir/aci-gcc-fsf/sources/gcc-fsf/gccsrc/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:326:44: > >> error: 'ARM_VFPREGS_SIZE' was not declared in this scope > >> unsigned struct_user_vfpregs_struct_sz = ARM_VFPREGS_SIZE; > > > > So cut'n'paste the sanitizer_platform_limits_posix.cc compilation command > > line and replace -c with -E -dD, then look if the wrapper asm/ptrace.h is > > included or not and why? > > > It pulls the one from the sysroot: > sysroot-arm-none-linux-gnueabihf/usr/include/asm/ptrace.h > (I configure GCC --with-sysroot=XXX) Then you should figure out where the sysroot include dirs are added in the sanitizer_common/Makefile and make sure -isystem $(top_srcdir)/include/system comes before that. Jakub