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 14:56, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>
> On Fri, 5 Nov 2021 at 13:56, <irvise_ml%irvise.xyz@localhost> wrote:
> >
> > El viernes, 5 de noviembre de 2021 a las 12:36, Chavdar Ivanov <ci4ic4%gmail.com@localhost> escribió:
> >
> > > I tried to build it under -current from yesterday and also current
> > >
> > > enough pkgsrc. For me, lang/gcc6-aux fails early with:
> > >
> > > ....
> > >
> > > /usr/pkgsrc/lang/gcc6-aux/work/gcc-6.2.0/gcc/graphite-optimize-isl.c:
> > >
> > > In function 'isl_schedule_node*
> > >
> > > get_schedule_for_node_st(isl_schedule_node*, void*)':
> > >
> > > /usr/pkgsrc/lang/gcc6-aux/work/gcc-6.2.0/gcc/graphite-optimize-isl.c:59:52:
> > >
> > > error: 'isl_space_dim' was not declared in this scope
> > >
> > > unsigned dims = isl_space_dim (space, isl_dim_set);
> > >
> > > ^
> > >
> > > /usr/pkgsrc/lang/gcc6-aux/work/gcc-6.2.0/gcc/graphite-optimize-isl.c:62:24:
> > >
> > > error: 'isl_space_free' was not declared in this scope
> > >
> > > isl_space_free (space);
> > >
> > > ^
> > >
> > > /usr/pkgsrc/lang/gcc6-aux/work/gcc-6.2.0/gcc/graphite-dependences.c:
> > >
> > > In function 'isl_map* constrain_domain(isl_map*, isl_set*)':
> > >
> > > /usr/pkgsrc/lang/gcc6-aux/work/gcc-6.2.0/gcc/graphite-dependences.c:48:53:
> > >
> > > error: 'isl_space_get_tuple_id' was not declared in this scope
> > >
> > > isl_id *id = isl_space_get_tuple_id (d, isl_dim_in);
> > >
> > > ^
> > >
> > > /usr/pkgsrc/lang/gcc6-aux/work/gcc-6.2.0/gcc/graphite-dependences.c:51:20:
> > >
> > > error: 'isl_space_free' was not declared in this scope
> > >
> > > isl_space_free (d);
> > >
> > > ^
> > >
> > > ..........(many more).
> > >
> > > > Regards,
> > > > --------
> > > >
> > > > Fernando Oleo Blanco
> > > >
> > > > https://irvise.xyz
> > >
> > > Chavdar
> > >
> > >
> > > -----------
> >
> > Hi Chavdar,
> >
> > that is an intriguing issue. gcc6-aux has been on pkgsrc for a while already, and since... 2021-Q2?, has been made the default Ada compiler.
> >
> > However, I think I know what is happening. For whatever reason (maybe modified make environment?), gcc6-aux is getting configured to use the isl library. That should _not_ be the case, since gcc6-aux should not make use of it and gcc6-aux is not configured to download isl and use it during build time.
> >
> > Why is it getting configured to use isl? I have no idea, but it should not and, once again, it is not configured to use isl... If you could provide more details about your system that would be nice. Specially if you include the initial configuration of gcc6-aux, which should give information about if it is pulling isl into the build or not.
> >
> > And just to give you a bit more info, I just got a successful gcc10-aux build in a new sandbox environment, so it really should be working out of the box. Jay Patelani is also in the process of building it.
> >
> > ---
> >
> > Also, I am getting a new type of issue I am not very happy about. However, I suppose it has to do with how the pkgsrc infra is set up. When I run 'make test' in gcc10-aux after a successful build in a sandbox I get:
> >
> > ===> Skipping vulnerability checks.
> > WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
> > WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
> > => Test dependency dejagnu-[0-9]*: NOT found
> > => Verifying reinstall for ../../devel/dejagnu
> > ===> Skipping vulnerability checks.
> > WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
> > WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
> > ===> Creating toolchain wrappers for dejagnu-1.6.2
> > ERROR: gcc10>=10.3.0 is not installed; can't buildlink files.
> > *** Error code 1
> >
> > Stop.
> > make[2]: stopped in /usr/pkgsrc/devel/dejagnu
> > *** Error code 1
> >
> > Stop.
> > make[1]: stopped in /usr/pkgsrc/wip/gcc10-aux
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/pkgsrc/wip/gcc10-aux
> >
> > Basically, when it tries to build dejagnu as a dependency, it fails since "gcc10>=10.3.0 is not installed; can't buildlink files."... Which is +- true, but gcc10-aux _is_ gcc10 too. I can build dejagnu directly when I go to devel/dejagnu and 'make install'. But it pulls lang/gcc10 instead of using gcc10-aux. Once again, I am pretty sure that is due to the way pkgsrc infra is set up.
> >
> > Regards,
> > Fernando Oleo Blanco
> >
> >
> 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
>
> --
> ----



-- 
----


Home | Main Index | Thread Index | Old Index