You are not logged in.

#1 2015-02-23 00:28:49

headkase
Member
Registered: 2011-12-06
Posts: 1,976

GCC 5 is coming with a massive rebuild

So, GCC 5 is coming.  And everything that depends on its libraries will need to be rebuilt.  So, when GCC 5 hits the repo pretty-well every package will be rebuilt and therefore be "new" to pacman.  I am far from an expert in such things but, how will this be handled?  There will no doubt be .pacnew files aplenty to deal with.  To my untrained eye something to ease the transition would be to have a "package freeze" for about 1 week before GCC 5 hits to give everyone time to get their systems fully up-to-date including dealing with those .pacnew files.  Then, when the switch is flipped, everyone could update their entire system, rebuild their affected AUR packages, and just delete all the .pacnew files as their configurations will already be valid.

That's what I suggest, anyone care to enlighten how the GCC 5 transition will actually happen?  Especially in regards to files that the user must configure for their specific systems.

Offline

#2 2015-02-23 00:43:15

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: GCC 5 is coming with a massive rebuild

headkase wrote:

So, GCC 5 is coming.  And everything that depends on its libraries will need to be rebuilt.

Why?

Offline

#3 2015-02-23 02:02:44

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: GCC 5 is coming with a massive rebuild

drcouzelis,

Here's how it works. Package 'A' depends on library provided by 'B', let's call it libB.so.1. 'B' gets updated so it now contains libB.so.2. As 'A' is linked against libB.so.1 it no longer works, and needs to be rebuilt against new library version. Alot of software depends on gcc and bumping its so version will cause a need for a lot of rebuilds.

Offline

#4 2015-02-23 02:24:19

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: GCC 5 is coming with a massive rebuild

http://developerblog.redhat.com/2015/02 … in-fedora/
https://www.reddit.com/r/archlinux/comm … ith_gcc_5/

GCC 5 changes ABI for its C++ libraries.

Last edited by anatolik (2015-02-23 02:26:41)


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#5 2015-02-23 13:10:05

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: GCC 5 is coming with a massive rebuild

Thank you for the explanation.

How exciting! smile

Offline

#6 2015-02-23 13:36:29

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: GCC 5 is coming with a massive rebuild

Basically every c++ package, perhaps even more, will be recompiled,

Offline

#7 2015-02-23 14:45:43

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: GCC 5 is coming with a massive rebuild

headkase wrote:

Then, when the switch is flipped, everyone could update their entire system, rebuild their affected AUR packages, and just delete all the .pacnew files as their configurations will already be valid.

That's what I suggest, anyone care to enlighten how the GCC 5 transition will actually happen?  Especially in regards to files that the user must configure for their specific systems.

I'd assume that things would probably be held in [testing] a while longer whilst everything in the main Arch repositories is re-built and tested. As for the AUR, I'd assume that most of the maintainers that are on the ball will account for the change, but I don't know about the rest, seeing as the AUR really depends on the users.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#8 2015-02-23 16:16:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: GCC 5 is coming with a massive rebuild

IIRC Arch has a [staging] repo for massive rebuilds.

Offline

#9 2015-02-23 16:53:06

helix
Member
Registered: 2013-02-17
Posts: 180

Re: GCC 5 is coming with a massive rebuild

I didn't know about this. Is this official repo?

Last edited by helix (2015-02-23 16:53:45)

Offline

#10 2015-02-23 17:05:07

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,806
Website

Re: GCC 5 is coming with a massive rebuild

helix wrote:

I didn't know about this. Is this official repo?

Nope, use it only if you want to break your system wink


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#11 2015-02-23 20:13:02

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: GCC 5 is coming with a massive rebuild

ugjka wrote:
helix wrote:

I didn't know about this. Is this official repo?

Nope, use it only if you want to break your system wink

That, and I think they only appear when there's going to be a major re-build.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#12 2015-02-24 03:36:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,542

Re: GCC 5 is coming with a massive rebuild

it doesn't have to be that massive, almost all rebuilds caused by ABI/API breaks go to staging.

Last edited by Scimmia (2015-02-24 03:36:54)

Online

#13 2015-02-24 11:41:51

Awebb
Member
Registered: 2010-05-06
Posts: 6,285

Re: GCC 5 is coming with a massive rebuild

Here. Assuming "allanbrokeit" is Allan's account on reddit and assuming he didn't joke in some grey area outside my comprehension, then this is it: http://www.reddit.com/r/archlinux/comme … ith_gcc_5/

Offline

#14 2015-02-24 13:01:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: GCC 5 is coming with a massive rebuild

Exactly.  The update is not a whole lot worse than  many we have done in the past.  The only difference is that which packages needing rebuilt from the AUR is not immediately clear.  But I will make a news announcement with a way to determine that too...

Offline

#15 2015-02-24 13:05:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: GCC 5 is coming with a massive rebuild

This gives a list of non-repo packages you will need to rebuild (when I say to):

for pkg in $(pacman -Qqm); do
  if readelf -d $(pacman -Qql $pkg) 2>/dev/null | grep NEEDED | grep -q libstdc++.so; then
    echo $pkg
  fi
done

Offline

#16 2015-02-24 13:24:15

Awebb
Member
Registered: 2010-05-06
Posts: 6,285

Re: GCC 5 is coming with a massive rebuild

Oh, oh...

...
dropbox
samsung-unified-driver
...

EDIT: Yes, let's turn this into a question. Will there be a way to run outdated binaries?

Last edited by Awebb (2015-02-24 13:30:31)

Offline

#17 2015-02-24 13:28:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: GCC 5 is coming with a massive rebuild

hrm...
I bet samsung-unified-driver does not link to much else so will be fine (the old C++ ABI is still in the library).  Dropbox might be an issue...

Offline

#18 2015-02-24 13:31:50

Awebb
Member
Registered: 2010-05-06
Posts: 6,285

Re: GCC 5 is coming with a massive rebuild

Is there a way to determine, what a binary links to?

EDIT: This would be a good opportunity to reevaluate all the binary packages we use and see if there are alternatives.

Last edited by Awebb (2015-02-24 13:33:55)

Offline

#19 2015-02-24 13:33:17

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: GCC 5 is coming with a massive rebuild

Awebb wrote:

Is there a way to determine, what a binary links to?

Allan used readelf in the loop and then there is ldd and also objdump.

Edit: Dropbox will probably still work, since it should include all the libraries it needs.

Last edited by progandy (2015-02-24 13:41:15)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#20 2015-02-24 13:35:10

Awebb
Member
Registered: 2010-05-06
Posts: 6,285

Re: GCC 5 is coming with a massive rebuild

progandy wrote:
Awebb wrote:

Is there a way to determine, what a binary links to?

Allan usedd that in the loop: ldd

Ah, I should read more carefully. There is readelf.

Offline

#21 2015-02-24 13:46:23

\hbar
Member
Registered: 2014-03-15
Posts: 165

Re: GCC 5 is coming with a massive rebuild

Naive question: won't the version of libstdc++.so.* change? So if dropbox is linked against libstdc++.so.6 and the new version is libstdc++.so.7, then having a legacy gcc4 package would suffice to keep dropbox (or any other old binary) running, right?

Offline

#22 2015-02-24 13:48:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: GCC 5 is coming with a massive rebuild

Because gcc devs are idiots.

Offline

#23 2015-02-24 14:14:08

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: GCC 5 is coming with a massive rebuild

\hbar wrote:

Naive question: won't the version of libstdc++.so.* change? So if dropbox is linked against libstdc++.so.6 and the new version is libstdc++.so.7, then having a legacy gcc4 package would suffice to keep dropbox (or any other old binary) running, right?

They claim sonames aren't good enough.

http://developerblog.redhat.com/2015/02 … e-c11-abi/
[...]
The last time G++ went through an ABI change, back in the 3.x period, we changed the soname of libstdc++, which was widely regarded as a mistake. Changing the soname caused a lot of pain but is not sufficient to deal with changes in symbol ABIs: if you load multiple shared objects that depend on different versions of the library, you can still get clashes between different versions of the same symbol.

So the plan for this ABI change has been to leave the soname (and the existing binary interface) alone, and express the new ABI using different mangled names.
[...]

Calling the resulting symbol names mangled is not wrong, but I'd rather call them garbled.

Last edited by progandy (2015-02-24 14:18:17)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#24 2015-02-24 15:22:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,542

Re: GCC 5 is coming with a massive rebuild

I'm seeing google-chrome, chromium-pepper-flash, and the virtualbox extension pack. We'll have to see how this goes.

Online

#25 2015-02-24 15:32:02

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: GCC 5 is coming with a massive rebuild

All of my "outated" kde4 packages (fate,kwrite,gwenview,konsole) i kept to not f**** kde4 environment will need a rebuild as well.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB