Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot build libtool?
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
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1035
Location: Fayetteville, NC, USA

PostPosted: Sat Oct 14, 2017 10:25 pm    Post subject: Cannot build libtool? Reply with quote

I upgraded GCC recently and am trying to rebuild libtool and it isn't working. In fact it fails instantly. The log is located here. Any idea what's wrong?
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 387
Location: Australia

PostPosted: Sat Oct 14, 2017 11:55 pm    Post subject: Reply with quote

What does
Code:
gcc-cofig -l
return?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16545
Location: here

PostPosted: Sun Oct 15, 2017 6:50 am    Post subject: Reply with quote

You can post output of /var/tmp/portage/sys-devel/libtool-2.4.6-r3/temp/libtool-2.4.6-link-specs.patch.out?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1035
Location: Fayetteville, NC, USA

PostPosted: Tue Oct 17, 2017 9:01 pm    Post subject: Reply with quote

Sorry, been away from that system. I can post the output tomorrow or the next day when I return to that site. I do know that the output of 'gcc-config -l' only shows the current GCC, 5.4.0-r3 or something along those lines. No others are listed.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1035
Location: Fayetteville, NC, USA

PostPosted: Mon Nov 20, 2017 2:13 am    Post subject: Reply with quote

Just hit this again. I accidentally wiped the first 16MiB on my internal disk instead of a USB disk we were testing on, so I need to reinstall Gentoo. No biggy, I have backups of my data. I zero the disk for good measure, partition, install the tarball, enter the chroot, do the basic configuration, and then do the first world update. It wants to pull down GCC 6.4, rebuild SSH (I use -bindist) and SSL, and one other package. It finishes, I set GCC to use the new version, do env-update && source /etc/profile && export PS1="(chroot) $PS1", and then attempt to rebuild sys-devel/libtool. Same exact issue. Tells me the patch worked in a dry run, but failed in the real one. I don't have a kernel or anything yet. I am using System Rescue CD to do my Gentoo installs. I believe this is version 4.9.1 of SRCD. What is causing this? I never did figure it out before I screwed it up, but it appears that upgrading to GCC 6.4 breaks things. What can I do to troubleshoot this?

*EDIT*

The build log is located below.
https://paste.pound-python.org/show/3skReq8beZKeKirN78gC/
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16545
Location: here

PostPosted: Mon Nov 20, 2017 7:11 am    Post subject: Reply with quote

Strange, in my system patch is applied. You can post also /var/tmp/portage/sys-devel/libtool-2.4.6-r3/temp/libtool-2.4.6-link-specs.patch.out?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1035
Location: Fayetteville, NC, USA

PostPosted: Tue Nov 21, 2017 3:37 am    Post subject: Reply with quote

Done. It can be found here.

*EDIT*

It says it cannot find a file on line 20 of that paste. No clue why. This is failing on both complete installs which work just fine (desktop and all) and ones being installed from scratch like this laptop.

*UPDATE*

Something is very off here. The output mentioned not being able to find a file on line 21, but line 21 of the specified file is a patch location.
Code:

Signed-off-by: Pavel Raiskup <praiskup@redhat.com>
---
 build-aux/ltmain.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index d5cf07a..0c40da0 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5360,10 +5360,12 @@ func_mode_link ()
       # -tp=*                Portland pgcc target processor selection
       # --sysroot=*          for sysroot support
       # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimiza$
+      # -specs=*             GCC specs files
       # -stdlib=*            select c++ std lib with clang
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*$
-      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
            [ line 21/58 (36%), col 1/42 (2%), char 652/2438 (26%) ]

Line 21 is the "@@ -5360" line.
_________________
Ever picture systemd as what runs "The Borg"?
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