Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rebuilding c++ apps after gcc 4.1.1 update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Tue Jul 04, 2006 7:18 am    Post subject: rebuilding c++ apps after gcc 4.1.1 update Reply with quote

I'm just in the process of doing a revdep-rebuild of the c++ part of my system (after doing the update to glibc 2.4 and gcc 4.1.1) and am very annoyed by it bailing out of the build every now then because of compile issues. Luckily, these can be solved by keywording the relevat packages to ~ppc . Still, this is annoying as I'd like to have a fully working system again AND have an aversion against having the machine run all day AND don't like the need to look after it and solve issues every now and then; also, an update to the stable branch shouldn't force users to go to unstable with several packages.
Anyway, I have created this thread so hopefully other people doing the same rebuild and encountering similar caveats can add them here so others who have no yet made the update can keyword those things BEFORE doing the update. Also, the relevant devs might consider putting this stuff stable on ppc :)
So, to start with it:

dev-lang/ruby : header conflict with glibc 2.4
media-libs/openexr : gcc4 compile fix
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Jul 04, 2006 3:40 pm    Post subject: Reply with quote

Please add any packages that you find to this bug: https://bugs.gentoo.org/show_bug.cgi?id=138099

Thanks!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Tue Jul 04, 2006 7:57 pm    Post subject: world rebuild tip Reply with quote

Frustrated with
Code:

emerge -e  ......

on a slow machine, I made myself an efficient way to list exactly all packages not yet rebuilt to the new glibc.

Get the patch from: patch to add rpm '--last' option to epm-0.9.1

Code:

# emerge app-portage/epm
# cd /usr/bin/
# cp epm epm-0.9.1
# patch -p1 < ~/epm-0.9.1-last-option.patch
# cd

# epm -qGa --last | sed '1,/^sys-libs\/glibc/d' > packages_not_yet_rebuilt.txt


Now you can parse the file to re-emerge specific portage groups, libraries, etc., with no unnecessary duplication.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Wed Jul 05, 2006 4:16 pm    Post subject: Reply with quote

That's a clever trick, but I haven't envountered a breackage so far which was caused by the new glibc, so I only am recompiling stuff that links against libstdc++.so.5 atm. I'll happily add the buid failures to the bug above :)
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Wed Jul 05, 2006 4:43 pm    Post subject: Reply with quote

DirtyHairy wrote:
That's a clever trick, but I haven't envountered a breackage so far which was caused by the new glibc, so I only am recompiling stuff that links against libstdc++.so.5 atm. I'll happily add the buid failures to the bug above :)


Actually, I haven't encountered any breakage either except for C++ programs with respect to the gcc-4.1.1. (QT3 broke loading external widgets, and nothing else.) I used that trick to compile KDE C++ programs first, before GNOME and others, rather than letting emerge determine the build order.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Wed Jul 05, 2006 11:41 pm    Post subject: Reply with quote

Without completely recompiling kde, the compilation of severall kde packags would abort with unresolved symbols from gcc libraries (after a bit searching, I found severall bug reports about similar problems).
Anyway, the update is done, and the only broken package besides those two above is kdevelop (but this might be due to the KDE upgrade from 3.4 to 4.5). I'll add those three to the tracker tomorrow.
Also, openoffice fails during install, but I'll tinker around with my CFLAGS and with useflags some more before I call this a real breakage.
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Thu Jul 06, 2006 12:33 am    Post subject: Reply with quote

DirtyHairy wrote:
Without completely recompiling kde, the compilation of severall kde packags would abort with unresolved symbols from gcc libraries (after a bit searching, I found severall bug reports about similar problems).


For myself, I was able to get by with only re-compiling key components. But, I am updating from a KDE completely compiled with gcc-3.4.6 (and not 3.3), which also uses libstdc++.so.6 . If any part of KDE had been compiled against libstdc++.so.5 this trick would not work.

Code:

   # emerge --oneshot libtool
   # # major slot and minor versions of every GCC ever used on this system
   # fix_libtool_files.sh 3.3
   # fix_libtool_files.sh 3.3.3
   # fix_libtool_files.sh 3.4
   # fix_libtool_files.sh 3.4.5
   # fix_libtool_files.sh 3.4.6
   # revdep-rebuild --library=/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.6/libstdc++.so.6


I only had to recompile the base library packages and ~15 apps (of entire kde-meta) for everything to link to gcc-4.1.1 instead of the old gcc, including packages such as: qt-3*, kdelibs, konqueror.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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