This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] Libsanitizer merge from upstream r253555.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Christophe Lyon <christophe dot lyon at linaro dot org>
- Cc: Maxim Ostapenko <m dot ostapenko at partner dot samsung dot com>, Kostya Serebryany <kcc at google dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Yury Gribov <y dot gribov at samsung dot com>, Vyacheslav Barinov <v dot barinov at samsung dot com>, Slava Garbuzov <v dot garbuzov at samsung dot com>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Date: Tue, 24 Nov 2015 12:27:31 +0100
- Subject: Re: [PATCH 1/2] Libsanitizer merge from upstream r253555.
- Authentication-results: sourceware.org; auth=none
- References: <20151123132411 dot GB5675 at tucnak dot redhat dot com> <565416E9 dot 3080905 at partner dot samsung dot com> <20151124082523 dot GK5675 at tucnak dot redhat dot com> <56542184 dot 5040003 at partner dot samsung dot com> <20151124083833 dot GL5675 at tucnak dot redhat dot com> <565426A4 dot 1050804 at partner dot samsung dot com> <CAKdteOb8+O=PpTDdX3tZqeAE_4ojO02dujm=PYxwXQqTnvrkBQ at mail dot gmail dot com> <CAKdteOYmPA8TDDsdcz7jUgQ5LiUpCgbTMY5PH78D2ZFF=GKqhg at mail dot gmail dot com> <20151124111210 dot GO5675 at tucnak dot redhat dot com> <CAKdteOYw_cB83oKzfHeayeshaTzhqo--tqjrcYgr9RMymJ_dhA at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Nov 24, 2015 at 12:23:05PM +0100, Christophe Lyon wrote:
> On 24 November 2015 at 12:12, Jakub Jelinek <jakub@redhat.com> 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