Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] emerge ghc-8 fails with gcc-6.4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
west17m
n00b
n00b


Joined: 15 Aug 2004
Posts: 13

PostPosted: Tue Feb 20, 2018 3:51 pm    Post subject: [solved] emerge ghc-8 fails with gcc-6.4 Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30940
Location: here

PostPosted: Tue Feb 20, 2018 4:10 pm    Post subject: Reply with quote

What return binutils-config -l command?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
west17m
n00b
n00b


Joined: 15 Aug 2004
Posts: 13

PostPosted: Tue Feb 20, 2018 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30940
Location: here

PostPosted: Tue Feb 20, 2018 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
west17m
n00b
n00b


Joined: 15 Aug 2004
Posts: 13

PostPosted: Tue Feb 20, 2018 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30940
Location: here

PostPosted: Tue Feb 20, 2018 5:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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