Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-devel/gcc-bin stable from latest stage3 [WIP]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3936

PostPosted: Thu Nov 02, 2023 4:26 pm    Post subject: sys-devel/gcc-bin stable from latest stage3 [WIP] Reply with quote

EDIT: app-office/libreoffice-bin has a sys-devel/gcc:x dependency.

Didn't notice until now...
Seems to be here for a little while...

Quite surprising for a binary.

Forces to build gcc:13 one a different rig here as local 1Gb RAM would be deadly pain for sys-devel/gcc:13 local build.

Maybe gcc-bin-x package is on its way to portage tree?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Thu Nov 02, 2023 10:00 pm; edited 6 times in total
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1040

PostPosted: Thu Nov 02, 2023 4:54 pm    Post subject: Reply with quote

Hi , check deps graph for atom

Code:
equery g  libreoffice-bin | grep gcc  | uniq
 [  1]  sys-devel/gcc-13.2.1_p20230826


Fo a single package :
Code:
# equery g =app-office/libreoffice-bin-7.5.5.2 | grep gcc
 [  1]  sys-devel/gcc-13.2.1_p20230826
 # equery g =app-office/libreoffice-bin-7.5.6.2 | grep gcc
 [  1]  sys-devel/gcc-13.2.1_p20230826



No need specific gcc version required for the libreoffice src
Code:
equery g app-office/libreoffice | grep gcc
---

_________________
LRS 64/32 on G.Drive
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3936

PostPosted: Thu Nov 02, 2023 5:08 pm    Post subject: Reply with quote

ebuild

sys-devel/clang aficionados ought be very disappointed IMHO.

Thks 4 ur attention, interest & support
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2873

PostPosted: Thu Nov 02, 2023 5:23 pm    Post subject: Reply with quote

It's built against libstdc++ which is provided by the gcc package, it's just depending on a library that it is using.

Edit: given mismatches, this is likely to be messy on a libcxx system too


Last edited by Ionen on Thu Nov 02, 2023 5:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3936

PostPosted: Thu Nov 02, 2023 5:28 pm    Post subject: Reply with quote

Does it mean running libreoffice-bin requires gcc-config to be configured accordingly to its build?

Thanks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2873

PostPosted: Thu Nov 02, 2023 5:32 pm    Post subject: Reply with quote

No, which gcc you use to build things (if at all) and what gcc-config points to doesn't matter. It just wants a (recent enough) gcc package for its libraries.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3936

PostPosted: Thu Nov 02, 2023 5:51 pm    Post subject: Reply with quote

Ionen wrote:
No, which gcc you use to build things (if at all) and what gcc-config points to doesn't matter. It just wants a (recent enough) gcc package for its libraries.

Ok, so gcc-config doesn't count :D
However above linked ebuild has
Code:
>=sys-devel/gcc-13.2
whereas libreoffice doesn't...
Puzzling somehow...

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2873

PostPosted: Thu Nov 02, 2023 6:48 pm    Post subject: Reply with quote

Similarly to glibc (which doesn't let you downgrade), if libreoffice-bin was built against gcc13's libstdc++, and then you try to use gcc12's libstdc++, it'll be broken (gcc14's would be fine given it's forward compatible, but if you built it with gcc14's libstdc++ then you'd have to do >=gcc14).

So it rightfully depends on these minimum version that it used for both glibc and gcc:
Code:
    >=sys-devel/gcc-13.2
    >=sys-libs/glibc-2.37
And given both of these are stable, not much reason to build it against older versions (or at least not when the build is intended for Gentoo only).
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22752

PostPosted: Thu Nov 02, 2023 6:55 pm    Post subject: Reply with quote

Although not for libreoffice-bin, just today I ran into a manifestation of this. My build host has the newest stable gcc, and built a program that happened to link to a gcc-provided shared library. I then used emerge --usepkgonly to install that program on a machine which did not have the newest gcc, and the program did not work there. Installing the newer gcc on the consuming system fixed it. I had no specific reason not to update gcc on the consuming system. I had not bothered to do so because I had no compelling reason, until now, that I should.
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1040

PostPosted: Thu Nov 02, 2023 7:26 pm    Post subject: Reply with quote

CaptainBlood wrote:

However above linked ebuild has
Code:
>=sys-devel/gcc-13.2
whereas libreoffice doesn't...


equery informations are taken from ebuilds and packages metadata :wink:
_________________
LRS 64/32 on G.Drive
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3936

PostPosted: Thu Nov 02, 2023 7:37 pm    Post subject: Reply with quote

Report
Thks 4 ur attention, interest & support
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22752

PostPosted: Thu Nov 02, 2023 8:11 pm    Post subject: Reply with quote

What is the goal of that report? Posters here already explained that the dependency is in the ebuild because violating that dependency results in a non-working program. Are you asserting that the dependency is incorrect, and that the program will work even when the dependency is unsatisfied? Are you asking the developers to rebuild libreoffice with an older gcc so that you can skip updating your compiler?
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1040

PostPosted: Thu Nov 02, 2023 8:19 pm    Post subject: Reply with quote

Code:

genlop -i gcc
* sys-devel/gcc

   Total builds: 25
   Global build time: 1 day, 6 hours, 31 minutes and 30 seconds.
   Average merge time: 1 hour, 13 minutes and 15 seconds.


genlop -i libreoffice
 * app-office/libreoffice


   Total builds: 46
   Global build time: 4 days, 20 hours, 24 minutes and 51 seconds.
   Average merge time: 2 hours, 31 minutes and 50 seconds.


:lol: you could have different values according with your hardware performances
_________________
LRS 64/32 on G.Drive
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3936

PostPosted: Thu Nov 02, 2023 8:48 pm    Post subject: Reply with quote

Hu wrote:
What is the goal of that report? Posters here already explained that the dependency is in the ebuild because violating that dependency results in a non-working program. Are you asserting that the dependency is incorrect, and that the program will work even when the dependency is unsatisfied? Are you asking the developers to rebuild libreoffice with an older gcc so that you can skip updating your compiler?
Hmm,
I see better now. libreoffice want the stdc++ it has been compiled with....
However it has been formulated earlier, I didn't got it right until now.

I will invalidate my CR. No issue there.

Since we mostly all need a gcc once in a while, emerging libreoffice should be faster in all tje cases where local gcc and requested one versions don't match.

At least once in a month a new stage3 spins out.
Which will eventually gets updated with a new stable version of sys-devel/gcc with basic features.

Matching package in portage tree might sound appropriate to more that one person.
(I know I could fake a install and get a binary package out of it. But that would be a real pain.)

Report

Thks 3 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3752
Location: Rasi, Finland

PostPosted: Fri Nov 03, 2023 9:24 pm    Post subject: Re: sys-devel/gcc-bin stable from latest stage3 [WIP] Reply with quote

CaptainBlood wrote:
local 1Gb RAM would be deadly pain for sys-devel/gcc:13 local build.

1Gb RAM might be doable for local builds, but you will need to adjust whole lot of stuff: no parallel jobs, no --pipe... and have some swap and maybe enable zswap.

I know it's fun limbo game to build all packages locally on low end hardware. But then you should expect very long compilation times.

I'd put my time to setup proper binhost for such machines.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3936

PostPosted: Sat Nov 04, 2023 1:10 pm    Post subject: Reply with quote

Wiki: Fix my gentoo provides a path to extract sys-devel/gcc from stage3 tar file. sys-devel/gcc:13 is now stabilized and should be available from there for binary packaging.

sys-devel/gcc is the mother of many critical portage updates.
Portage tree has:
Code:
dev-lang/ammonite-repl-bin
dev-lang/closure-compiler-bin
dev-lang/dafny-bin
dev-lang/julia-bin
dev-lang/rust-bin
However sys-devel/gcc-bin isn't going to happen soon, despite it would be helpful in many cases.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3752
Location: Rasi, Finland

PostPosted: Sun Nov 05, 2023 12:15 pm    Post subject: Reply with quote

CaptainBlood wrote:
Wiki: Fix my gentoo provides a path to extract sys-devel/gcc from stage3 tar file.
CaptainBlood wrote:
However sys-devel/gcc-bin isn't going to happen soon, despite it would be helpful in many cases.

Thks 4 ur attention, interest & support.
There you have it. ;) You can now create an ebuild for your local repo which uses stage3.tar as its SRC_URI and then extracts the gcc from there to your system.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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