Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 708974

Summary: bootstrap-prefix.sh: configure: error: in `.../work/build/gold': configure: error: C++ preprocessor "/lib/cpp" fails sanity check
Product: Gentoo/Alt Reporter: Xuewei <18800136075>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gentoo/tmp/var/tmp/portage/sys-devel/binutils-2.34/temp/build.log
after disabling 'gold' USE

Description Xuewei 2020-02-10 12:31:30 UTC
Created attachment 613178 [details]
gentoo/tmp/var/tmp/portage/sys-devel/binutils-2.34/temp/build.log

After ./bootstrap-prefix.sh, the problem always happened on Ubuntu 18.04.3LTS.
Comment 1 Benda Xu gentoo-dev 2020-02-11 00:28:30 UTC
Thank you.  I will try to reproduce this bug.  In the mean while, I suspect the newest binutils-2.34 caused this.  Could you please test with older versions of binutils?

Hint: `man portage` and look for package.mask.
Comment 2 Xuewei 2020-02-12 00:53:13 UTC
(In reply to Benda Xu from comment #1)
> Thank you.  I will try to reproduce this bug.  In the mean while, I suspect
> the newest binutils-2.34 caused this.  Could you please test with older
> versions of binutils?
> 
> Hint: `man portage` and look for package.mask.

Thank you for your reply. I try to change the version to 2.33 and 2.32, but it doesn't work. After disablling 'gold' USE of binutils, I realize that it work!
Comment 3 Xuewei 2020-02-12 01:43:21 UTC
Created attachment 613418 [details]
after disabling 'gold' USE
Comment 4 Xuewei 2020-02-12 01:49:15 UTC
Something similar happened to gcc.
Comment 5 Benda Xu gentoo-dev 2020-02-14 02:46:18 UTC
Hi, could you please try again?  Recently we have fixed a bug in binutils which might have caused this bug.

https://bugs.gentoo.org/708184
Comment 6 Xuewei 2020-02-14 11:39:23 UTC
(In reply to Benda Xu from comment #5)
> Hi, could you please try again?  Recently we have fixed a bug in binutils
> which might have caused this bug.
> 
> https://bugs.gentoo.org/708184

emmm, it doesn't seem to work.
Comment 7 Benda Xu gentoo-dev 2020-02-15 14:31:12 UTC
(In reply to 18800136075 from comment #6)
> (In reply to Benda Xu from comment #5)
> > Hi, could you please try again?  Recently we have fixed a bug in binutils
> > which might have caused this bug.
> > 
> > https://bugs.gentoo.org/708184
> 
> emmm, it doesn't seem to work.

Is the error the same as before?
Comment 8 Benda Xu gentoo-dev 2020-02-15 14:34:22 UTC
I tried the bootstrap on Ubuntu 18.04, and the error is like https://bugs.gentoo.org/708974
Comment 9 Xuewei 2020-02-16 03:42:15 UTC
(In reply to Benda Xu from comment #7)
> (In reply to 18800136075 from comment #6)
> > (In reply to Benda Xu from comment #5)
> > > Hi, could you please try again?  Recently we have fixed a bug in binutils
> > > which might have caused this bug.
> > > 
> > > https://bugs.gentoo.org/708184
> > 
> > emmm, it doesn't seem to work.
> 
> Is the error the same as before?

Yes.
Comment 10 Fabian Groffen gentoo-dev 2021-01-21 16:21:08 UTC
I finished bootstrap x86_64-rap-linux-ubuntu18.04 yesterday, and x86_64-pc-linux-ubuntu18.04 likely finishes today, haven't observed this problem.