Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ~amd64 install from scratch?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Sat Mar 24, 2018 3:57 pm    Post subject: [SOLVED] ~amd64 install from scratch? Reply with quote

Hi Gentoo @world :-)

Wondering if Im doing it right.

ACCEPT_KEYWORDS="~amd64"

Setting profile 12, emerging gcc 7.3.

Change to
Code:
CFLAGS="-march=native -O2 -pipe -mindirect-branch=thunk"


Code:
emerge --ask --verbose --emptytree --with-bdeps=y @system

Code:
emerge --ask --verbose --emptytree --with-bdeps=y @world


Change to profile 16. And follow the rest of the handbook.


Last edited by ayeyes on Mon Jun 04, 2018 5:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6290

PostPosted: Sat Mar 24, 2018 5:55 pm    Post subject: Reply with quote

I would try to switch to the final profile ASAP, since otherwise you have a lot of unnecessary recompilations due to changed USE-flags.
The disadvantage is that you might have some conflicts to resolve, but eventually you will have to deal with these conflicts anyway.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Sat Mar 24, 2018 6:17 pm    Post subject: Reply with quote

Thank you mv, much appreciated. :-) Then --emptyworld @system will be 401 packages, and the same count with @world, instead of 182 packages with profile 12.

Last edited by ayeyes on Sat Mar 24, 2018 6:29 pm; edited 2 times in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10278
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Mar 24, 2018 6:24 pm    Post subject: Reply with quote

If you're installing from scratch and have just unpacked the stage tarball, then essentially all you have is @system. That used to be strictly true; now it's still true enough for practical purposes. You can save yourself some time on the recompile by just recompiling the @selected set on the second emerge you've outlined above:
Code:
emerge --emptytree --with-bdeps=y @selected
@selected is the intersection of @world and @system.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Sat Mar 24, 2018 6:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Sat Mar 24, 2018 6:28 pm    Post subject: Reply with quote

Thank you John, much appreciated. :-)
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10278
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Mar 24, 2018 6:30 pm    Post subject: Reply with quote

You're welcome, but see my clarification above. I meant to recommend @selected for the second emerge, not the first.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Sat Mar 24, 2018 6:38 pm    Post subject: Reply with quote

Thank you! I missed that.

So it will be?

Set profile 16, emerge gcc-7.3, -e @system (or @world?), and the -e @selected?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10278
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Mar 24, 2018 6:51 pm    Post subject: Reply with quote

If you're following both mv's and my advice, then yes: profile, then @system, then @selected.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Sat Mar 24, 2018 6:58 pm    Post subject: Reply with quote

Thank you! Came to think what you said about intersection. Setting profile 12, and @system, and then @selected with profile 16?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10278
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Mar 24, 2018 7:05 pm    Post subject: Reply with quote

In order to comment on & confirm your profile plans, could you tell me the names instead of the eselect number, please?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Sat Mar 24, 2018 7:09 pm    Post subject: Reply with quote

Yes :D 12 is defaults/linux/amd64/17.0, and 16 is default/linux/amd64/17.0/desktop.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10278
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 26, 2018 5:45 pm    Post subject: Reply with quote

Then that seems right. I often start out with a more basic profile and then add the GUI stuff after I have an up-to-date, self supporting text only installation.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Mon Mar 26, 2018 7:07 pm    Post subject: Reply with quote

Thank you, much appreciated!

Regarding the first --depclean, after the first -e @system I'm presented with this, and wondering. Maybe keep binutils slotted? Since all before have compiled fine with GCC-7.3.0 I don't see the need for GCC-6.4.0.

Code:
sys-devel/automake
    selected: 1.15.1-r2
   protected: none
     omitted: 1.16.1-r1

 sys-devel/gcc
    selected: 6.4.0-r1
   protected: none
     omitted: 7.3.0

 virtual/libelf
    selected: 3
   protected: none
     omitted: none

 sys-libs/db
    selected: 5.3.28-r2
   protected: none
     omitted: 6.0.35-r1

 virtual/perl-File-Path
    selected: 2.130.0
   protected: none
     omitted: none

 perl-core/File-Path
    selected: 2.130.0
   protected: none
     omitted: none

 dev-libs/elfutils
    selected: 0.170-r1
   protected: none
     omitted: none

 sys-devel/binutils
    selected: 2.29.1-r1
   protected: none
     omitted: 2.30
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10278
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 26, 2018 7:17 pm    Post subject: Reply with quote

I'd be more concerned about gcc. Since gcc-7.3.0 hasn't been stabilized, it means that something (fairly recently, at least) didn't compile right with it. In any case, for anything you want to keep, just add to the @selected set. For example,
Code:
emerge --noreplace =gcc-7.3.0
which will make it ineligible for --depclean.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Mon Mar 26, 2018 7:21 pm    Post subject: Reply with quote

Thank you! :-)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Tue Mar 27, 2018 2:00 am    Post subject: Reply with quote

looks similar to problem I had with gcc-7.3.0 that required me to make a couple of symlinks manually
try emerge binutils | wgetpaste -t and post the url returned
_________________
Defund the FCC.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Tue Mar 27, 2018 2:55 pm    Post subject: Reply with quote

Thanks, but I don't see what you're referring to.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Tue Mar 27, 2018 6:20 pm    Post subject: Reply with quote

I don't see it either. Forgive the noise, I was seeing ghost problems.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Tue Mar 27, 2018 7:34 pm    Post subject: Reply with quote

Don't know how to reply, but all ok. :D English isn't my first language.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Wed Mar 28, 2018 6:52 pm    Post subject: Reply with quote

Is it OK to --exclude gcc with the -e @selected?

GCC-7.3 is rebuilt with GCC-7.3 during -e @system, and GCC-6.4 is rebuilt after adding it with - - noreplace. Can't --depclean after that before doing -uDN @world, where GCC-6.4 is rebuilt.
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 901
Location: The Village, Portmeirion

PostPosted: Wed Mar 28, 2018 7:08 pm    Post subject: Reply with quote

ayeyes wrote:
Is it OK to --exclude gcc with the -e @selected?

GCC-7.3 is rebuilt with GCC-7.3 during -e @system, and GCC-6.4 is rebuilt after adding it with - - noreplace. Can't --depclean after that before doing -uDN @world, where GCC-6.4 is rebuilt.

Yes, I would use --exclude for gcc in your case.

--noreplace will only add it to the world file. You don't really need it in the world file, but it is ok.
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Wed Mar 28, 2018 7:34 pm    Post subject: Reply with quote

Thank you! Much appreciated. :)

Edit: Would like to add if anyone else wants to install from scratch, you have to mask app-text/mupdf-1.12.0 as it fails to build when doing -e @selected.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10278
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Mar 28, 2018 8:57 pm    Post subject: Reply with quote

Yep.
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
beandog
Developer
Developer


Joined: 04 May 2003
Posts: 2066
Location: /usa/utah

PostPosted: Thu Mar 29, 2018 2:46 am    Post subject: Re: ~amd64 install from scratch? Reply with quote

ayeyes wrote:
Hi Gentoo @world :-)

Wondering if Im doing it right.

ACCEPT_KEYWORDS="~amd64"


Man, I remember doing that once like 12 years ago. Good times. IIRC it actually worked out pretty well, and didn't have any large problems. Go for it :)
_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
ayeyes
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2017
Posts: 104

PostPosted: Thu Mar 29, 2018 7:49 pm    Post subject: Reply with quote

It's awesome to run a bleeding edge Gentoo yeah :D Everything compiles fine with GCC-7.3, and it's great to have LLVM 6. I have btrfs for easy rollback with snapshots.


btw, thanks John. :-) After -e @selected with profile 12 I did -auDN @world, and it was only three more packages, so one can just do -e @world I guess.


Last edited by ayeyes on Mon Jun 04, 2018 5:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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