View previous topic :: View next topic |
Author |
Message |
west17m n00b
Joined: 15 Aug 2004 Posts: 13
|
Posted: Tue Feb 20, 2018 3:51 pm Post subject: [solved] emerge ghc-8 fails with gcc-6.4 |
|
|
Hi all,
I ran into a problem today when recompiling my system after upgrading to gcc-6.4. My toolchain and system recompiled fine. The only issue I have is upgrading ghc-7.10.3=>ghc-8.0.2. I get the following error. Thanks in advance for any ideas.
Code: | /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-lang/ghc-8.0.2/work/usr/lib64/ghc-8.0.2/rts/libHSrts.a(Schedule.o): unrecognized relocation (0x2a) in section `.text'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
`x86_64-pc-linux-gnu-gcc' failed in phase `Linker'. (Exit code: 1)
configure: error: Building ghc-pwd failed |
/var/tmp/portage/dev-lang/ghc-8.0.2/temp/build.log
https://paste.pound-python.org/raw/YLdeACvlPdB4kkMrMQNb/
# emerge --info '=dev-lang/ghc-8.0.2::gentoo'
https://paste.pound-python.org/raw/o5zrh8QAL7eMQCUcWuoQ/
Last edited by west17m on Tue Feb 20, 2018 5:07 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30940 Location: here
|
Posted: Tue Feb 20, 2018 4:10 pm Post subject: |
|
|
What return binutils-config -l command? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
west17m n00b
Joined: 15 Aug 2004 Posts: 13
|
Posted: Tue Feb 20, 2018 4:15 pm Post subject: |
|
|
fedeliallalinea wrote: | binutils-config -l command? |
Code: | [1] x86_64-pc-linux-gnu-2.25.1 *
[2] x86_64-pc-linux-gnu-2.26.1
[3] x86_64-pc-linux-gnu-2.28
[4] x86_64-pc-linux-gnu-2.28.1
[5] x86_64-pc-linux-gnu-2.29.1
|
Hmm ... I don't think I've ever changed my binutils version before. Is that the issue? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30940 Location: here
|
Posted: Tue Feb 20, 2018 4:22 pm Post subject: |
|
|
west17m wrote: | Hmm ... I don't think I've ever changed my binutils version before. Is that the issue? |
Maybe, in any case activate last stable binutils is a good idea. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
west17m n00b
Joined: 15 Aug 2004 Posts: 13
|
Posted: Tue Feb 20, 2018 5:08 pm Post subject: |
|
|
fedeliallalinea wrote: | west17m wrote: | Hmm ... I don't think I've ever changed my binutils version before. Is that the issue? |
Maybe, in any case activate last stable binutils is a good idea. |
Updating to the latest binutils fixed the problem. Thanks so much. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30940 Location: here
|
Posted: Tue Feb 20, 2018 5:13 pm Post subject: |
|
|
You can also remove old version of binutils with depclean
Code: | # emerge -ca sys-devel/binutils |
check, before accept, if latest version is omitted _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|