• [gentoo-user] Kicad and complications from hdf5 and vtk USE flags. Not

    From Dale@21:1/5 to All on Thu Feb 17 02:10:01 2022
    Howdy,

    I seem to have ran into a road block.  To get a clean path for emerge recently, I had to unmerge a few packages.  I removed Kicad, libreoffice
    and a few others.  Some of them I could add back with no problem.  I
    just emerged them and off it went.  I'm having trouble with libreoffice
    but I think it is a compile failure so I may just go back to a older
    version.  The one I can't get around is Kicad.  When I run emerge the
    first time, I get this:


    root@fireball / # emerge -auDN world

    These are the packages that would be merged, in order:

    Calculating dependencies... done!

    The following USE changes are necessary to proceed:
     (see "package.use" in the portage(5) man page for more details)
    # required by sci-libs/vtk-9.0.3-r4::gentoo
    # required by sci-libs/opencascade-7.5.2-r5::gentoo[vtk]
    # required by sci-electronics/kicad-5.1.12-r2::gentoo
    # required by sci-electronics/kicad-symbols-5.1.12::gentoo
    # required by sci-electronics/kicad-meta-5.1.12::gentoo
    # required by @selected
    # required by @world (argument)
    =sci-libs/hdf5-1.10.5-r1 -mpi
    #
    =sci-libs/vtk-9.0.3-r4 mpi

    Would you like to add these changes to your config files? [Yes/No] n root@fireball / #


    I do my file edits manually so I go make the change it wants and try
    again with the same command. 


    root@fireball / # emerge -auDN world

    These are the packages that would be merged, in order:

    Calculating dependencies... done!

    The following USE changes are necessary to proceed:
     (see "package.use" in the portage(5) man page for more details)
    # required by sci-libs/vtk-9.0.3-r4::gentoo
    # required by sci-libs/opencascade-7.5.2-r5::gentoo[vtk]
    # required by sci-electronics/kicad-5.1.12-r2::gentoo
    # required by sci-electronics/kicad-symbols-5.1.12::gentoo
    # required by sci-electronics/kicad-meta-5.1.12::gentoo
    # required by @selected
    # required by @world (argument)
    =sci-libs/hdf5-1.10.5-r1 mpi
    #
    =sci-libs/vtk-9.0.3-r4 -mpi

    Would you like to add these changes to your config files? [Yes/No] n root@fireball / #


    Each time it just reverses the recommended settings.  I've been dealing
    with this for a couple days now.  I've tried changing settings on the
    packages that are pulling it in and anything else I can think of but so
    far, this is as close I've got to it being able to update. 

    Does someone have their emerge decoder ring handy?  I just can't figure
    out what changes to make to get past this.  Once this is done, I'll
    start hammering on libreoffice. 

    Thanks.

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Miles Malone@21:1/5 to Dale on Thu Feb 17 02:30:01 2022
    Hi Dale,

    Try removing the vtk useflag from opencascade. Also, add verbose to
    your emerge arguments and it may show you the full RDEPEND

    Regards,

    Miles

    On Thu, 17 Feb 2022 at 11:07, Dale <rdalek1967@gmail.com> wrote:

    Howdy,

    I seem to have ran into a road block. To get a clean path for emerge recently, I had to unmerge a few packages. I removed Kicad, libreoffice
    and a few others. Some of them I could add back with no problem. I
    just emerged them and off it went. I'm having trouble with libreoffice
    but I think it is a compile failure so I may just go back to a older
    version. The one I can't get around is Kicad. When I run emerge the
    first time, I get this:


    root@fireball / # emerge -auDN world

    These are the packages that would be merged, in order:

    Calculating dependencies... done!

    The following USE changes are necessary to proceed:
    (see "package.use" in the portage(5) man page for more details)
    # required by sci-libs/vtk-9.0.3-r4::gentoo
    # required by sci-libs/opencascade-7.5.2-r5::gentoo[vtk]
    # required by sci-electronics/kicad-5.1.12-r2::gentoo
    # required by sci-electronics/kicad-symbols-5.1.12::gentoo
    # required by sci-electronics/kicad-meta-5.1.12::gentoo
    # required by @selected
    # required by @world (argument)
    =sci-libs/hdf5-1.10.5-r1 -mpi
    #
    =sci-libs/vtk-9.0.3-r4 mpi

    Would you like to add these changes to your config files? [Yes/No] n root@fireball / #


    I do my file edits manually so I go make the change it wants and try
    again with the same command.


    root@fireball / # emerge -auDN world

    These are the packages that would be merged, in order:

    Calculating dependencies... done!

    The following USE changes are necessary to proceed:
    (see "package.use" in the portage(5) man page for more details)
    # required by sci-libs/vtk-9.0.3-r4::gentoo
    # required by sci-libs/opencascade-7.5.2-r5::gentoo[vtk]
    # required by sci-electronics/kicad-5.1.12-r2::gentoo
    # required by sci-electronics/kicad-symbols-5.1.12::gentoo
    # required by sci-electronics/kicad-meta-5.1.12::gentoo
    # required by @selected
    # required by @world (argument)
    =sci-libs/hdf5-1.10.5-r1 mpi
    #
    =sci-libs/vtk-9.0.3-r4 -mpi

    Would you like to add these changes to your config files? [Yes/No] n root@fireball / #


    Each time it just reverses the recommended settings. I've been dealing
    with this for a couple days now. I've tried changing settings on the packages that are pulling it in and anything else I can think of but so
    far, this is as close I've got to it being able to update.

    Does someone have their emerge decoder ring handy? I just can't figure
    out what changes to make to get past this. Once this is done, I'll
    start hammering on libreoffice.

    Thanks.

    Dale

    :-) :-)


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Miles Malone on Thu Feb 17 07:10:01 2022
    Miles Malone wrote:
    Hi Dale,

    Try removing the vtk useflag from opencascade. Also, add verbose to
    your emerge arguments and it may show you the full RDEPEND

    Regards,

    Miles



    I already have -v in my make.conf defaults.  So it is already there I
    just don't have to type it.  I tried a huge number of options before
    getting this close.  Sometimes I'd have a dozen packages complaining
    about USE flags or other issues.  This is the new output but it looks
    the same to me. 


    root@fireball / # emerge -auDN world

    These are the packages that would be merged, in order:

    Calculating dependencies... done!

    The following USE changes are necessary to proceed:
     (see "package.use" in the portage(5) man page for more details)
    # required by sci-libs/vtk-9.0.3-r4::gentoo
    # required by sci-libs/opencascade-7.5.2-r5::gentoo
    # required by sci-electronics/kicad-5.1.12-r2::gentoo
    # required by sci-electronics/kicad-symbols-5.1.12::gentoo
    # required by sci-electronics/kicad-meta-5.1.12::gentoo
    # required by @selected
    # required by @world (argument)
    =sci-libs/hdf5-1.10.5-r1 mpi
    #
    =sci-libs/vtk-9.0.3-r4 -mpi

    Would you like to add these changes to your config files? [Yes/No] n root@fireball / #


    Open to ideas?  Maybe I'm catching the tree in a bad state or
    something.  I don't recall ever seeing something like this. 

    This is the complete emerge command from emerge.log.


    emerge --newuse --oneshot --unordered-display --update --ask
    --backtrack=100 --deep --keep-going --with-bdeps=y --quiet-build=n --regex-search-auto=y --verbose world


    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Miles Malone@21:1/5 to Dale on Thu Feb 17 07:40:01 2022
    Well I just installed kicad-meta (6.0.1), and neither vtk nor hdf5 are
    pulled into the dep tree as a result... Given opencascade[vtk] is
    what's pulling in vtk in your emerge above, disabling the vtk
    useflag's probably going to help.

    In addition, I cant imagine why in a million years MPI should be
    getting pulled in unless you've explicitly enabled it somewhere else,
    MPI's hardly something you'd be using if you werent USING, i.e. on a distributed memory system. Looking at the dependency tree, the most
    likely place for an MPI use flag to be causing all kinds of mpi
    related shenanigans with other packages is Boost. If you've enabled
    MPI for Boost without actually needing it, that'll cause all kinds of
    tree problems. In my experience if you're using MPI you need to be
    really really careful about enabling it globally, it's incredibly hard
    for the devs to test given test systems are rarely clusters, so it's
    often got significant breakage. Of course if you're developing for a
    cluster, which I do from time to time, this can be a pain.

    So assuming you've got *absolutely no libraries* in your world file
    (there really shouldnt be), make sure you've got mpi and vtk disabled
    globally, and not per-package enabled for boost and opencascade. Get
    rid of vtk and hdf5, and try again? (Assuming you dont need hdf5 for
    something other than kicad that is, of course. It's the main format I
    use for data storage as it plays nicely with Matlab and okay with c++
    and python)

    That's my best guess as to what's causing your blockers, anyways.
    Give it a go and see where the error moves to

    On Thu, 17 Feb 2022 at 16:09, Dale <rdalek1967@gmail.com> wrote:

    Miles Malone wrote:
    Hi Dale,

    Try removing the vtk useflag from opencascade. Also, add verbose to
    your emerge arguments and it may show you the full RDEPEND

    Regards,

    Miles



    I already have -v in my make.conf defaults. So it is already there I
    just don't have to type it. I tried a huge number of options before
    getting this close. Sometimes I'd have a dozen packages complaining
    about USE flags or other issues. This is the new output but it looks
    the same to me.


    root@fireball / # emerge -auDN world

    These are the packages that would be merged, in order:

    Calculating dependencies... done!

    The following USE changes are necessary to proceed:
    (see "package.use" in the portage(5) man page for more details)
    # required by sci-libs/vtk-9.0.3-r4::gentoo
    # required by sci-libs/opencascade-7.5.2-r5::gentoo
    # required by sci-electronics/kicad-5.1.12-r2::gentoo
    # required by sci-electronics/kicad-symbols-5.1.12::gentoo
    # required by sci-electronics/kicad-meta-5.1.12::gentoo
    # required by @selected
    # required by @world (argument)
    =sci-libs/hdf5-1.10.5-r1 mpi
    #
    =sci-libs/vtk-9.0.3-r4 -mpi

    Would you like to add these changes to your config files? [Yes/No] n root@fireball / #


    Open to ideas? Maybe I'm catching the tree in a bad state or
    something. I don't recall ever seeing something like this.

    This is the complete emerge command from emerge.log.


    emerge --newuse --oneshot --unordered-display --update --ask
    --backtrack=100 --deep --keep-going --with-bdeps=y --quiet-build=n --regex-search-auto=y --verbose world


    Dale

    :-) :-)


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Miles Malone on Thu Feb 17 08:10:02 2022
    Miles Malone wrote:
    Well I just installed kicad-meta (6.0.1), and neither vtk nor hdf5 are
    pulled into the dep tree as a result... Given opencascade[vtk] is
    what's pulling in vtk in your emerge above, disabling the vtk
    useflag's probably going to help.

    In addition, I cant imagine why in a million years MPI should be
    getting pulled in unless you've explicitly enabled it somewhere else,
    MPI's hardly something you'd be using if you werent USING, i.e. on a distributed memory system. Looking at the dependency tree, the most
    likely place for an MPI use flag to be causing all kinds of mpi
    related shenanigans with other packages is Boost. If you've enabled
    MPI for Boost without actually needing it, that'll cause all kinds of
    tree problems. In my experience if you're using MPI you need to be
    really really careful about enabling it globally, it's incredibly hard
    for the devs to test given test systems are rarely clusters, so it's
    often got significant breakage. Of course if you're developing for a
    cluster, which I do from time to time, this can be a pain.

    So assuming you've got *absolutely no libraries* in your world file
    (there really shouldnt be), make sure you've got mpi and vtk disabled globally, and not per-package enabled for boost and opencascade. Get
    rid of vtk and hdf5, and try again? (Assuming you dont need hdf5 for something other than kicad that is, of course. It's the main format I
    use for data storage as it plays nicely with Matlab and okay with c++
    and python)

    That's my best guess as to what's causing your blockers, anyways.
    Give it a go and see where the error moves to



    I'm fine with disabling it globally so I added it to make.conf.  I also
    made sure any entries in package.use were commented out.  Now I get this:


    root@fireball / # emerge -auDN world

    These are the packages that would be merged, in order:

    Calculating dependencies... done!

    !!! The ebuild selected to satisfy "<sci-libs/hdf5-1.12:=[mpi=]" has
    unmet requirements.
    - sci-libs/hdf5-1.10.5-r1::gentoo USE="cxx hl threads zlib -debug
    -examples -fortran -mpi -szip -unsupported" ABI_X86="(64)"

      The following REQUIRED_USE flag constraints are unsatisfied:
        !unsupported? ( threads? ( !cxx !hl ) )

      The above constraints are a subset of the following complete expression:     !unsupported? ( at-most-one-of ( cxx mpi ) threads? ( !cxx !mpi
    !fortran !hl ) )

    (dependency required by "sci-libs/vtk-9.0.3-r4::gentoo" [ebuild])
    (dependency required by "sci-libs/opencascade-7.5.2-r5::gentoo" [installed]) (dependency required by "sci-electronics/kicad-5.1.12-r2::gentoo[occ]" [installed])
    (dependency required by "sci-electronics/kicad-symbols-5.1.12::gentoo" [installed])
    (dependency required by "sci-electronics/kicad-meta-5.1.12::gentoo" [installed])
    (dependency required by "@selected" [set])
    (dependency required by "@world" [argument])
    root@fireball / #


    Also, keep in mind I'm still on V5 of Kicad.  I'm wanting some more time
    for bug fixes and such before I update to V6.  It's sort of a one way street.  I might add tho, there was a update to V5 a few weeks ago that started this whole mess.  Ever since that new version of V5 hit the
    tree, I've had issues getting clean paths to upgrade with Kicad
    installed.  If I could, I'd go back to the previous version but when
    they did the update, they removed the previous version that was
    working.  I've considered putting off my projects and just leaving Kicad uninstalled for a while. 

    Thanks for the help.  My decoder ring just can't figure out what emerge
    is trying to say, especially when it conflicts with itself.

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Arve Barsnes on Thu Feb 17 08:50:01 2022
    Arve Barsnes wrote:
    On Thu, 17 Feb 2022 at 08:02, Dale <rdalek1967@gmail.com> wrote:
    !!! The ebuild selected to satisfy "<sci-libs/hdf5-1.12:=[mpi=]" has
    unmet requirements.
    - sci-libs/hdf5-1.10.5-r1::gentoo USE="cxx hl threads zlib -debug
    -examples -fortran -mpi -szip -unsupported" ABI_X86="(64)"

    The following REQUIRED_USE flag constraints are unsatisfied:
    !unsupported? ( threads? ( !cxx !hl ) )

    The above constraints are a subset of the following complete expression: >> !unsupported? ( at-most-one-of ( cxx mpi ) threads? ( !cxx !mpi
    !fortran !hl ) )
    The mpi flag now seeds to be a distraction, as the actual problem now
    is that hdf5 can't have both the threads and the cxx USE flag enabled
    at the same time. Maybe you have these in global, or set somewhere in
    your config?

    Regards,
    Arve




    Ah ha.  Success.  I took a look at my USE line in make.conf.  I did have threads in there so I moved it to a commented line to remove its consideration.  I also noticed -cxx was in there as well and moved it to
    a commented line.  I also commented out as much as I could in
    package.use, the things I'd tried previously.  Now it has a clean path
    to upgrade. 

    Thanks much.  Once those get done updating, I'll apply my hammer to libreoffice.  :-D

    Dale

    :-)  :-)

    P. S.  Is there a tool to make the USE line in make.conf in alphabetical
    order or something?  When I add things, I try to put them in order so it
    is easier to find them.  For some reason, they are out of order, a lot.  Something at some point messed up my organizing, badly.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arve Barsnes@21:1/5 to Dale on Thu Feb 17 08:30:01 2022
    On Thu, 17 Feb 2022 at 08:02, Dale <rdalek1967@gmail.com> wrote:
    !!! The ebuild selected to satisfy "<sci-libs/hdf5-1.12:=[mpi=]" has
    unmet requirements.
    - sci-libs/hdf5-1.10.5-r1::gentoo USE="cxx hl threads zlib -debug
    -examples -fortran -mpi -szip -unsupported" ABI_X86="(64)"

    The following REQUIRED_USE flag constraints are unsatisfied:
    !unsupported? ( threads? ( !cxx !hl ) )

    The above constraints are a subset of the following complete expression:
    !unsupported? ( at-most-one-of ( cxx mpi ) threads? ( !cxx !mpi
    !fortran !hl ) )

    The mpi flag now seeds to be a distraction, as the actual problem now
    is that hdf5 can't have both the threads and the cxx USE flag enabled
    at the same time. Maybe you have these in global, or set somewhere in
    your config?

    Regards,
    Arve

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Dale on Thu Feb 17 09:50:01 2022
    On Thu, 17 Feb 2022 01:42:39 -0600, Dale wrote:

    P. S.  Is there a tool to make the USE line in make.conf in alphabetical order or something?  When I add things, I try to put them in order so it
    is easier to find them.  For some reason, they are out of order, a lot.  Something at some point messed up my organizing, badly.

    emerge --info shows the flags in alphabetical order, whatever their order
    in make.conf. It lso shows all flags, including those set b the profile,
    so you can see exactly what portage is using.


    --
    Neil Bothwick

    Deja Foobar: A feeling of having made the same mistake before.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmIOCfUACgkQ92eFu0QS MJgY3RAAlNxCNcpIJ8UqNsEtfAIXu2lwxML8DhiyEWcsp6qK0DyguRt9FeW0BmMk 567Gd88TcshjUseFIxJGhU5cuAlKVTe0l4vmKHNx2o0mrGwiNFgnh36kBvbp7KKP pUBSw78KTM+ah7i++U5iGSGMovKMujPcCIr+3xg+MQ+WfBDTM4JgYSE/IxeEHAFe UWHKN6ovDovx/GsjA/ZTtWkdgEfYMHAe6rpgTmy1c1Oy2Dx6PVpK4e5FuFyr7hos S4LzCimoAi7ueH1yM3L75+WsHVXn6YIAvtGJ/y05EHpLjpceI4nzl2yZRiVXkHZG ZTpIzYQXcN/vPu3hZ8Ab7dnuGFrYfb2PILfAXhT1aGPrrmNDC3ACc93a+x7azzcM ZYzlQeA7NuZnw3B2kH4P6xP45Qiyziue+3gmwAA6eR5ThvMza5csMb+7trMYtdvI HqsEtGy4W+GKnoxxyT7vYpZw/9MJbnhuzVuFfnGNr2GhNNyL8+0qIQ2u2P0URNTp Qv11nygnFL5YIqxk1LUEh1jqc63etbEZwUALIrrAnhbIPQUMt/WMXLkZ9gmmy40G o7I8tYhK2OBPcNUWG2IbCm5kISSscNs68pQpm395TUsEOhL/TyZXJ7iP1A4J+Tqv WsEUh3Qg5QaI1LfcTq1lgaf+DFerVX4hLKKyV0CMDpi0ANkn7ag=
    =yU2o
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Miles Malone@21:1/5 to Dale on Thu Feb 17 12:50:01 2022
    Now for your own sanity you might consider stopping adding things
    globally constantly, and using app-portage/flaggie to sanely manage
    them per-package... Cause there's far more use flags that make sense per-package than make sense globally. I used to manage them all
    largely globally like ten years ago, but it's utterly unrealistic to
    do that today.

    On Thu, 17 Feb 2022 at 21:34, Dale <rdalek1967@gmail.com> wrote:

    Neil Bothwick wrote:
    On Thu, 17 Feb 2022 01:42:39 -0600, Dale wrote:

    P. S. Is there a tool to make the USE line in make.conf in alphabetical >> order or something? When I add things, I try to put them in order so it >> is easier to find them. For some reason, they are out of order, a lot.
    Something at some point messed up my organizing, badly.
    emerge --info shows the flags in alphabetical order, whatever their order in make.conf. It lso shows all flags, including those set b the profile,
    so you can see exactly what portage is using.


    -- Neil Bothwick Deja Foobar: A feeling of having made the same
    mistake before.


    Now that is cheating big time. Why didn't I think of that? Now they
    back in order. I been cleaning up my USE line in make.conf. I think
    some flags I added ages ago were only used by a few packages but are in
    wide use now, and I don't always need them. So, I edit, run emerge
    -auDN world to see what blows up. Edit again, run emerge and repeat. I think I'm on about the 10th repeat now. Slowly cleaning things up.

    I love the sig on this one. How is it that thing knows which to pick?
    ROFL

    Thanks for the cheat, I mean tip. Hit the nail on the head.

    Dale

    :-) :-)


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Miles Malone@21:1/5 to m.malone@homicidalteddybear.net on Thu Feb 17 12:50:01 2022
    threads very rarely makes sense for anything, btw.

    On Thu, 17 Feb 2022 at 21:41, Miles Malone
    <m.malone@homicidalteddybear.net> wrote:

    Now for your own sanity you might consider stopping adding things
    globally constantly, and using app-portage/flaggie to sanely manage
    them per-package... Cause there's far more use flags that make sense per-package than make sense globally. I used to manage them all
    largely globally like ten years ago, but it's utterly unrealistic to
    do that today.

    On Thu, 17 Feb 2022 at 21:34, Dale <rdalek1967@gmail.com> wrote:

    Neil Bothwick wrote:
    On Thu, 17 Feb 2022 01:42:39 -0600, Dale wrote:

    P. S. Is there a tool to make the USE line in make.conf in alphabetical >> order or something? When I add things, I try to put them in order so it >> is easier to find them. For some reason, they are out of order, a lot. >> Something at some point messed up my organizing, badly.
    emerge --info shows the flags in alphabetical order, whatever their order in make.conf. It lso shows all flags, including those set b the profile, so you can see exactly what portage is using.


    -- Neil Bothwick Deja Foobar: A feeling of having made the same
    mistake before.


    Now that is cheating big time. Why didn't I think of that? Now they
    back in order. I been cleaning up my USE line in make.conf. I think
    some flags I added ages ago were only used by a few packages but are in wide use now, and I don't always need them. So, I edit, run emerge
    -auDN world to see what blows up. Edit again, run emerge and repeat. I think I'm on about the 10th repeat now. Slowly cleaning things up.

    I love the sig on this one. How is it that thing knows which to pick?
    ROFL

    Thanks for the cheat, I mean tip. Hit the nail on the head.

    Dale

    :-) :-)


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wol@21:1/5 to Dale on Fri Feb 18 00:00:01 2022
    On 17/02/2022 07:42, Dale wrote:
    I also commented out as much as I could in
    package.use, the things I'd tried previously.  Now it has a clean path
    to upgrade.

    Is package.use a file or a directory? If it's a file, convert it to a
    directory (you can just put the existing package.use file in the new directory).

    Then make sure every time you add new use flags they're either in a file dedicated to a particular package, or they're in a dated file and refer
    to particular package versions. That dated file, when etc-update wants
    to update package.use, I just rename its temporary file into a proper
    dated file, rather than let it mess with a file it's chosen at random.

    That way, you can delete packages you no longer use, clear out old
    package/use combos, and generally keep things tidy.

    And when you're trying to fix something, that all goes in one file you
    can ditch when it's all gone wrong :-)

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)