Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
getbinpkg doesn't find binary gcc, getbinpkgonly does
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
Koyan
n00b
n00b


Joined: 07 Nov 2014
Posts: 23

PostPosted: Tue Jan 09, 2024 2:13 pm    Post subject: getbinpkg doesn't find binary gcc, getbinpkgonly does Reply with quote

I've been wanting to try out the new binrepo feature, but since my main server is on ~amd64, I've set up a new VM on the stable branch. All seems to work fine, many of the packages I'm emerging are coming from the binhost and only some are being compiled locally.

But gcc is for some reason still being compiled locally, even though I've kept all USE flags for it standard. It says in the news article that amd64/17.1/nomultilib is supported, so I'm on the openrc nomultilib profile, but it seems the provided binary package was actually compiled for multilib. Can anyone confirm this or am I doing something very wrong?


Last edited by Koyan on Tue Jan 09, 2024 10:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1744

PostPosted: Tue Jan 09, 2024 2:38 pm    Post subject: Reply with quote

If it is a USE flag difference then this command will show it:
Code:
emerge --pretend --verbose --nodeps --binpkg-respect-use=n --getbinpkgonly gcc

Do not remove pretend as this is to only demonstrate why. Allowing this to continue is asking for issues.
Back to top
View user's profile Send private message
Koyan
n00b
n00b


Joined: 07 Nov 2014
Posts: 23

PostPosted: Tue Jan 09, 2024 3:18 pm    Post subject: Reply with quote

Thanks for that command, grknight.

I checked and that command shows that the USE flags are indeed completely the same, so it seems that emerge should just download the binary package.

But if I do
Code:
emerge -1 --getbinpkg gcc
then portage wants to compile gcc. If however I do
Code:
emerge -1 --getbinpkgonly gcc
then it does download the binary package and everything seems to work fine.

The wiki says to use --getbinpkg, and from what I can tell if that doesn't find a binary package, neither should --getbinpkgonly. What am I missing here?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21920

PostPosted: Tue Jan 09, 2024 3:50 pm    Post subject: Reply with quote

Please show the output of emerge --pretend --verbose --getbinpkg sys-devel/gcc; emerge --pretend --verbose --getbinpkgonly sys-devel/gcc. My guess is that your ACCEPT_KEYWORDS for this are allowing Portage to see a newer version of gcc than the binhost offers, so given a choice, Portage chooses to compile a new version locally. When forced to use a binpkg, Portage uses the slightly older version, since that is the newest it can find.
Back to top
View user's profile Send private message
Koyan
n00b
n00b


Joined: 07 Nov 2014
Posts: 23

PostPosted: Tue Jan 09, 2024 4:01 pm    Post subject: Reply with quote

Thanks for the help, Hu. I haven't changed any ACCEPT_KEYWORDS, either globally or for gcc, it's all just stable amd64.

Code:
adro ~ # emerge --pretend --verbose --getbinpkg sys-devel/gcc

Local copy of remote index is up-to-date and will be used.
[ebuild   R   ] sys-devel/gcc-13.2.1_p20230826  USE="(cxx) fortran nls nptl openmp (pie) sanitize ssp -ada (-cet) (-custom-cflags) -d -debug -default-stack-clash-protection -default-znow -doc (-fixed-point) -go -graphite -hardened (-ieee-long-double) -jit (-libssp) -lto -modula2 (-multilib) -objc -objc++ -objc-gc (-pch) -pgo -systemtap -test -valgrind -vanilla -vtv -zstd"
adro ~ # emerge --pretend --verbose --getbinpkgonly sys-devel/gcc

Local copy of remote index is up-to-date and will be used.
[binary   R   ] sys-devel/gcc-13.2.1_p20230826-18  USE="(cxx) fortran nls nptl openmp (pie) sanitize ssp -ada (-cet) (-custom-cflags) -d -debug -default-stack-clash-protection -default-znow -doc (-fixed-point) -go -graphite -hardened (-ieee-long-double) -jit (-libssp) -lto -modula2 (-multilib) -objc -objc++ -objc-gc (-pch) -pgo -systemtap -test -valgrind -vanilla -vtv -zstd"
adro ~ #
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21920

PostPosted: Tue Jan 09, 2024 4:26 pm    Post subject: Reply with quote

From the shown data, I have no explanation and no leads. Perhaps someone more familiar with the binhost will see this thread and help you.
Back to top
View user's profile Send private message
Koyan
n00b
n00b


Joined: 07 Nov 2014
Posts: 23

PostPosted: Wed Jan 10, 2024 9:58 am    Post subject: Reply with quote

Very odd but I'm getting the same with other packages like iproute2, binutils, bison and a whole host of others. Getbinpkg doesn't see any applicable binary packages but getbinpkgonly does.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Wed Jan 10, 2024 10:51 am    Post subject: Reply with quote

what does your binrepos.conf look like?

and result from
emerge --info | grep "^FEATURES="
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Koyan
n00b
n00b


Joined: 07 Nov 2014
Posts: 23

PostPosted: Wed Jan 10, 2024 2:21 pm    Post subject: Reply with quote

Code:
koyan@adro ~ $ cat /etc/portage/binrepos.conf/gentoobinhost.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consider using a local mirror.

[gentoobinhost]
priority = 9999
#sync-uri = https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64
sync-uri = https://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/releases/amd64/binpackages/17.1/x86-64
koyan@adro ~ $ emerge --info | grep "^FEATURES="
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


The original gentoobinhost.conf from the stage3 file had 'priority = 1' but both with 1 or 9999 the result is the same. I tried different mirrors as well, all the same result.
Back to top
View user's profile Send private message
costis
n00b
n00b


Joined: 14 Oct 2014
Posts: 18

PostPosted: Sat Jan 13, 2024 3:28 pm    Post subject: Reply with quote

I encounter the same problem and filed a bug.
I am new to binary gentoo so my understanding might be totally off.
Here are my outputs of emerge --info and emerge gcc.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54454
Location: 56N 3W

PostPosted: Sat Jan 13, 2024 4:10 pm    Post subject: Reply with quote

costis,

Code:
!!! The following binary packages have been ignored due to non matching USE:

    =sys-devel/gcc-13.2.1_p20230826 -multilib nptl
    =sys-devel/gcc-13.2.1_p20230826 nptl


Your minimal default/linux/amd64/17.1 does not set USE=nptl for you and its not in your
Code:
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp split-usr ssl test-rust unicode xattr zlib"
either.

Both the possible binary gcc builds are built with USE=nptl.
One is for a multilib install (the one you want) and one for no-multilib.

If you add nptl to you USE flags in make.conf, the =sys-devel/gcc-13.2.1_p20230826 nptl will work for you.

-- edit --

sam beat me to it in the bug. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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