Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]New stage 3 chroot,emerge fails package installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
volt150
n00b
n00b


Joined: 15 May 2018
Posts: 11

PostPosted: Thu Oct 04, 2018 9:24 pm    Post subject: [SOLVED]New stage 3 chroot,emerge fails package installation Reply with quote

Hello,

As title suggests emerge fails installing certain packages.

Code:
 * ERROR: dev-libs/openssl-1.0.2p::gentoo failed (configure phase):
 *   (no error message)

 * ERROR: dev-libs/elfutils-0.170-r1::gentoo failed (compile phase):
 *   emake failed

These are just examples I know at least one other package that failed.

However not all packages fail...
Code:

>>> Installing (1 of 7) app-portage/cpuid2cpuflags-5::gentoo
 * QA Notice: mime-info files were found installed but mime-info
 * cache has not been updated:
 *   /usr/share/mime/packages/freedesktop.org.xml
 * Please make sure to call xdg_mimeinfo_database_update()
 * in pkg_postinst() and pkg_postrm() phases of appropriate pkgs.

>>> Recording app-portage/cpuid2cpuflags in "world" favorites file...

I have confirmed that /dev /proc and /sys have been mounted to new chroot environment.
What else should I look out for?

Additional Information:
Installing from Gentoo LiveCD

[Moderator edit: added [code] tags to preserve output layout. -Hu]


Last edited by volt150 on Sun Oct 07, 2018 2:33 am; edited 2 times in total
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Thu Oct 04, 2018 9:25 pm    Post subject: Reply with quote

What are the CFLAGS you use in /etc/portage/make.conf ?
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
volt150
n00b
n00b


Joined: 15 May 2018
Posts: 11

PostPosted: Thu Oct 04, 2018 9:27 pm    Post subject: Reply with quote

Muso wrote:
What are the CFLAGS you use in /etc/portage/make.conf ?


CFLAGS="-O2 -pipe"
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Thu Oct 04, 2018 9:33 pm    Post subject: Reply with quote

volt150 wrote:
Muso wrote:
What are the CFLAGS you use in /etc/portage/make.conf ?


CFLAGS="-O2 -pipe"


What profile did you select? Which stage tarball? What USE flags did you place into make.conf? Which install iso are you using?

etc etc

The more information you provide, the easier it will be to diagnose the problem.
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Thu Oct 04, 2018 9:36 pm    Post subject: Re: Fresh stage 3 chroot, emerge fails package installation Reply with quote

volt150 wrote:
Installing from Gentoo LiveCD


The one from 2016?

You should grab a minimal installation CD. The liveDVD is very out of date.
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
volt150
n00b
n00b


Joined: 15 May 2018
Posts: 11

PostPosted: Thu Oct 04, 2018 9:44 pm    Post subject: Reply with quote

Muso wrote:
volt150 wrote:
Muso wrote:
What are the CFLAGS you use in /etc/portage/make.conf ?


CFLAGS="-O2 -pipe"


What profile did you select? Which stage tarball? What USE flags did you place into make.conf? Which install iso are you using?

etc etc

The more information you provide, the easier it will be to diagnose the problem.


My apologies I am not sure what is relevant.

Profile selected? = [12] default/linux/amd64/17.0 (stable) *
Which stage tarball? = Stage3
What USE flags did you place into make.conf? = I did not add any USE flags to make.conf, here is my entire make.conf

Code:


# These settings were set by the catalyst build script that automati$
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a m$
# detailed example.
CFLAGS="-O2 -pipe"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
MAKEOPTS="-j12"
GENTOO_MIRRORS="http://gentoo.cs.utah.edu/"


Which install iso are you using? = I am using the liveCD

The install was done using a script I made which one to one practically copies the handbook, I have installed multiple installations successfully using this script, I have reviewed handbook to see if anything has changed and have not found any relevant changes.

Hardware on this system:
Code:

  *-core
       description: Motherboard
       product: Z370 Taichi
       vendor: ASRock
       physical id: 0
    *-cpu
          description: CPU
          product: Core i7 (To Be Filled By O.E.M.)
          vendor: Intel Corp.
          physical id: 19
          bus info: cpu@0
          version: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Back to top
View user's profile Send private message
volt150
n00b
n00b


Joined: 15 May 2018
Posts: 11

PostPosted: Thu Oct 04, 2018 9:45 pm    Post subject: Re: Fresh stage 3 chroot, emerge fails package installation Reply with quote

Muso wrote:
volt150 wrote:
Installing from Gentoo LiveCD


The one from 2016?

You should grab a minimal installation CD. The liveDVD is very out of date.


Ok Ill try the minimal installation CD.
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Thu Oct 04, 2018 9:51 pm    Post subject: Reply with quote

For the CFLAGS :

Code:
CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"


Should be fine for that CPU.

I think the recommended MAKEOPTS should be -j7 as that cpu has 6 cores.
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
volt150
n00b
n00b


Joined: 15 May 2018
Posts: 11

PostPosted: Fri Oct 05, 2018 1:51 am    Post subject: Re: Fresh stage 3 chroot, emerge fails package installation Reply with quote

Muso wrote:
volt150 wrote:
Installing from Gentoo LiveCD


The one from 2016?

You should grab a minimal installation CD. The liveDVD is very out of date.


You where right Muso, emerge installs packages successfully with the minimal installation iso.

Side question: -j is supposed to be thread count no?
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Fri Oct 05, 2018 2:02 am    Post subject: Re: Fresh stage 3 chroot, emerge fails package installation Reply with quote

volt150 wrote:
Muso wrote:
volt150 wrote:
Installing from Gentoo LiveCD


The one from 2016?

You should grab a minimal installation CD. The liveDVD is very out of date.


You where right Muso, emerge installs packages successfully with the minimal installation iso.

Side question: -j is supposed to be thread count no?


Ah, Logical processors count. So -j12 is ideal for that CPU. Hopefully you have plenty of ram.

https://wiki.gentoo.org/wiki/MAKEOPTS

From the above article :
Quote:
Another item to consider is RAM usage. Recent gcc versions have been known to take 1 GB to 1.5 GB of RAM per job. If the system has the 8 logical CPUs from the previous example, but only 4 GB RAM, the MAKEOPTS value should be lowered to -j3. This is so that the system has RAM to run the basics as well as compile without hitting swap very often slowing things down.

_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
volt150
n00b
n00b


Joined: 15 May 2018
Posts: 11

PostPosted: Fri Oct 05, 2018 2:50 am    Post subject: Reply with quote

oh I didnt know it had such RAM requirements.

I have 16GB on this machine, I will keep a close eye during builds, if I see it use swap then its time to throw in another 16GB stick!
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Fri Oct 05, 2018 2:59 am    Post subject: Reply with quote

volt150 wrote:
oh I didnt know it had such RAM requirements.

I have 16GB on this machine, I will keep a close eye during builds, if I see it use swap then its time to throw in another 16GB stick!


++

All good! -j13 would be ideal if ram isn't an issue. -j = 1 per logical processor +1.

Enjoy the fun (and frustration) in building this new system. 8)
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
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
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