Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Trouble migrating from gcc 4.9.3 to 5.4.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
irenicus09
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2013
Posts: 118

PostPosted: Wed Oct 12, 2016 3:08 am    Post subject: [Solved] Trouble migrating from gcc 4.9.3 to 5.4.0 Reply with quote

Hi, I've followed the wiki and so far I ran into only one issue while migrating using the command

Code:
revdep-rebuild --library 'libstdc\+\+\.so\.6' -- --exclude gcc


Termite the terminal that I had, imported from an overlay fails to compile.

This is what I get https://paste.pound-python.org/show/hJtuwtwiJSMuDmKnIZy7/

I restarted the build again to see if I run into the same problem so I can't fetch other logs right now unless it runs into issues again.

What are the potential things that I can look into to fix this issue?

Dmesg by the way doesn't show any messages related memory being full and I think it's gtk library issue probably because it hasn't been
recompiled after the migration but I'm trying to figure it out myself.

Please let me know if you have any ideas, thanks.


Last edited by irenicus09 on Thu Oct 13, 2016 2:03 am; edited 2 times in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Oct 12, 2016 5:37 am    Post subject: Reply with quote

Code:
fix_libtool_files.sh


Probably does the job ...
Back to top
View user's profile Send private message
irenicus09
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2013
Posts: 118

PostPosted: Wed Oct 12, 2016 2:21 pm    Post subject: Reply with quote

Roman_Gruber wrote:
Code:
fix_libtool_files.sh


Probably does the job ...


Tried that but doesn't fix my problem, same error.

Here's what I tried (since I upgraded to 5.4.0 from 4.9.3)
Code:
fix_libtool_files.sh 4.9.3
Scanning libtool files for hardcoded gcc library paths...  *   [1/9] Scanning /lib ...  *   [2/9] Scanning /usr/lib ...  *   [3/9] Scanning /lib32 ...  *   [4/9] Scanning /lib64 ...  *   [5/9] Scanning /usr/lib32 ...  *   [6/9] Scanning /usr/lib64 ...  *     FIXING: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libcaf_single.la ...[]  *     FIXING: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libatomic.la ...[]  *     FIXING: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libquadmath.la ...[]  *   [7/9] Scanning /usr/local/lib ...  *   [8/9] Scanning /usr/local/lib32 ...  *   [9/9] Scanning /usr/local/lib64 ...



Here's are the logs, same error(s) as before:

https://paste.pound-python.org/show/NJCJ1fTxhbJ8b9NYSbjT/

https://paste.pound-python.org/show/CfQFClPdSOrFJd8tCYDR/
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30969
Location: here

PostPosted: Wed Oct 12, 2016 2:39 pm    Post subject: Reply with quote

It's a bug of termite.
I have create a patch, for applyng you can read the documentation
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
irenicus09
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2013
Posts: 118

PostPosted: Wed Oct 12, 2016 4:20 pm    Post subject: Reply with quote

fedeliallalinea wrote:
It's a bug of termite.
I have create a patch, for applyng you can read the documentation


Your patch gives 403 error, in the mean time let me see if I can patch it myself.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30969
Location: here

PostPosted: Wed Oct 12, 2016 4:32 pm    Post subject: Reply with quote

irenicus09 wrote:
Your patch gives 403 error, in the mean time let me see if I can patch it myself.

Sorry the patch is
Code:
diff -Naur termite-11.orig/termite.cc termite-11/termite.cc
--- termite-11.orig/termite.cc   2016-10-12 16:32:51.475073249 +0200
+++ termite-11/termite.cc   2016-10-12 16:33:19.452073875 +0200
@@ -20,6 +20,7 @@
 #include <array>
 #include <cstdlib>
 #include <cstring>
+#include <cmath>
 #include <functional>
 #include <limits>
 #include <map>

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
irenicus09
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2013
Posts: 118

PostPosted: Wed Oct 12, 2016 5:44 pm    Post subject: Reply with quote

fedeliallalinea wrote:
irenicus09 wrote:
Your patch gives 403 error, in the mean time let me see if I can patch it myself.

Sorry the patch is
Code:
diff -Naur termite-11.orig/termite.cc termite-11/termite.cc
--- termite-11.orig/termite.cc   2016-10-12 16:32:51.475073249 +0200
+++ termite-11/termite.cc   2016-10-12 16:33:19.452073875 +0200
@@ -20,6 +20,7 @@
 #include <array>
 #include <cstdlib>
 #include <cstring>
+#include <cmath>
 #include <functional>
 #include <limits>
 #include <map>


Thanks, I understand the solution to the problem but I'm still trying to figure out how to apply that patch to work with portage since I'm kinda new to Gentoo, I really don't have much experience.

It would help me a lot if you could show me how it's done. Perhaps I can contribute in future patches :P
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30969
Location: here

PostPosted: Wed Oct 12, 2016 6:22 pm    Post subject: Reply with quote

irenicus09 wrote:
It would help me a lot if you could show me how it's done. Perhaps I can contribute in future patches :P

Yes no problem.
First you need to create file /etc/portage/bashrc and put this code:
Code:
pre_src_prepare() {
    [[ ${EAPI:-0} == [012345] ]] || return
    if ! type epatch_user > /dev/null 2>&1; then
        local names="EPATCH_USER_SOURCE epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop"
        source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/eutils.eclass)
    fi

    epatch_user

    for name in $names; do
        unset $name
    done
}

This because not all ebuild include epatch_user function for applying the external patches.
Next step is create directory how put patch with command
Code:
# mkdir -p /etc/portage/patches/x11-terms/termite-11

and then put in this direcorty a file (is not important the name) with patch content:
Code:
diff -Naur termite-11.orig/termite.cc termite-11/termite.cc
--- termite-11.orig/termite.cc   2016-10-12 16:32:51.475073249 +0200
+++ termite-11/termite.cc   2016-10-12 16:33:19.452073875 +0200
@@ -20,6 +20,7 @@
 #include <array>
 #include <cstdlib>
 #include <cstring>
+#include <cmath>
 #include <functional>
 #include <limits>
 #include <map>

Finally
Code:
# emerge -1a termite

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Eroen
n00b
n00b


Joined: 20 Dec 2012
Posts: 8
Location: Old World

PostPosted: Wed Oct 12, 2016 7:44 pm    Post subject: Re: Trouble migrating from gcc 4.9.3 to 5.4.0 Reply with quote

irenicus09 wrote:
Termite the terminal that I had, imported from an overlay fails to compile.

This is what I get https://paste.pound-python.org/show/hJtuwtwiJSMuDmKnIZy7/


Thanks for telling me (in irc), upstream fixed this in termite-12 which is in the overlay now. :)
Back to top
View user's profile Send private message
irenicus09
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2013
Posts: 118

PostPosted: Thu Oct 13, 2016 1:48 am    Post subject: Reply with quote

@fedeliallalinea: Thanks a lot for showing me how it's done. :P

@eroen: Hey that was fast, thanks for such a quick update! :)
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Oct 15, 2016 9:55 pm    Post subject: Reply with quote

irenicus09 wrote:
imported from an overlay fails to compile.
Overlays aren't officially supported, so moved from Portage & Programming to Unsupported Software.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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