public inbox for gentoo-soc@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-soc] Re: Weekly Report: Project - Standalone Gentoo Chromebook
  2020-06-22 10:11 [gentoo-soc] " Ashwin Kumar
@ 2020-06-28 14:03 ` Benda Xu
  2020-06-29  1:37   ` Ashwin Kumar
  0 siblings, 1 reply; 7+ messages in thread
From: Benda Xu @ 2020-06-28 14:03 UTC (permalink / raw
  To: Ashwin Kumar; +Cc: gentoo-soc

Hi Ashwin,

Ashwin Kumar <ashwinkumar3098@gmail.com> writes:

> As gcc needed glibc version 2.29, 

Which gcc requires glibc-2.29.  Could you elaborate on that?

> I started emerging it with its dependencies and also by adding
> required use flags. But it built a glibc that doesn’t work and failed
> sanity checks. So, I changed the profile to
> default/linux/amd64/17.1/desktop

I am concerned that if you use this profile, the system will not be a
chromebook anymore.

> and added gcc, glibc to packages.provided which overcame the problem
> of circular dependencies.
>
> Then, It needed perl package, So I had to cross compile it using
> crossdev. 

(from your blog)
> After all this, perl package failed to emerge by giving an error that it
> couldn’t cross-compile perl. I asked on IRC Channel and they asked me to
> find the right version of perl to emerge which is compatible perl-cross

> x86_64-cros-linux-gnu-emerge -av1 =dev-lang/perl-5.30.1

Where are you compiling perl?  Why do you need to cross compile perl?  I
am completely confused.

> At last, I zipped the toolchain directory, copied to crOS and unzipped
> it. But it failed as it had less space on its root partition. I
> referred a script called chromeos-resize.sh and learnt things that was
> required. It successfully extended the root partition.

(from your blog)
> Similarly as above, Missing USE flag 'amd64' So, added amd64 use flag
> under IUSE_IMPLICIT variable to
> /etc/portage/make.profile/make.defaults

> IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest kernel_linux amd64"

This is wrong.  'amd64' is a Gentoo KEYWORD, do not mix it with USE.
Please look for ACCEPT_KEYWORDS in the profile.  Refer to,

  https://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS


Benda

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-soc] Re: Weekly Report: Project - Standalone Gentoo Chromebook
  2020-06-16  1:11 [gentoo-soc] " Ashwin Kumar
@ 2020-06-28 14:17 ` Benda Xu
  2020-06-29  1:38   ` Ashwin Kumar
  0 siblings, 1 reply; 7+ messages in thread
From: Benda Xu @ 2020-06-28 14:17 UTC (permalink / raw
  To: Ashwin Kumar; +Cc: gentoo-soc

Hi Ashwin,

Ashwin Kumar <ashwinkumar3098@gmail.com> writes:

> I remounted the partitions with read/write and execute option. Then
> downloaded the toolchain repository, moved it to the right directory,
> set the path and symlinked them to /usr/bin. Later, I configured
> portage to pull from the gentoo repository, fetched the latest
> snapshot, setup make.conf and ask it to compile and build the
> package. Also, I did manually build some packages from sources that
> were necessary for portage.

> I tried to update the profile but got struck in circular
> dependencies. So, I am emerging those packages now. I was able to
> emerge sys-devel/binutils but now struck with emerging sys-devel/gcc.
>
> [1] Blog : https://zshzero.github.io/blog/gsoc/week2

From your blog:

> Afterwards, it complained about not having the right verion of glibc
>  Error: Needed GLIBC Version 2.29

Please show the steps to reproduce this error.  Which gcc are you
compiling?  Are you sure it is requiring glibc 2.29?

Benda


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-soc] Re: Weekly Report: Project - Standalone Gentoo Chromebook
  2020-06-28 14:03 ` [gentoo-soc] " Benda Xu
@ 2020-06-29  1:37   ` Ashwin Kumar
  0 siblings, 0 replies; 7+ messages in thread
From: Ashwin Kumar @ 2020-06-29  1:37 UTC (permalink / raw
  To: Benda Xu; +Cc: gentoo-soc

[-- Attachment #1: Type: text/plain, Size: 2864 bytes --]

Hi,

> Which gcc requires glibc-2.29.  Could you elaborate on that?
Sorry, I have not logged the version but it was using keyword ~amd64 (Steps
to reproduce
<https://gist.github.com/zshzero/e9f7d763923203b3e8a14c8883ce4ed6>)

> I am concerned that if you use this profile, the system will not be a
chromebook anymore.
I was missing many keywords, so i changed the profile Also, I was prefixing
it to /usr/local to keep the system safe

> Where are you compiling perl?  Why do you need to cross compile perl?  I
am completely confused.
Here is the list <https://pastebin.com/1esZwLcc> of circular dependencies.
I was trying to add them to crOS

> This is wrong.  'amd64' is a Gentoo KEYWORD, do not mix it with USE.
I got this advice from irc channel for error => invalid: REDEPEND: USE flag
'amd64' referenced in conditional 'amd64?' is not in use


On Sun, 28 Jun 2020 at 19:33, Benda Xu <heroxbd@gentoo.org> wrote:

> Hi Ashwin,
>
> Ashwin Kumar <ashwinkumar3098@gmail.com> writes:
>
> > As gcc needed glibc version 2.29,
>
> Which gcc requires glibc-2.29.  Could you elaborate on that?
>
> > I started emerging it with its dependencies and also by adding
> > required use flags. But it built a glibc that doesn’t work and failed
> > sanity checks. So, I changed the profile to
> > default/linux/amd64/17.1/desktop
>
> I am concerned that if you use this profile, the system will not be a
> chromebook anymore.
>
> > and added gcc, glibc to packages.provided which overcame the problem
> > of circular dependencies.
> >
> > Then, It needed perl package, So I had to cross compile it using
> > crossdev.
>
> (from your blog)
> > After all this, perl package failed to emerge by giving an error that it
> > couldn’t cross-compile perl. I asked on IRC Channel and they asked me to
> > find the right version of perl to emerge which is compatible perl-cross
>
> > x86_64-cros-linux-gnu-emerge -av1 =dev-lang/perl-5.30.1
>
> Where are you compiling perl?  Why do you need to cross compile perl?  I
> am completely confused.
>
> > At last, I zipped the toolchain directory, copied to crOS and unzipped
> > it. But it failed as it had less space on its root partition. I
> > referred a script called chromeos-resize.sh and learnt things that was
> > required. It successfully extended the root partition.
>
> (from your blog)
> > Similarly as above, Missing USE flag 'amd64' So, added amd64 use flag
> > under IUSE_IMPLICIT variable to
> > /etc/portage/make.profile/make.defaults
>
> > IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest kernel_linux amd64"
>
> This is wrong.  'amd64' is a Gentoo KEYWORD, do not mix it with USE.
> Please look for ACCEPT_KEYWORDS in the profile.  Refer to,
>
>   https://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS
>
>
> Benda
>


-- 
- Regards

Ashwin A Kumar

[-- Attachment #2: Type: text/html, Size: 4015 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-soc] Re: Weekly Report: Project - Standalone Gentoo Chromebook
  2020-06-28 14:17 ` [gentoo-soc] " Benda Xu
@ 2020-06-29  1:38   ` Ashwin Kumar
  0 siblings, 0 replies; 7+ messages in thread
From: Ashwin Kumar @ 2020-06-29  1:38 UTC (permalink / raw
  To: Benda Xu; +Cc: gentoo-soc

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

Hi,

> Please show the steps to reproduce this error.  Which gcc are you
compiling?  Are you sure it is requiring glibc 2.29?
Yes, I am sure as i had glibc 2.27 => (Error: Needed GLIBC Version 2.29)
Steps to reproduce
<https://gist.github.com/zshzero/e9f7d763923203b3e8a14c8883ce4ed6>



On Sun, 28 Jun 2020 at 19:47, Benda Xu <heroxbd@gentoo.org> wrote:

> Hi Ashwin,
>
> Ashwin Kumar <ashwinkumar3098@gmail.com> writes:
>
> > I remounted the partitions with read/write and execute option. Then
> > downloaded the toolchain repository, moved it to the right directory,
> > set the path and symlinked them to /usr/bin. Later, I configured
> > portage to pull from the gentoo repository, fetched the latest
> > snapshot, setup make.conf and ask it to compile and build the
> > package. Also, I did manually build some packages from sources that
> > were necessary for portage.
>
> > I tried to update the profile but got struck in circular
> > dependencies. So, I am emerging those packages now. I was able to
> > emerge sys-devel/binutils but now struck with emerging sys-devel/gcc.
> >
> > [1] Blog : https://zshzero.github.io/blog/gsoc/week2
>
> From your blog:
>
> > Afterwards, it complained about not having the right verion of glibc
> >  Error: Needed GLIBC Version 2.29
>
> Please show the steps to reproduce this error.  Which gcc are you
> compiling?  Are you sure it is requiring glibc 2.29?
>
> Benda
>


-- 
- Regards

Ashwin A Kumar

[-- Attachment #2: Type: text/html, Size: 2223 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
@ 2020-06-29  8:40 Ashwin Kumar
  2020-07-01  9:19 ` [gentoo-soc] " Benda Xu
  0 siblings, 1 reply; 7+ messages in thread
From: Ashwin Kumar @ 2020-06-29  8:40 UTC (permalink / raw
  To: gentoo-soc; +Cc: Brian Dolbec, Benda Xu

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

Hi everyone,

After expanding the root partition, I moved the toolchain built using
crossdev to crOS and configured it. But crOS core packages are compiled
with older version of gcc and glibc which is holding back to compile new
packages using portage. So, I thought to upgrade it to using the
Upgrading_Gentoo guide. But again, It broke the core packages. I also tried
to install to /usr/local but the problem persisted.

So, next week, I will be trying to setup a prefix for crOS. I have brief
understanding of it, so i would be following the manual bootstrap
<https://wiki.gentoo.org/wiki/Project:Prefix/Manual_Bootstrap> process and
also setting it up stage wise would make debugging easy. As a prerequisite,
I should have a toolchain packages which i already have built using
crosstool-ng
-- 
- Regards

Ashwin A Kumar

[-- Attachment #2: Type: text/html, Size: 1023 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-soc] Re: Weekly Report: Project - Standalone Gentoo Chromebook
  2020-06-29  8:40 [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook Ashwin Kumar
@ 2020-07-01  9:19 ` Benda Xu
  2020-07-01 10:41   ` Ashwin Kumar
  0 siblings, 1 reply; 7+ messages in thread
From: Benda Xu @ 2020-07-01  9:19 UTC (permalink / raw
  To: Ashwin Kumar; +Cc: gentoo-soc

Ashwin Kumar <ashwinkumar3098@gmail.com> writes:

> So, next week, I will be trying to setup a prefix for crOS. I have
> brief understanding of it, so i would be following the manual
> bootstrap process and also setting it up stage wise would make
> debugging easy. As a prerequisite, I should have a toolchain packages
> which i already have built using crosstool-ng

You don't need to manually bootstrap a prefix.  Please grab a tarball
from 

  https://github.com/awesomebytes/gentoo_prefix_ci

and follow the instruction on the said page to get a working Gentoo
Prefix on your CrOS.

Benda


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-soc] Re: Weekly Report: Project - Standalone Gentoo Chromebook
  2020-07-01  9:19 ` [gentoo-soc] " Benda Xu
@ 2020-07-01 10:41   ` Ashwin Kumar
  0 siblings, 0 replies; 7+ messages in thread
From: Ashwin Kumar @ 2020-07-01 10:41 UTC (permalink / raw
  To: Benda Xu; +Cc: gentoo-soc

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

Thanks, I'll check it out.

On Wed, 1 Jul 2020, 14:49 Benda Xu, <heroxbd@gentoo.org> wrote:

> Ashwin Kumar <ashwinkumar3098@gmail.com> writes:
>
> > So, next week, I will be trying to setup a prefix for crOS. I have
> > brief understanding of it, so i would be following the manual
> > bootstrap process and also setting it up stage wise would make
> > debugging easy. As a prerequisite, I should have a toolchain packages
> > which i already have built using crosstool-ng
>
> You don't need to manually bootstrap a prefix.  Please grab a tarball
> from
>
>   https://github.com/awesomebytes/gentoo_prefix_ci
>
> and follow the instruction on the said page to get a working Gentoo
> Prefix on your CrOS.
>
> Benda
>

[-- Attachment #2: Type: text/html, Size: 1250 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-01 10:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-29  8:40 [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook Ashwin Kumar
2020-07-01  9:19 ` [gentoo-soc] " Benda Xu
2020-07-01 10:41   ` Ashwin Kumar
  -- strict thread matches above, loose matches on Subject: below --
2020-06-22 10:11 [gentoo-soc] " Ashwin Kumar
2020-06-28 14:03 ` [gentoo-soc] " Benda Xu
2020-06-29  1:37   ` Ashwin Kumar
2020-06-16  1:11 [gentoo-soc] " Ashwin Kumar
2020-06-28 14:17 ` [gentoo-soc] " Benda Xu
2020-06-29  1:38   ` Ashwin Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox