pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc10 with Ada support added to wip



On Fri, 5 Nov 2021 at 15:58, <irvise_ml%irvise.xyz@localhost> wrote:
>
> El viernes, 5 de noviembre de 2021 a las 16:24, Chavdar Ivanov <ci4ic4%gmail.com@localhost> escribió:
> > >
> > > I actually managed to build it now:
> > >
> > > /usr/pkg/gcc6-aux/bin/ada --version
> > >
> > > ada (GCC) 6.2.0 20160822 (release) -=> GCC AUX [NetBSD64]
> > >
> > > Copyright (C) 2016 Free Software Foundation, Inc.
> > >
> > > This is free software; see the source for copying conditions. There is NO
> > >
> > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> > >
> > > I had to add
> > >
> > > .include "../../math/isl/buildlink3.mk"
> > >
> > > to the package Makefile and edit some 4 files to #include
> > >
> > > <isl/space.h> and #include <isl/id.h> ---
> > >
> > > gcc-6.2.0/gcc/graphite-dependences.c
> > >
> > > gcc-6.2.0/gcc/graphite-isl-ast-to-gimple.c
> > >
> > > gcc-6.2.0/gcc/graphite-optimize-isl.c
> > >
> > > gcc6-aux/work/gcc-6.2.0/gcc/graphite-sese-to-poly.c
> > >
> > > So the patch is easy.
> >
> > But then the build of wip/gcc10-aux fails with:
> >
> > ...
> >
> > ../../../gcc-10.3.0/libgcc/unwind-pe.h:131:39: error: unknown type
> >
> > name '_uleb128_t'
> >
> > ../../../gcc-10.3.0/libgcc/unwind-pe.h:153:39:
> >
> > error: unknown type name '_sleb128_t'
> >
> > ../../../gcc-10.3.0/libgcc/unwind-pe.h:184:55: error: unknown type
> >
> > name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
> >
> > ../../../gcc-10.3.0/libgcc/unwind-pe.h:185:34: error: unknown type
> >
> > name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
> >
> > ../../../gcc-10.3.0/libgcc/unwind-dw2-fde.h:85:8: error: redefinition
> >
> > of 'struct dwarf_eh_bases'
> >
> > ../../../gcc-10.3.0/libgcc/unwind-dw2-fde.h:93:13: error: conflicting
> >
> > types for '__register_frame_info_bases'
> >
> > ....
> >
> > etc. all together some 234 errors in 7 files -
> >
> > ../../../gcc-10.3.0/libgcc/unwind-dw2-fde-dip.c
> >
> > ../../../gcc-10.3.0/libgcc/unwind-dw2-fde.c
> >
> > ../../../gcc-10.3.0/libgcc/unwind-dw2-fde.h
> >
> > ../../../gcc-10.3.0/libgcc/unwind-dw2.c
> >
> > ../../../gcc-10.3.0/libgcc/unwind-dw2.h
> >
> > ../../../gcc-10.3.0/libgcc/unwind-pe.h
> >
> > ../../../gcc-10.3.0/libgcc/unwind.inc
> >
> > ..
> >
> > > Chavdar
> > >
> > > --
> > > --
>
> Hi,
>
> adding isl as a dependency to gcc6-aux could be done. However, adding
> it still does not explain why GCC was getting configured to use it. If
> GCC does not see isl in the tree and it is not explicitly configured
> with isl, it should not use it...
> But I am glad that you could get gcc6-aux installed.
>
> Regarding gcc10-aux, that error is not related to the Ada backend, but
> with libgcc. What operating system are you using?

NetBSD-current:

NetBSD ymir 9.99.92 NetBSD 9.99.92 (GENERIC) #12: Thu Nov  4 12:26:39
GMT 2021  sysbuild@ymir:/home/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC
amd64


> What architecture?

AMD64

> Could you try to compile lang/gcc10 and see if you get the same error?

No, I already have gcc10 installed from pkgsrc and it is actually the
system compiler:

$ /usr/bin/gcc --version
gcc (nb1 20210411) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ /usr/pkg/gcc10/bin/gcc --version
gcc (GCC) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


> gcc10-aux is based on lang/gcc10. Since I have not touched gcc10
> outside of the Ada parts, you should get the same error chain. If that
> is not the case, you may have found something that I will need to fix
> (probably something related to the compiler not being the system
> default but gcc6-aux). Or maybe there is an issue with lang/gcc10 that
> has gone undetected and therefore has been included into gcc10-aux.

I have no idea so far.

>
> Regards,
> Fer

Chavdar


-- 
----


Home | Main Index | Thread Index | Old Index