View previous topic :: View next topic |
Author |
Message |
irenicus09 Tux's lil' helper
Joined: 07 Jun 2013 Posts: 118
|
Posted: Wed Oct 12, 2016 3:08 am Post subject: [Solved] Trouble migrating from gcc 4.9.3 to 5.4.0 |
|
|
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 |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Wed Oct 12, 2016 5:37 am Post subject: |
|
|
Code: | fix_libtool_files.sh
|
Probably does the job ... |
|
Back to top |
|
|
irenicus09 Tux's lil' helper
Joined: 07 Jun 2013 Posts: 118
|
Posted: Wed Oct 12, 2016 2:21 pm Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31004 Location: here
|
Posted: Wed Oct 12, 2016 2:39 pm Post subject: |
|
|
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 |
|
|
irenicus09 Tux's lil' helper
Joined: 07 Jun 2013 Posts: 118
|
Posted: Wed Oct 12, 2016 4:20 pm Post subject: |
|
|
Your patch gives 403 error, in the mean time let me see if I can patch it myself. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31004 Location: here
|
Posted: Wed Oct 12, 2016 4:32 pm Post subject: |
|
|
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 |
|
|
irenicus09 Tux's lil' helper
Joined: 07 Jun 2013 Posts: 118
|
Posted: Wed Oct 12, 2016 5:44 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31004 Location: here
|
Posted: Wed Oct 12, 2016 6:22 pm Post subject: |
|
|
irenicus09 wrote: | It would help me a lot if you could show me how it's done. Perhaps I can contribute in future patches |
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 |
|
|
Eroen n00b
Joined: 20 Dec 2012 Posts: 8 Location: Old World
|
Posted: Wed Oct 12, 2016 7:44 pm Post subject: Re: Trouble migrating from gcc 4.9.3 to 5.4.0 |
|
|
Thanks for telling me (in irc), upstream fixed this in termite-12 which is in the overlay now. :) |
|
Back to top |
|
|
irenicus09 Tux's lil' helper
Joined: 07 Jun 2013 Posts: 118
|
Posted: Thu Oct 13, 2016 1:48 am Post subject: |
|
|
@fedeliallalinea: Thanks a lot for showing me how it's done.
@eroen: Hey that was fast, thanks for such a quick update! |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20103
|
Posted: Sat Oct 15, 2016 9:55 pm Post subject: |
|
|
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 |
|
|
|