Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there a way out of this Ada pretzel? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Mon Oct 22, 2018 9:40 pm    Post subject: Is there a way out of this Ada pretzel? [SOLVED] Reply with quote

hi

Been struggling to build Ada for the last few months. Had it working before.

Current situation seems to be that portage is demanding only 1 of two flags that it wants both of. Go figure. :-)

Code:

trooper ~ # emerge @preserved-rebuild
Calculating dependencies |scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/gnatcoll.relocatable/libgnatcoll.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libgnatcoll.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_dom.relocatable/libxmlada_dom.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_input.relocatable/libxmlada_input_sources.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_sax.relocatable/libxmlada_sax.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_schema.relocatable/libxmlada_schema.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_unicode.relocatable/libxmlada_unicode.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_dom.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_input_sources.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_sax.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_schema.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_unicode.so.2018
... done!

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by dev-ada/gnatcoll-bindings-2018::gentoo
# required by @preserved-rebuild (argument)
>=dev-ada/gprbuild-2018-r3 gnat_2018

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.

!!! The ebuild selected to satisfy "dev-ada/gprbuild[gnat_2016=,gnat_2017=,gnat_2018=]" has unmet requirements.
- dev-ada/gprbuild-2018-r3::gentoo USE="gnat_2017 -gnat_2016 -gnat_2018" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( gnat_2017 gnat_2018 )

  The above constraints are a subset of the following complete expression:
    !gnat_2016 exactly-one-of ( gnat_2017 gnat_2018 )

(dependency required by "dev-ada/gnatcoll-bindings-2018::gentoo" [ebuild])
(dependency required by "@preserved-rebuild" [argument])

[ so I change the flags...]

trooper ~ # emerge @preserved-rebuild
Calculating dependencies \scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/gnatcoll.relocatable/libgnatcoll.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libgnatcoll.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_dom.relocatable/libxmlada_dom.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_input.relocatable/libxmlada_input_sources.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_sax.relocatable/libxmlada_sax.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_schema.relocatable/libxmlada_schema.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_unicode.relocatable/libxmlada_unicode.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_dom.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_input_sources.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_sax.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_schema.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_unicode.so.2018
... done!

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by dev-ada/gnatcoll-bindings-2018::gentoo
# required by @preserved-rebuild (argument)
>=dev-ada/gprbuild-2018-r3 gnat_2017

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.

!!! The ebuild selected to satisfy "dev-ada/gprbuild[gnat_2016=,gnat_2017=,gnat_2018=]" has unmet requirements.
- dev-ada/gprbuild-2018-r3::gentoo USE="gnat_2018 -gnat_2016 -gnat_2017" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( gnat_2017 gnat_2018 )

  The above constraints are a subset of the following complete expression:
    !gnat_2016 exactly-one-of ( gnat_2017 gnat_2018 )

(dependency required by "dev-ada/gnatcoll-bindings-2018::gentoo" [ebuild])
(dependency required by "@preserved-rebuild" [argument])



After going round in circles a few times, I appeal to the Gentoo gods....

thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram


Last edited by iandoug on Sat Dec 29, 2018 11:26 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Oct 22, 2018 11:21 pm    Post subject: Reply with quote

iandoug ...

I took a quick look and it seems the listed packages have 'gnat_2016' 'gnat_2017' and 'gnat_2018', useflags, but some have +gnat_2018, and that may not have been the case when you first emerged. I expect the following will show some packages having differing gnat_201* useflags set:

Code:
% for i in gnat_201{6,7,8} ; do echo $i ; eix --exact --installed-with-use $i ; done

That being the case you would need to anchor all packages to one gnat_*

Code:
# USE="gnat_2016 -gnat_2017 -gnat_2018" emerge --oneshot --changed-use $(eix --only-names --installed-with-use --substring  gnat_2016 --or --substring --use gnat_2017 --or --substring --use gnat_2018)

You could of course just use @world as atom, but I'm not sure what other packages may be effected by --changed-use.

HTH & best ... khay
Back to top
View user's profile Send private message
tupone
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Tue Oct 23, 2018 6:13 am    Post subject: Reply with quote

The ada ebuild needs all to have the same set of gnat_2018/7/6 use flag and one and only one should be set.

The 2018 versions all set by default the gnat_2018 use flag.

Maybe you have some setting in /etc/portage/...
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Tue Oct 23, 2018 11:55 am    Post subject: Reply with quote

khayyam wrote:
iandoug ...

I took a quick look and it seems the listed packages have 'gnat_2016' 'gnat_2017' and 'gnat_2018', useflags, but some have +gnat_2018, and that may not have been the case when you first emerged. I expect the following will show some packages having differing gnat_201* useflags set:

Code:
% for i in gnat_201{6,7,8} ; do echo $i ; eix --exact --installed-with-use $i ; done

That being the case you would need to anchor all packages to one gnat_*

Code:
# USE="gnat_2016 -gnat_2017 -gnat_2018" emerge --oneshot --changed-use $(eix --only-names --installed-with-use --substring  gnat_2016 --or --substring --use gnat_2017 --or --substring --use gnat_2018)

You could of course just use @world as atom, but I'm not sure what other packages may be effected by --changed-use.

HTH & best ... khay


Thanks, you know spells that I don't... :-)

I pointed out previously via email to maintainer that there is (was?) a _year conflict between some packages which is the root cause of the problem.

Currently have this: (out from first command above, after various attempts last month to get it installed)

Code:

trooper ~ #  for i in gnat_201{6,7,8} ; do echo $i ; eix --exact --installed-with-use $i ; done
gnat_2016
No matches found
gnat_2017
[U] dev-ada/gprbuild
     Available versions:  2017 (~)2018-r3 {gnat_2016 (+)gnat_2017 +gnat_2018}
     Installed versions:  2017(18:26:40 18/09/2018)(gnat_2017 -gnat_2016)
     Homepage:            http://libre.adacore.com/
     Description:         Multi-Language Management

[I] dev-ada/gtkada
     Available versions:  2017 ~2018 {gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs}
     Installed versions:  2017(18:37:57 18/09/2018)(gnat_2017 shared static-libs -gnat_2016)
     Homepage:            http://libre.adacore.com//tools/gtkada/
     Description:         A complete Ada graphical toolkit

[U] dev-ada/libgpr
     Available versions:  2016 2017 (~)2018 {(+)gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs static-pic}
     Installed versions:  2017(18:29:45 18/09/2018)(gnat_2017 shared static-libs -gnat_2016 -static-pic)
     Homepage:            http://libre.adacore.com/
     Description:         Ada library to handle GPRbuild project files

[U] dev-ada/xmlada
     Available versions:  2017 (~)2018 {gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs static-pic}
     Installed versions:  2017(18:27:50 18/09/2018)(gnat_2017 shared static-libs -gnat_2016 -static-pic)
     Homepage:            http://libre.adacore.com/
     Description:         Set of modules that provide a simple manipulation of XML streams

Found 4 matches
gnat_2018
[I] dev-ada/gnatcoll-bindings
     Available versions:  (~)2018 {gmp gnat_2016 gnat_2017 +gnat_2018 iconv python readline +shared static-libs static-pic syslog PYTHON_TARGETS="python2_7"}
     Installed versions:  2018(23:02:59 17/09/2018)(gnat_2018 iconv python readline shared -gmp -gnat_2016 -gnat_2017 -static-libs -static-pic -syslog PYTHON_TARGETS="python2_7")
     Homepage:            http://libre.adacore.com
     Description:         GNAT Component Collection

[?] dev-ada/libadalang
     Available versions:  2017 ~2018 {gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs PYTHON_TARGETS="python2_7"}
     Installed versions:  2018(23:06:35 17/09/2018)(gnat_2018 shared -gnat_2016 -gnat_2017 -static-libs PYTHON_TARGETS="python2_7")
     Homepage:            https://libre.adacore.com/
     Description:         high performance semantic engine for the Ada programming language

Found 2 matches


There was something that only existed in 2018 version, but supporting package required only existed as 2017 version.
If you set the use flag to 2017, it wanted 2018. If you set 2018, it wanted 2017. If you set both, it demanded only one.

If I understand your second command above correctly, it's going to revert to 2016 where possible?
I was actually trying to upgrade... a previous upgrade installed a known broken IDE (as confirmed by discussion on Ada list on Google Groups).

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Oct 23, 2018 1:59 pm    Post subject: Reply with quote

iandoug wrote:
There was something that only existed in 2018 version, but supporting package required only existed as 2017 version. If you set the use flag to 2017, it wanted 2018. If you set 2018, it wanted 2017. If you set both, it demanded only one.

iandoug ... one package having gnat_2017 would be incompatable with the update of another (if USE="gnat_2018" is set). So, you have to update/select all effected packages, so that those packages with gnat_2017 will allow the --changed-use to gnat_2018.

iandoug wrote:
If I understand your second command above correctly, it's going to revert to 2016 where possible? I was actually trying to upgrade... a previous upgrade installed a known broken IDE (as confirmed by discussion on Ada list on Google Groups).

Correct, but another version, ie USE="-gnat_2016 -gnat_2017 gnat_2018", would work similarly with that command (untested). I only made it gnat_2016 because I wasn't sure if all packages (ie, those you have installed) have USE="gnat_2018" (it seems, at a glance, they do).

best ... khay
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Tue Oct 23, 2018 6:18 pm    Post subject: Reply with quote

khayyam wrote:
iandoug wrote:
There was something that only existed in 2018 version, but supporting package required only existed as 2017 version. If you set the use flag to 2017, it wanted 2018. If you set 2018, it wanted 2017. If you set both, it demanded only one.

iandoug ... one package having gnat_2017 would be incompatable with the update of another (if USE="gnat_2018" is set). So, you have to update/select all effected packages, so that those packages with gnat_2017 will allow the --changed-use to gnat_2018.

iandoug wrote:
If I understand your second command above correctly, it's going to revert to 2016 where possible? I was actually trying to upgrade... a previous upgrade installed a known broken IDE (as confirmed by discussion on Ada list on Google Groups).

Correct, but another version, ie USE="-gnat_2016 -gnat_2017 gnat_2018", would work similarly with that command (untested). I only made it gnat_2016 because I wasn't sure if all packages (ie, those you have installed) have USE="gnat_2018" (it seems, at a glance, they do).

best ... khay


Sorry didn't notice response by tupone before.

Okay I commented out my use and keyword changes to start from a "clean" slate, here's the result. This is basically when I started putting things in use and keywords to get rid of the problems, but it still wants to do impossible things:

Code:

trooper /etc/portage/package.keywords # emerge @preserved-rebuild       
Calculating dependencies |scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/gnatcoll.relocatable/libgnatcoll.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libgnatcoll.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_dom.relocatable/libxmlada_dom.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_input.relocatable/libxmlada_input_sources.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_sax.relocatable/libxmlada_sax.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_schema.relocatable/libxmlada_schema.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/xmlada/xmlada_unicode.relocatable/libxmlada_unicode.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_dom.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_input_sources.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_sax.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_schema.so.2018
scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH in /usr/lib/libxmlada_unicode.so.2018
... done!
[ebuild     U ~] dev-ada/gprbuild-2018-r3 [2017] USE="gnat_2018%* -gnat_2017*"
[ebuild     U ~] dev-ada/xmlada-2018 [2017] USE="gnat_2018%* -gnat_2017*"
[ebuild     U ~] dev-ada/libgpr-2018 [2017] USE="gnat_2018%* -gnat_2017*"
[ebuild  N    ~] dev-ada/gnatcoll-core-2018  USE="gnat_2018 shared -gnat_2016 -gnat_2017 -static-libs -static-pic"
[ebuild   R   ~] dev-ada/gnatcoll-bindings-2018
[ebuild  N     ] dev-ada/gnatcoll-2017  USE="gnat_2017 gtk iconv postgres projects readline shared -gmp -gnat_2016 -pygobject -sqlite -static-libs -syslog -tools" PYTHON_TARGETS="python2_7"
[ebuild     UD ] dev-ada/libadalang-2017 [2018] USE="gnat_2017*"
[blocks B      ] dev-ada/gnatcoll ("dev-ada/gnatcoll" is blocking dev-ada/gnatcoll-core-2018)

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-ada/gprbuild:0

  (dev-ada/gprbuild-2017:0/0::gentoo, installed) pulled in by
    dev-ada/gprbuild[gnat_2017] required by (dev-ada/gnatcoll-2017:0/0::gentoo, ebuild scheduled for merge)
                     ^^^^^^^^^                                                                                                                 
    dev-ada/gprbuild[gnat_2016=,gnat_2017=] required by (dev-ada/xmlada-2017:0/0::gentoo, installed)
                                ^^^^^^^^^^                                                                                             
    dev-ada/gprbuild[gnat_2016=,gnat_2017=] required by (dev-ada/gtkada-2017:0/0::gentoo, installed)
                                ^^^^^^^^^^                                                                                             

  (dev-ada/gprbuild-2018-r3:0/0::gentoo, ebuild scheduled for merge) pulled in by
    dev-ada/gprbuild[gnat_2016=,gnat_2017=,gnat_2018=] required by (dev-ada/gnatcoll-bindings-2018:0/0::gentoo, ebuild scheduled for merge)
                                           ^^^^^^^^^^                                                                                                                         
    dev-ada/gprbuild[gnat_2016=,gnat_2017=,gnat_2018=] required by (dev-ada/gnatcoll-core-2018:0/0::gentoo, ebuild scheduled for merge)
                                           ^^^^^^^^^^                                                                                                                     
    >=dev-ada/gprbuild-2018[gnat_2016(-)?,gnat_2017(-)?,gnat_2018(-)?] required by (dev-ada/libgpr-2018:0/0::gentoo, ebuild scheduled for merge)
    ^^                                                       ^^^^                                                                                                                                     
    dev-ada/gprbuild[gnat_2016(-)?,gnat_2017(-)?,gnat_2018(-)?] required by (dev-ada/xmlada-2018:0/0::gentoo, ebuild scheduled for merge)
                                                                                                                                                         

dev-ada/libgpr:0

  (dev-ada/libgpr-2017:0/0::gentoo, installed) pulled in by
    =dev-ada/libgpr-2017*[gnat_2017,shared?,static-libs?] required by (dev-ada/gnatcoll-2017:0/0::gentoo, ebuild scheduled for merge)
    ^               ^^^^^                                                                                                                                                                   

  (dev-ada/libgpr-2018:0/0::gentoo, ebuild scheduled for merge) pulled in by
    dev-ada/libgpr[gnat_2016=,gnat_2017=,gnat_2018=] required by (dev-ada/gnatcoll-core-2018:0/0::gentoo, ebuild scheduled for merge)
                                         ^^^^^^^^^^                                                                                                                     

dev-ada/xmlada:0

  (dev-ada/xmlada-2017:0/0::gentoo, installed) pulled in by
    dev-ada/xmlada[static-libs,gnat_2016=,gnat_2017=] required by (dev-ada/libgpr-2017:0/0::gentoo, installed)
                                          ^^^^^^^^^^                                                                                             

  (dev-ada/xmlada-2018:0/0::gentoo, ebuild scheduled for merge) pulled in by
    dev-ada/xmlada[gnat_2016=,gnat_2017=,gnat_2018=] required by (dev-ada/libgpr-2018:0/0::gentoo, ebuild scheduled for merge)
                                         ^^^^^^^^^^                                                                                                               


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-ada/gnatcoll-2017:0/0::gentoo, ebuild scheduled for merge) pulled in by
    dev-ada/gnatcoll[projects,shared,gnat_2016=,gnat_2017=] (dev-ada/gnatcoll[projects,shared,-gnat_2016,gnat_2017]) required by (dev-ada/libadalang-2017:0/0::gentoo, ebuild scheduled for merge)
    dev-ada/gnatcoll[gnat_2017,iconv,shared] required by (dev-ada/langkit-2018:0/0::gentoo, installed)

  (dev-ada/gnatcoll-core-2018:0/0::gentoo, ebuild scheduled for merge) pulled in by
    dev-ada/gnatcoll-core[shared?,static-libs?,static-pic?] (dev-ada/gnatcoll-core[shared]) required by (dev-ada/gnatcoll-bindings-2018:0/0::gentoo, ebuild scheduled for merge)
    dev-ada/gnatcoll-core[gnat_2016=,gnat_2017=,gnat_2018=] (dev-ada/gnatcoll-core[-gnat_2016,-gnat_2017,gnat_2018]) required by (dev-ada/gnatcoll-bindings-2018:0/0::gentoo, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by dev-ada/gnatcoll-bindings-2018::gentoo
# required by @preserved-rebuild (argument)
=dev-ada/gnatcoll-core-2018 ~amd64
# required by dev-ada/gnatcoll-core-2018::gentoo
# required by dev-ada/gnatcoll-bindings-2018::gentoo
# required by @preserved-rebuild (argument)
=dev-ada/libgpr-2018 ~amd64
# required by @preserved-rebuild (argument)
=dev-ada/gnatcoll-bindings-2018 ~amd64
# required by dev-ada/gnatcoll-2017::gentoo[projects]
# required by dev-ada/libadalang-2017::gentoo
# required by @preserved-rebuild (argument)
=dev-ada/xmlada-2018 ~amd64
# required by dev-ada/libgpr-2018::gentoo
# required by dev-ada/gnatcoll-core-2018::gentoo
# required by dev-ada/gnatcoll-bindings-2018::gentoo
# required by @preserved-rebuild (argument)
=dev-ada/gprbuild-2018-r3 ~amd64

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by dev-ada/libadalang-2017::gentoo
# required by @preserved-rebuild (argument)
>=dev-ada/gnatcoll-2017 projects

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.


On other thread tupone said to remove gnatcoll and use gnatcoll-bindings, but as you can see it still wants to pull it in....
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
tupone
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Wed Oct 24, 2018 7:38 pm    Post subject: Reply with quote

[ebuild UD ] dev-ada/libadalang-2017 [2018] USE="gnat_2017*" :(
The easiest way is to
emerge -C

all dev-ada packages and emerge gps again

You have probably a dev-ada package still with gnat_2017
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Sun Oct 28, 2018 3:28 pm    Post subject: Reply with quote

@tupone

Removed the packages, had to make some keyword and use changes, but it's pulling in mostly _2017 stuff again except for GPS itself.

Process dies thusly:

Code:

Changing to object directory of "Prj_Editor": "/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/prj_editor/obj/"
/usr/bin/gcc-7.3.1 -c -x c -g -O2 -march=native -O2 -pipe -MMD -MF env.d -I/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/prj_editor/src -I/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/common/core/src -I/usr/include/gnatcoll/gnatcoll.relocatable -I/usr/include/gpr/gpr.relocatable -I/usr/include/gnatcoll/gnatcoll_iconv.relocatable -I/usr/include/gtkada/gtkada.relocatable/gtkada -I/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/widgets/src -I/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/gnatcoll_extras/src -I/usr/include/gnatcoll/gnatcoll_python.relocatable /var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/prj_editor/src/env.c
gps-main.adb:595:25: no selector "Is_Readable" for private type "Virtual_File" defined at gnatcoll-vfs.ads:98
gps-main.adb:1151:44: "New_String" is not visible (more references follow)
gps-main.adb:1151:44: non-visible declaration at i-cstrin.ads:60
gps-main.adb:2852:38: no candidate interpretations match the actuals:
gps-main.adb:2852:38: missing argument for parameter "Name" in call to "VALUE" declared at gps-environments.ads:39
gps-main.adb:2852:38: missing argument for parameter "Name" in call to "VALUE" declared at gnatcoll-projects.ads:1282
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:622
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:620
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:618
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:616
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:614
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:612
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:610
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:608
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:606
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:604
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:602
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:600
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:598
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:596
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:594
gps-main.adb:2852:38: missing argument for parameter "Key" in call to "VALUE" declared at gnatcoll-scripts.ads:592
gps-main.adb:2852:55: expected private type "Scenario_Variable" defined at gnatcoll-projects.ads:1204
gps-main.adb:2852:55: found private type "Interfaces.C.Strings.chars_ptr"
gps-main.adb:2852:55:   ==> in call to "Value" at gnatcoll-projects.ads:1276
gps-main.adb:2852:55:   ==> in call to "Value" at gnatcoll-scripts.ads:649
gps-main.adb:2852:55:   ==> in call to "Value" at gnatcoll-scripts.ads:648
gps-main.adb:2852:55:   ==> in call to "Value" at gnatcoll-scripts.ads:647
gps-main.adb:2852:55:   ==> in call to "Value" at gnatcoll-scripts.ads:646
gps-kernel-modules-ui.ads:442:25: "New_String" not declared in "Types"
gps-kernel-project.ads:171:31: "Untyped_Variable_Array" not declared in "Projects"
keymanager_module.ads:309:52: "Empty_Array" is not visible
keymanager_module.ads:309:52: non-visible declaration at array_utils.ads:34, instance at xref.ads:108

   compilation of gps-main.adb failed

gprbuild: *** compilation phase failed
make: *** [Makefile:44: all] Error 4
make: Leaving directory '/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/gps'
 * ERROR: dev-ada/gps-2018::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-ada/gps-2018::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ada/gps-2018::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ada/gps-2018/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ada/gps-2018/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src'
 * S: '/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src'


Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
tupone
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Tue Oct 30, 2018 3:37 pm    Post subject: Reply with quote

What is it pulling that is still gnat_2017 ?

I want to retest here
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Tue Oct 30, 2018 3:49 pm    Post subject: Reply with quote

tupone wrote:
What is it pulling that is still gnat_2017 ?

I want to retest here


Presumably because I'm on the stable versions?

Code:


 # eix -C dev-ada
* dev-ada/asis
     Available versions:  2016 2017 ~2018 {(+)gnat_2016 (+)gnat_2017 +gnat_2018}
     Homepage:            http://libre.adacore.com/
     Description:         To develop tools for Ada software

* dev-ada/aunit
     Available versions:  2017 ~2018 {gnat_2016 (+)gnat_2017 +gnat_2018}
     Homepage:            http://libre.adacore.com/tools/aunit/
     Description:         Ada unit testing framework

* dev-ada/aws
     Available versions:  2017 ~2018 {gnat_2016 (+)gnat_2017 +gnat_2018}
     Homepage:            http://libre.adacore.com/tools/aws/
     Description:         A complete Web development framework

* dev-ada/gnat_util
     Available versions:  2016 2017 ~2018 {(+)gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs static-pic}
     Homepage:            http://libre.adacore.com
     Description:         Provides access to GNAT compiler internals for AdaCore utilities

[I] dev-ada/gnatcoll
     Available versions:  2016 2017 {gmp (+)gnat_2016 (+)gnat_2017 gtk iconv postgres projects pygobject readline +shared sqlite static-libs syslog tools PYTHON_TARGETS="python2_7"}
     Installed versions:  2017(20:15:01 28/10/2018)(gnat_2017 gtk iconv postgres projects pygobject readline shared sqlite static-libs tools -gmp -gnat_2016 -syslog PYTHON_TARGETS="python2_7")
     Homepage:            http://libre.adacore.com
     Description:         GNAT Component Collection

* dev-ada/gnatcoll-bindings
     Available versions:  ~2018 {gmp gnat_2016 gnat_2017 +gnat_2018 iconv python readline +shared static-libs static-pic syslog PYTHON_TARGETS="python2_7"}
     Homepage:            http://libre.adacore.com
     Description:         GNAT Component Collection

* dev-ada/gnatcoll-core
     Available versions:  ~2018 {gnat_2016 gnat_2017 +gnat_2018 +shared static-libs static-pic}
     Homepage:            http://libre.adacore.com
     Description:         GNAT Component Collection Core packages

* dev-ada/gnatcoll-db
     Available versions:  ~2018 {gnat_2016 gnat_2017 +gnat_2018 gnatcoll_db2ada gnatinspect postgres +shared sql sqlite static-libs static-pic xref PYTHON_TARGETS="python2_7"}
     Homepage:            http://libre.adacore.com
     Description:         GNAT Component Collection

* dev-ada/gnatmem
     Available versions:  2017 ~2018 {gnat_2016 (+)gnat_2017 +gnat_2018}
     Homepage:            http://libre.adacore.com/
     Description:         Monitors dynamic allocation and deallocation activity in a program

* dev-ada/gnatsymbolize
     Available versions:  ~2018
     Homepage:            http://libre.adacore.com/
     Description:         Translates addresses into filename, line number, and function names

[I] dev-ada/gprbuild
     Available versions:  2017 ~2017-r1 ~2018-r3 {gnat_2016 (+)gnat_2017 (+)gnat_2018}
     Installed versions:  2017(20:01:03 28/10/2018)(gnat_2017 -gnat_2016)
     Homepage:            http://libre.adacore.com/
     Description:         Multi-Language Management

* dev-ada/gps
     Available versions:  ~2017^t (~)2018^t {doc PYTHON_TARGETS="python2_7"}
     Homepage:            http://libre.adacore.com/tools/gps/
     Description:         The GNAT Programming Studio

* dev-ada/gps-bin
     Available versions:  ~2016
     Homepage:            http://libre.adacore.com/tools/gps/
     Description:         The GNAT Programming Studio

[I] dev-ada/gtkada
     Available versions:  2017 ~2018 {gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs}
     Installed versions:  2017(20:08:31 28/10/2018)(gnat_2017 shared static-libs -gnat_2016)
     Homepage:            http://libre.adacore.com//tools/gtkada/
     Description:         A complete Ada graphical toolkit

[I] dev-ada/langkit
     Available versions:  2017 ~2018 {PYTHON_TARGETS="python2_7"}
     Installed versions:  2017(20:32:49 28/10/2018)(PYTHON_TARGETS="python2_7")
     Homepage:            https://www.adacore.com/community
     Description:         A Python framework to generate language parsers

[I] dev-ada/libadalang
     Available versions:  2017 ~2018 {gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs PYTHON_TARGETS="python2_7"}
     Installed versions:  2017(20:35:34 28/10/2018)(gnat_2017 -gnat_2016 PYTHON_TARGETS="python2_7")
     Homepage:            https://libre.adacore.com/
     Description:         high performance semantic engine for the Ada programming language

* dev-ada/libadalang-tools
     Available versions:  ~2018 {gnat_2016 gnat_2017 +gnat_2018}
     Homepage:            https://www.adacore.com/community
     Description:         Libadalang-based tools: gnatpp, gnatmetric and gnatstub

[I] dev-ada/libgpr
     Available versions:  2016 2017 ~2018 {(+)gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs static-pic}
     Installed versions:  2017(20:10:28 28/10/2018)(gnat_2017 shared static-libs -gnat_2016 -static-pic)
     Homepage:            http://libre.adacore.com/
     Description:         Ada library to handle GPRbuild project files

[I] dev-ada/xmlada
     Available versions:  2017 ~2018 {gnat_2016 (+)gnat_2017 +gnat_2018 +shared static-libs static-pic}
     Installed versions:  2017(20:02:08 28/10/2018)(gnat_2017 shared static-libs -gnat_2016 -static-pic)
     Homepage:            http://libre.adacore.com/
     Description:         Set of modules that provide a simple manipulation of XML streams



make.conf use flags:
Note: I think added gnat_2018 in here afterwards, there was no gnat_ anything before. I wanted to uninstall and move to ~amd64 versions to see if that would fix it.

Code:

USE="a52 aac acpi ada alsa amr apm apng automount autotrace bash-completion bzip2 cairo caps caps-ng cdda cddb cdr cgi calendar chm cjk consolekit \
creds crypt css cups curl dbus declarative device-mapper disk-partition djvu docbook dpi dri dri2 dga  \
dts dv dvd dvdr ebook encode exif extensions extras extraengine faad fam fastcgi ffmpeg firefox flac fontconfig \
foomaticdb fpm ftp fts3 fuse gcj geoip gif git gd gdbm glib gimp gnome  gphoto2 gnat_2018 gpm gstreamer gtk3 \
gudev htmlhandbook hwdb icu idn ieee1394 imagemagick imlib infinality innodb jack java javafx javascript jbig jdbc jikes \
joystick jpeg jpeg2k kontact -libav lcms ldap legacy-systray libnotify libsamplerate \
lm_sensors libwww mad matroska midi mime mmx mng mobi mp3 mp4 mpeg mpi mplayer mtp multilib mysql mysqli mysqlnd ncurses nptl \
nsplugin nvidia NGINX_MODULES_HTTP offensive ogg opengl orc  pam passenger pcm pcre pdf pdo perl pg-intdatetime phar php png \
policykit posix postgres postscript ppds pulseaudio python quicktime raw rar readline realtime reports samba sasl\
scanner sdl secure-delete -semantic-desktop soap sndfile sockets spell sql sse sse2 ssl \
suid source svg svga taglib theora threads tidy tiff timidity truetype  udev udisks unicode upload upload_progress ups_drivers_riello_usb usb X v4l2 vcd vorbis \
vhosts webkit webrtc-aec win32codecs winbind wmf woff woff2  wxwidgets x264 xattr xcomposite xetex xft xine xinerama xml xmlreader xmlrpc xmlwriter xpm xulrunner zlib"


Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
tupone
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Tue Oct 30, 2018 7:16 pm    Post subject: Reply with quote

Presumably because You are on the stable versions.

You need gnat_2018 on all the packages and this use flag is mostly for unstable.

The compiler too is unstable. I will stabilize these in about a month if everything goes well.

Changed the ebuild for gps-2018. It works only with the newest compiler. gnat_2018 is a must for all the dev-ada/* ebuild for gps-2018 to be built
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Sun Nov 11, 2018 10:35 pm    Post subject: Reply with quote

@tupone

Hi

Okay thanks for the fixes, GPS is now installed:
GPS 2018 (20180528) hosted on x86_64-pc-linux-gnu
GNAT Community 2018 (20180524-73)

Had to makes some requested changes to use and keywords.
Also had to add sqlite to this:
=dev-ada/gnatcoll-db-2018 xref gnatcoll_db2ada gnatinspect sqlite


So GPS runs, but I'm back with the same problem I had before: selecting text in the editor changes it all to black on white, instead of highlighting it. Also line numbers missing.

See thread here on Google Groups:
https://groups.google.com/d/topic/comp.lang.ada/ScyjwRXSTcA/discussion

It was supposed to be fixed in 20180528 so don't know if there is some other problem on my system. See message from Jeffrey R. Carter

I didn't try the prebuilt binaries route, wanted to stay with portage managing things.

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Wed Dec 05, 2018 7:26 am    Post subject: Reply with quote

Thanks for update, but problems....

Code:

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src ...
make -j3 -C gps 'GPRBUILD_FLAGS=-v -j3          -XGPR_BUILD=relocatable' Build=Production
make: Entering directory '/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/gps'
cd ../kernel/src; python hooks.py
Traceback (most recent call last):
  File "hooks.py", line 1980, in <module>
    generate()
  File "hooks.py", line 1125, in generate
    ''' % {'withs': withs})
TypeError: a bytes-like object is required, not 'str'
make: *** [Makefile:42: all] Error 1
make: Leaving directory '/var/tmp/portage/dev-ada/gps-2018/work/gps-gpl-2018-src/gps'
 * ERROR: dev-ada/gps-2018::gentoo failed (compile phase):
 *   emake failed


Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
tupone
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Fri Dec 14, 2018 12:39 pm    Post subject: Reply with quote

use bugs.gentoo.org to report problems
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Fri Dec 14, 2018 12:48 pm    Post subject: Reply with quote

tupone wrote:
use bugs.gentoo.org to report problems


I'm never sure if it's "just me" or something else ... box is pushing 7 years old now and so system is not squeaky clean like it could be.
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
calloc
n00b
n00b


Joined: 07 Jan 2018
Posts: 7
Location: Vienna, Austria

PostPosted: Sat Dec 15, 2018 12:21 pm    Post subject: Reply with quote

@tupone: Thanks for the updates also from my side!

I have just one problem remaining, namely with the package dev-ada/aws-2018, which does not accept the gnat_2018 USE flag... Is this just the ebuild or is there a deeper reason behind this?

Code:

!!! The ebuild selected to satisfy "dev-ada/asis[gnat_2016=,gnat_2017=,gnat_2018(-)=]" has unmet requirements.
- dev-ada/asis-2016::gentoo USE="gnat_2018 -gnat_2016 -gnat_2017" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( gnat_2016 gnat_2017 ) !gnat_2018

(dependency required by "dev-ada/aws-2018::gentoo" [ebuild])
(dependency required by "dev-ada/aws" [argument])


Many thanks,
Chris
Back to top
View user's profile Send private message
tupone
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Sun Dec 16, 2018 7:53 pm    Post subject: Reply with quote

dev-ada/asis-2016 does not build with the last compiler (gnat_2018) version.
You need to select asis-2018. Maybe you have a package mask ?
Back to top
View user's profile Send private message
calloc
n00b
n00b


Joined: 07 Jan 2018
Posts: 7
Location: Vienna, Austria

PostPosted: Sun Dec 16, 2018 10:11 pm    Post subject: Reply with quote

Thanks for your answer! I checked my package masks and have asis-2018 already installed, but it seems to me that aws-2018 insists on asis-2016 as a dependency... When I mask <dev-ada/asis-2018 i get the following:

Code:

# emerge --ask =dev-ada/aws-2018

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

Calculating dependencies... done!

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by dev-ada/aws-2018::gentoo
# required by dev-ada/aws (argument)
# /etc/portage/package.mask/ada:
=dev-ada/asis-2016


Many thanks,
Chris
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21602

PostPosted: Mon Dec 17, 2018 1:30 am    Post subject: Reply with quote

You need to undo your mask of the older version, then use package.use to configure the older version to satisfy the constraints in your earlier error message: one of the two old versions, and not the 2018 version. Your current configuration for it is exactly wrong: -2016 -2017 (so the exactly-one-of is not satisfied) and +2018 (so the !gnat_2018 is not satisfied).
Back to top
View user's profile Send private message
calloc
n00b
n00b


Joined: 07 Jan 2018
Posts: 7
Location: Vienna, Austria

PostPosted: Mon Dec 17, 2018 8:29 pm    Post subject: Reply with quote

Thanks for your help! In the end simply building aws-2018 with

Code:

emerge --ask dev-ada/aws --nodeps


worked out fine for me.

Chris
Back to top
View user's profile Send private message
tupone
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Thu Jan 17, 2019 10:20 am    Post subject: Reply with quote

I should have fixed it for you. No needs to have --nodeps anymore (I hope)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum