I tried installing gentoo prefix on WSL2 running debian.....

classic Classic list List threaded Threaded
49 messages Options
123
Reply | Threaded
Open this post in threaded view
|

I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
Dear All.

For a bit of fun I tried installing gentoo prefix on a debian stretch install running under WSL2 (Linux subsystem on Windows 10).

The installation went OK until stage 2.  I did not need to recruit a version of m4 from debian.  I think Fabian Grobian's bug fix did that.

A problem occurred with sys-devel/binutils:

configure: error: in `/home/mikef/gentoo/tmp/var/tmp/portage/sys-devel/binutils-2.32-r1/work/build/gold':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
make[1]: *** [Makefile:5994: configure-gold] Error 1
make[1]: *** Waiting for unfinished jobs....
-lfl

The output to the terminal buffer is here:


Comments appreciated.

My tutorial is getting longer....

Regards

Michael Fothergill


Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Fabian Groffen-2
Can you try again after exporting LATEST_TREE=yes?  Just to be sure, I
though I'd seen something in this area.

Fabian


On 02-07-2019 08:52:59 +0100, Michael Fothergill wrote:

> Dear All.
>
> For a bit of fun I tried installing gentoo prefix on a debian stretch install
> running under WSL2 (Linux subsystem on Windows 10).
>
> The installation went OK until stage 2.  I did not need to recruit a version of
> m4 from debian.  I think Fabian Grobian's bug fix did that.
>
> A problem occurred with sys-devel/binutils:
>
> configure: error: in
> `/home/mikef/gentoo/tmp/var/tmp/portage/sys-devel/binutils-2.32-r1/work/build/gold':
> configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> See `config.log' for more details
> config.status: executing default-1 commands
> config.status: creating po/POTFILES
> config.status: creating po/Makefile
> make[1]: *** [Makefile:5994: configure-gold] Error 1
> make[1]: *** Waiting for unfinished jobs....
> -lfl
>
> The output to the terminal buffer is here:
>
> [1]https://paste.debian.net/1089974/
>
> Comments appreciated.
>
> My tutorial is getting longer....
>
> Regards
>
> Michael Fothergill
>
>
>
>  References:
>    1. https://paste.debian.net/1089974/
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Fabian Groffen-2
sorry, I got the variable name wrong, it should be:

export LATEST_TREE_YES=1
./bootstrap-prefix.sh

Fabian

On 02-07-2019 10:20:49 +0200, Fabian Groffen wrote:

> Can you try again after exporting LATEST_TREE=yes?  Just to be sure, I
> though I'd seen something in this area.
>
> Fabian
>
>
> On 02-07-2019 08:52:59 +0100, Michael Fothergill wrote:
> > Dear All.
> >
> > For a bit of fun I tried installing gentoo prefix on a debian stretch install
> > running under WSL2 (Linux subsystem on Windows 10).
> >
> > The installation went OK until stage 2.  I did not need to recruit a version of
> > m4 from debian.  I think Fabian Grobian's bug fix did that.
> >
> > A problem occurred with sys-devel/binutils:
> >
> > configure: error: in
> > `/home/mikef/gentoo/tmp/var/tmp/portage/sys-devel/binutils-2.32-r1/work/build/gold':
> > configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> > See `config.log' for more details
> > config.status: executing default-1 commands
> > config.status: creating po/POTFILES
> > config.status: creating po/Makefile
> > make[1]: *** [Makefile:5994: configure-gold] Error 1
> > make[1]: *** Waiting for unfinished jobs....
> > -lfl
> >
> > The output to the terminal buffer is here:
> >
> > [1]https://paste.debian.net/1089974/
> >
> > Comments appreciated.
> >
> > My tutorial is getting longer....
> >
> > Regards
> >
> > Michael Fothergill
> >
> >
> >
> >  References:
> >    1. https://paste.debian.net/1089974/
> >
> > read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
> --
> Fabian Groffen
> Gentoo on a different level


--
Fabian Groffen
Gentoo on a different level

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill


Many thanks for your help again.

I did the export command as you suggested and then ran the bootstrap script again.

It started at stage 2 and ran through and crashed again exactly as before.

No cure yet.

I can't emerge wgetpaste yet.

So I have posted as much of the build log as the terminal buffer retains here:


Suggestions on another solution is appreciated.

Regards

Michael








Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Fabian Groffen-2
We really need the config.log file around the place where it tests for
/lib/ccp, which is the thing it believes is non-sane in your system.

Fabian

On 02-07-2019 10:15:06 +0100, Michael Fothergill wrote:

> > Many thanks for your help again.
>
> I did the export command as you suggested and then ran the bootstrap script
> again.
>
> It started at stage 2 and ran through and crashed again exactly as before.
>
> No cure yet.
>
> I can't emerge wgetpaste yet.
>
> So I have posted as much of the build log as the terminal buffer retains here:
>
> [1]https://paste.debian.net/1089980/
>
> Suggestions on another solution is appreciated.
>
> Regards
>
> Michael
>
>
>
>  References:
>    1. https://paste.debian.net/1089980/
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill

Many thanks again.

I have posted as much of the config.log file as the terminal buffer retains here:


https://paste.debian.net/1089991/

Comments appreciated.

Regards

Michael




Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Fabian Groffen-2
Open config.log in an editor (e.g. nano) and search for /lib/cpp.  Then
a bound of lines around that are the interesting ones.

On 02-07-2019 10:56:32 +0100, Michael Fothergill wrote:

> Many thanks again.
>
> I have posted as much of the config.log file as the terminal buffer retains
> here:
>
> [1]https://paste.debian.net/1089991/
>
> Comments appreciated.
>
> Regards
>
> Michael
>
>
>
>  References:
>    1. https://paste.debian.net/1089991/
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
Many thanks again.

I think I have managed to paste the entire config.log file here:


comments appreciated.

Regards

MF


On Tue, 2 Jul 2019 at 11:45, Fabian Groffen <[hidden email]> wrote:
Open config.log in an editor (e.g. nano) and search for /lib/cpp.  Then
a bound of lines around that are the interesting ones.

On 02-07-2019 10:56:32 +0100, Michael Fothergill wrote:
> Many thanks again.
>
> I have posted as much of the config.log file as the terminal buffer retains
> here:
>
> [1]https://paste.debian.net/1089991/
>
> Comments appreciated.
>
> Regards
>
> Michael
>
>
>
>  References:
>    1. https://paste.debian.net/1089991/
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
I tried installing emacs but it is awkward to use in the windows terminal.


Regards

MF








Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
This early piece of output does not look encouraging to me:

gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
configure:4306: $? = 0
configure:4295: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4306: $? = 1
configure:4295: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4306: $? = 1

Comments appreciated.

Regards

MF

On Tue, 2 Jul 2019 at 12:40, Michael Fothergill <[hidden email]> wrote:
I tried installing emacs but it is awkward to use in the windows terminal.


Regards

MF








Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Fabian Groffen-2
configure:4968: g++ -c -g -I/home/mikef/gentoo/tmp/usr/include
conftest.cpp >&5
/home/mikef/gentoo/tmp/usr/local/bin/g++: 3: exec: g++: not found

I remember this problem from Ubuntu bootstraps, you need to apt-get g++.

Fabian


On 02-07-2019 12:45:11 +0100, Michael Fothergill wrote:

> This early piece of output does not look encouraging to me:
>
> gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
> configure:4306: $? = 0
> configure:4295: gcc -V >&5
> gcc: error: unrecognized command line option '-V'
> gcc: fatal error: no input files
> compilation terminated.
> configure:4306: $? = 1
> configure:4295: gcc -qversion >&5
> gcc: error: unrecognized command line option '-qversion'; did you mean
> '--version'?
> gcc: fatal error: no input files
> compilation terminated.
> configure:4306: $? = 1
>
> Comments appreciated.
>
> Regards
>
> MF
>
> On Tue, 2 Jul 2019 at 12:40, Michael Fothergill
> <[1][hidden email]> wrote:
>
> > I tried installing emacs but it is awkward to use in the windows terminal.
>
> > Regards
>
> > MF
>
>
>
>  References:
>    1. mailto:[hidden email]
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
Dear All,

The installer is now compiling gcc 9......



Regards

MF


On Tue, 2 Jul 2019 at 13:03, Fabian Groffen <[hidden email]> wrote:
configure:4968: g++ -c -g -I/home/mikef/gentoo/tmp/usr/include
conftest.cpp >&5
/home/mikef/gentoo/tmp/usr/local/bin/g++: 3: exec: g++: not found

I remember this problem from Ubuntu bootstraps, you need to apt-get g++.

Fabian


On 02-07-2019 12:45:11 +0100, Michael Fothergill wrote:
> This early piece of output does not look encouraging to me:
>
> gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
> configure:4306: $? = 0
> configure:4295: gcc -V >&5
> gcc: error: unrecognized command line option '-V'
> gcc: fatal error: no input files
> compilation terminated.
> configure:4306: $? = 1
> configure:4295: gcc -qversion >&5
> gcc: error: unrecognized command line option '-qversion'; did you mean
> '--version'?
> gcc: fatal error: no input files
> compilation terminated.
> configure:4306: $? = 1
>
> Comments appreciated.
>
> Regards
>
> MF
>
> On Tue, 2 Jul 2019 at 12:40, Michael Fothergill
> <[1][hidden email]> wrote:
>
> > I tried installing emacs but it is awkward to use in the windows terminal.
>
> > Regards
>
> > MF
>
>
>
>  References:
>    1. mailto:[hidden email]
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
Dear All,

The installation crashed in stage 3.

It seems to be a file permission problem.

The stage3 log file is too large for pastebinit.

I have posted the last 200 odd lines here:


This looks to be the problem:

>>> /home/mikef/gentoo/usr/lib64/binutils/x86_64-pc-linux-gnu/2.32/libbfd.so -> libbfd-2.32.0.gentoo-sys-devel-binutils-st.so
>>> /home/mikef/gentoo/usr/lib64/binutils/x86_64-pc-linux-gnu/2.32/libopcodes.so -> libopcodes-2.32.0.gentoo-sys-devel-binutils-st.so
!!! Failed to move /home/mikef/gentoo/var/db/pkg/sys-devel/-MERGING-binutils-2.32-r1 to /home/mikef/gentoo/var/db/pkg/sys-devel/binutils-2.32-r1
!!! [Errno 13] Permission denied: b'/home/mikef/gentoo/var/db/pkg/sys-devel/-MERGING-binutils-2.32-r1' -> b'/home/mikef/gentoo/var/db/pkg/sys-devel/binutils-2.32-r1'
Traceback (most recent call last):
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/dbapi/_MergeProcess.py", line 234, in _spawn
    prev_mtimes=self.prev_mtimes, counter=counter)
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/dbapi/vartree.py", line 1691, in wrapper
    return f(self, *args, **kwargs)
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/dbapi/vartree.py", line 5194, in merge
    counter=counter)
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/dbapi/vartree.py", line 4465, in treewalk
    _movefile(self.dbtmpdir, self.dbpkgdir, mysettings=self.settings)
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/__init__.py", line 515, in _movefile
    "mv '%s' '%s'" % (src, dest))
portage.exception.PortageException: mv '/home/mikef/gentoo/var/db/pkg/sys-devel/-MERGING-binutils-2.32-r1' '/home/mikef/gentoo/var/db/pkg/sys-devel/binutils-2.32-r1'

>>> Failed to install sys-devel/binutils-2.32-r1, Log file:

Suggestions on what might be the problem here are most welcome.

Regards

MF





Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
Dear All,

I have posted the build log here:


Regards

MF





  





Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Fabian Groffen-2
In reply to this post by Michael Fothergill
On 02-07-2019 22:48:57 +0100, Michael Fothergill wrote:
> !!! Failed to move
> /home/mikef/gentoo/var/db/pkg/sys-devel/-MERGING-binutils-2.32-r1 to
> /home/mikef/gentoo/var/db/pkg/sys-devel/binutils-2.32-r1
> !!! [Errno 13] Permission denied:
> b'/home/mikef/gentoo/var/db/pkg/sys-devel/-MERGING-binutils-2.32-r1' ->
> b'/home/mikef/gentoo/var/db/pkg/sys-devel/binutils-2.32-r1'

I don't think it's fair that Portage bombs out after this, but this
EPERM is odd, if not very odd.  Is this on NFS or something?

Fabian

--
Fabian Groffen
Gentoo on a different level

signature.asc (495 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
Yes.

The parent debian OS lives on the ntfs partition alongside Windows 10.

WSL 2 is Microsoft''s latest foray into  Linux. 

I will see what I can find out about this EPERM thing.

Regards 

MF


Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Fabian Groffen-2
portage expects it can rename a directory ... that fails, suddenly.

If you resume, does it just continue?

Fabian


On 03-07-2019 19:17:20 +0100, Michael Fothergill wrote:

> Yes.
>
> The parent debian OS lives on the ntfs partition alongside Windows 10.
>
> WSL 2 is Microsoft''s latest foray into  Linux. 
>
> I will see what I can find out about this EPERM thing.
>
> Regards 
>
> MF
>
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill
Do you mean the resume command you use alongside emerge -- skipfirst etc?

Regards 

MF


On Wed, 3 Jul 2019, 19:21 Fabian Groffen, <[hidden email]> wrote:
portage expects it can rename a directory ... that fails, suddenly.

If you resume, does it just continue?

Fabian


On 03-07-2019 19:17:20 +0100, Michael Fothergill wrote:
> Yes.
>
> The parent debian OS lives on the ntfs partition alongside Windows 10.
>
> WSL 2 is Microsoft''s latest foray into  Linux. 
>
> I will see what I can find out about this EPERM thing.
>
> Regards 
>
> MF
>
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Fabian Groffen-2
Just run bootstrap-prefix.sh again with the same answers to its
questions

On 03-07-2019 19:34:52 +0100, Michael Fothergill wrote:

> Do you mean the resume command you use alongside emerge -- skipfirst etc?
>
> Regards 
>
> MF
>
> On Wed, 3 Jul 2019, 19:21 Fabian Groffen, <[1][hidden email]> wrote:
>
> > portage expects it can rename a directory ... that fails, suddenly.
>
> > If you resume, does it just continue?
>
> > Fabian
>
> > On 03-07-2019 19:17:20 +0100, Michael Fothergill wrote:
> > > Yes.
> > >
> > > The parent debian OS lives on the ntfs partition alongside Windows 10.
> > >
> > > WSL 2 is Microsoft''s latest foray into  Linux. 
> > >
> > > I will see what I can find out about this EPERM thing.
> > >
> > > Regards 
> > >
> > > MF
> > >
> > >
> > > read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
> > --
> > Fabian Groffen
> > Gentoo on a different level
>
>
>
>  References:
>    1. mailto:[hidden email]
>
> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
--
Fabian Groffen
Gentoo on a different level

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I tried installing gentoo prefix on WSL2 running debian.....

Michael Fothergill

I ran the installation again .

After 10 hours it crashed at a different point but with a "spawn-esque" permission problem:

!!! Failed to move /home/mikef/gentoo/var/db/pkg/sys-apps/-MERGING-coreutils-8.31 to /home/mikef/gentoo/var/db/pkg/sys-apps/coreutils-8.31
!!! [Errno 13] Permission denied: b'/home/mikef/gentoo/var/db/pkg/sys-apps/-MERGING-coreutils-8.31' -> b'/home/mikef/gentoo/var/db/pkg/sys-apps/coreutils-8.31'
Traceback (most recent call last):
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/dbapi/_MergeProcess.py", line 234, in _spawn
    prev_mtimes=self.prev_mtimes, counter=counter)
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/dbapi/vartree.py", line 1691, in wrapper
    return f(self, *args, **kwargs)
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/dbapi/vartree.py", line 5194, in merge
    counter=counter)
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/dbapi/vartree.py", line 4465, in treewalk
    _movefile(self.dbtmpdir, self.dbpkgdir, mysettings=self.settings)
  File "/home/mikef/gentoo/tmp/usr/lib/python3.6/portage/__init__.py", line 515, in _movefile
    "mv '%s' '%s'" % (src, dest))
portage.exception.PortageException: mv '/home/mikef/gentoo/var/db/pkg/sys-apps/-MERGING-coreutils-8.31' '/home/mikef/gentoo/var/db/pkg/sys-apps/coreutils-8.31'

>>> Failed to install sys-apps/coreutils-8.31, Log file:

>>>  '/home/mikef/gentoo/var/tmp/portage/sys-apps/coreutils-8.31/temp/build.log'

I think you should be able to see the log file here:


It would be nice to be able to make use of ccache in these reruns....

Regards

MF



 
 


123