Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel configuration on AMD FX 8350 box, cpu utilisation etc
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Sat Jan 14, 2017 3:56 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

PPS

I forgot to add that the sound doesn't work properly on this installation either.

I think I likely need to change some kernel options to get it to work.

I am getting closer to a completely sorted installation here.

Cheers

MF
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2951
Location: Illinois, USA

PostPosted: Sat Jan 14, 2017 4:27 pm    Post subject: Re: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

mikefot wrote:
I have added some extra use flags to make the restart and shutdown buttons work in xfce. Something is not quite right because running shutdown stops the jobs etc but does not actually shut the power off itself - suggestions welcome on that one.
Can't comment on that as I don't use xfce, just mate and lumina.
mikefot wrote:
Also porthole is installed at user privilege level in xfce - how do you upgrade it to root in the user environment without just opening a terminal and using su to become root and then typing /usr/bin/porthole retn etc ; ie have it as a menu option?
I have the same problem in mate. I tried adding sudo to the menu command line but things still won't run due to privilege. I hope someone else can enlighten both of us!

I'm glad that your emerge problems have been solved.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Mon Jan 16, 2017 4:27 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear Tony,

I managed to get porthole to run with root privileges from the xfce menu.

At first I tried using sudo.

I installed the sudo packages and then edited the sudoers file in /etc and set it to allow ordinary users to have sudo privilege etc.

If you do e.g. sudo mikef bong /usr/bin/porthole etc you will get an error saying that you need to modify the sudoers file before running this command.

Eventually I got it to work - but it did not allow the menu itself to fire up and run porthole with root privileges.

Then I right clicked on the application launcher blank icon at the bottom middle section of the display screen and found the porthole icon and clicked on it and tried to type gksu in front of the word porthole.

This did not work until I installed the gksu package in gentoo.

Once I did that it accepted it and then when I clicked on the porthole icon in the application menu and it fired up and said that I could not run porthole without su privileges and requested the su password in a menu box window and then porthole started to run.......

I don't know how to set autounmask write in porthole so I stopped using it and went back to emerge again. I need to read the porthole manual a bit more.

How this would work in lumina or mate I am not sure.

Regards

MF
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3231
Location: Gainesville, Florida

PostPosted: Mon Jan 16, 2017 4:44 pm    Post subject: Reply with quote

Re the sound problems, are you using on board, or do you have an actual sound card? What exactly are the problems?

I assume you're using the Asus board you mentioned before, with the on board Realtek ALC892 chip, correct?

You would need the correct kernel module enabled, and probably you should run alsamixer in a terminal as a user, and check out the config settings. Sometimes the sound is just muted by default, and that's the only problem. You also might need to adjust the volume settings for specific channels, etc.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.29-r2, gcc-9.1.0 kernel-5.0.14-gentoo USE=experimental
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Mon Jan 16, 2017 4:54 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Many thanks for your posting...

The sound is now working and so are the shutdown and restart buttons,

Cheers

Michael Fothergill
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Mon Jan 23, 2017 6:27 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear Folks,

I installed fbsplash - some kernel changes were needed.

My monitor resolution is 2560 x 1080. It seems that the .cfg files in the themes directory all seem to be for lower resolutions than this.

Is there a way to create a 2560 x 1080 .cfg file and couple a 21:9 image file to it?

I also tried emerging the terminology terminal.

This did not succeed:

Code:
bong mikef # wgetpaste -c 'emerge --info '=dev-libs/efl-1.17.0::gentoo''
Your paste can be seen here:
https://paste.pound-python.org/show/de4t46iqjyRKhwKYTO6S/
Code:
bong mikef # wgetpaste -c 'emerge -pqv '=dev-libs/efl-1.17.0::gentoo''
Your paste can be seen here:
https://paste.pound-python.org/show/wOHDCri2D1dQ6Du8EWlN/

Code:
bong mikef # wgetpaste /var/tmp/portage/dev-libs/efl-1.17.0/temp/build.log
Your paste can be seen here:
https://paste.pound-python.org/show/X6FrGI1w9moROhThOAIQ/


My make.conf file is:

Code:
bong portage # more make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="X alsa alsa-plugin aqua asyncns bindist bmp branding bzip2 caps consolekit css
     dbus -doc eet fontconfig fbcondecor glamor egl gles glib gnutls gpl gpm gtk gtk3 hardcoded-tables
     hardened ico iconv ipv6 jpeg ldap libressl lock mmap network nls orc pam pcre pie
     png polkit postproc ppm psd pulseaudio session sound ssl startup-notification static-libs
     suid tcpd threads thunar truetype udev udisks upower xcb xv -ibus -jpeg2k -physics -scim -sdl -systemd -tga -tiff -tslib -v4l -valgrind -debug -drm -fbcon -fribidi -gif -harfbuzz -oldlua -wayland webrtc-aec
     zlib -gnome -gstreamer -kde -minimal -oss -qt4 -static -tdb -clang -debug -dot -doxysearch latex -qt5 -xim -xine -xpm"
MAKEOPTS="-j5"
CPU_FLAGS_X86="mmx sse sse2 3dnow 3dnowext aes avx avx2 fma3 fma4 mmx mmxext sse3 sse4_1 sse4_2 ssse3 xop"
FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher"
ABI_X86="64"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
VIDEO_CARDS="amdgpu radeonsi radeon"
## (For mouse, keyboard, and Synaptics touchpad support)
INPUT_DEVICES="evdev synaptics"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/"

Suggestions appreciated.

Regards

Michael Fothergill
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Mon Jan 23, 2017 6:34 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

PS

I forgot to add the following:

Code:
bong portage # wgetpaste /var/tmp/portage/dev-libs/efl-1.17.0/work/efl-1.17.0/config.log
Your paste can be seen here
: https://paste.pound-python.org/show/ylbuTT4HhJ2fWZ6wA565/

Thanks

MF
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Wed Jan 25, 2017 11:42 am    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear Folks

I have fixed the problem with terminology.

I realised that there is a permanent bug in the opengl / gles option in terminology so I switched to using wayland (which means that opengl has to be removed).

This still crashed but there is a fix -see here:

[url] https://forums.gentoo.org/viewtopic-t-1042476-start-0.html [/url]
I ran
Code:
env -i emerge --oneshot =dev-libs/efl-1.17.0
 
env -i emerge --oneshot =media-libs/elementary-1.17.0

env -i emerge --oneshot =x11-terms/terminology-0.7.0


and it worked.

Cheers

MF
Back to top
View user's profile Send private message
V10lator
Apprentice
Apprentice


Joined: 11 Jul 2004
Posts: 199

PostPosted: Thu Feb 02, 2017 11:34 am    Post subject: Re: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

mikefot wrote:
Something is not quite right because running shutdown stops the jobs etc but does not actually shut the power off itself - suggestions welcome on that one.


Known problem of the Sabbertooth FX 990 R2.0 - If you wait long enough it will reboot but reset your BIOS settings: https://bugzilla.kernel.org/show_bug.cgi?id=118811 / https://bugzilla.kernel.org/show_bug.cgi?id=112811

Here's the patch I'm using on the same board:
Code:
diff -Nru linux-4.5.7-hardened-r3.old/drivers/i2c/busses/i2c-piix4.c linux-4.5.7-hardened-r3/drivers/i2c/busses/i2c-piix4.c
--- linux-4.5.7-hardened-r3.old/drivers/i2c/busses/i2c-piix4.c  2016-06-27 13:18:05.354987218 +0200
+++ linux-4.5.7-hardened-r3/drivers/i2c/busses/i2c-piix4.c      2016-06-27 13:05:19.269893243 +0200
@@ -642,8 +642,7 @@
 
        adap->owner = THIS_MODULE;
        adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD;
-       adap->algo = sb800_main ? &piix4_smbus_algorithm_sb800
-                               : &smbus_algorithm;
+       adap->algo = &smbus_algorithm;
 
        adapdata = kzalloc(sizeof(*adapdata), GFP_KERNEL);
        if (adapdata == NULL) {

You have to do a cold-start with this patched kernel (no, a simple reboot isn't enough). Also don't use this patch on other, unaffected motherboards.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2951
Location: Illinois, USA

PostPosted: Thu Feb 02, 2017 3:40 pm    Post subject: Reply with quote

Thanks, V10lator, This bug may be the problem with my old MSI board with the same hardware and problem. I'll try taking the EEPROM module out. I don't think it does anything useful anyway.

EDIT: The kernel no longer has a separate i2c eeprom config item, but a quick check with sensors-detect showed that I had no sensors on i2c anyway, so I removed i2c support from the kernel. The PC no longer hangs on halt outside the GUI. FIXED!
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Sun Feb 05, 2017 4:19 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation etc Reply with quote

Dear Tony and V10later

A great many thanks for these hints and tips and patches.

I am sure this wiill help me get round the problem in the FX 8350 case.

Meanwhile I ran into a small problem with the kaveri box installation.

I ran emaint sync and then was told to run the portage oneshot upgrade.

I did this and then when I ran emerge --ask --newuse --deep @world I discovered some dependency problems and blocked package errors.

I unmerged some packages that would have pulled in the disputed dependencies with the intent of rerunning emerge successfully.

I think I was making some progress with this until I unmerged something I should not have touched.

It was the dev-lang/python-exec package.

Removing it resulted in emerge failing to run at all and portageq to be unavailable etc.

What should I do here? I could boot up the gentoo live dvd image - I would have a version of emerge running on my box immediately - but it would be one that was optimised for the use flags etc in the make,conf of the livedvd not my local installation on the kaveri box.

I tried running the livecd image and chrootingi into the kaveri installation - it worked but again when I ran emerge it tried to run the version within the local installation not the livecd emerge package.

If it would be OK to use the livecd emerge then I would use it to recompile dev-lang/python-exec and then (I assume) restore a functional emerge in the local kaveri box installation and I could go back to fixing the blocked package again as I had been doing before......

Suggestions on how to proceed here are most welcome.

Cheers

MF
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2951
Location: Illinois, USA

PostPosted: Sun Feb 05, 2017 5:56 pm    Post subject: Reply with quote

You could download a snapshot and extract the python-exec files or you could copy the files from sysrescuecd. The latter would be quicker but maybe less likely to work. Once you have recovered the binary files, then portage should work and you should re-emerge python-exec.

From my Kaveri box:
Code:
gentoo ~ # equery  w dev-lang/python-exec
/usr/portage/dev-lang/python-exec/python-exec-2.4.4.ebuild
And
Code:
gentoo ~ # equery f dev-lang/python-exec
 * Searching for python-exec in dev-lang ...
 * Contents of dev-lang/python-exec-2.4.4:
/etc
/etc/python-exec
/etc/python-exec/python-exec.conf
/usr
/usr/bin
/usr/bin/2to3 -> ../lib/python-exec/python-exec2
/usr/bin/idle -> ../lib/python-exec/python-exec2
/usr/bin/pydoc -> ../lib/python-exec/python-exec2
/usr/bin/python -> python-exec2c
/usr/bin/python-config -> ../lib/python-exec/python-exec2
/usr/bin/python-exec2c
/usr/bin/python2 -> python-exec2c
/usr/bin/python2-config -> ../lib/python-exec/python-exec2
/usr/bin/python3 -> python-exec2c
/usr/bin/python3-config -> ../lib/python-exec/python-exec2
/usr/bin/pyvenv -> ../lib/python-exec/python-exec2
/usr/lib
/usr/lib/python-exec
/usr/lib/python-exec/python-exec2
I have omitted the docs under /usr/share because you don't need them to run.
So the real executables are /usr/bin/python-exec2c and /usr/lib/python-exec/python-exec2 , everything else is a symlink.
I would copy/extract those two files and create the symlinks manually.
The /etc/python-exec/python-exec.conf file has only one line that is not a comment. In my case, that line is
Code:
# Note: this file can be modified by calls to 'eselect python'.
python3.4
You can probably copy/extract that line also. Or try running "eselect python"

Running "equery d python-exec2" I see that a whole raft of things depend on it, so it's a pretty vital component. Before unmerging anything like that It would be a good item to save a binary package using "quickpkg".
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Sun Feb 05, 2017 9:25 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear Tony,

I followed the advice given here for fixing portage:

https://wiki.gentoo.org/wiki/Project:Portage/Fixing_broken_portage


It worked.

But then I carried on trying to fix the broken packages and ran:

Code:
emerge --unmerge app-eselect/eselect-python


in an effort to get rid of the last dependency conflict.

This was not a good idea.

It borked emerge and python.

I reran the emerge fix and then tried a python fix I found here:

https://forums.gentoo.org/viewtopic-t-1056576-start-50.html

I ran

Code:
cd /usr/src
wget http://mirrors.kernel.org/gentoo/distfiles/Python-3.6.0.tar.xz
tar -xJf Python-3.6.0.tar.xz
cd Python-3.6.0
./configure --prefix /usr
make
make install


followed by

Code:
ln -s /usr/bin/python3.6 /usr/bin/python


Now neither emerge nor python run.


I then looked to see what I could find on the install for python:

Code:
bong mikef # whereis python

gives

Code:
python: /usr/bin/python2.7-config /usr/bin/python3.6 /usr/bin/python /usr/bin/python3.6m /usr/bin/python3.6m-config /usr/bin/python2.7 /usr/bin/python3.4-config /usr/bin/python3.6-config /usr/bin/python3.4m /usr/bin/python3.4 /usr/bin/python3.4m-config /usr/lib64/python3.6 /usr/lib64/python2.7 /usr/lib64/python3.4 /usr/include/python3.6m /usr/include/python2.7 /usr/include/python3.4m /usr/share/man/man1/python3.1 /usr/share/man/man1/python.1.bz2 /usr/src/Python-3.6.0/python


and

Code:
bong mikef # which python


gives

Code:
which: no python in (/sbin:/bin:/usr/sbin:/usr/bin)


Neither equery nor python-updater nor etc-update work.

eix update works.


Running

Code:
bong mikef # whereis python

gives

Code:
python: /usr/bin/python2.7-config /usr/bin/python3.6 /usr/bin/python /usr/bin/python3.6m /usr/bin/python3.6m-config /usr/bin/python2.7 /usr/bin/python3.4-config /usr/bin/python3.6-config /usr/bin/python3.4m /usr/bin/python3.4 /usr/bin/python3.4m-config /usr/lib64/python3.6 /usr/lib64/python2.7 /usr/lib64/python3.4 /usr/include/python3.6m /usr/include/python2.7 /usr/include/python3.4m /usr/share/man/man1/python3.1 /usr/share/man/man1/python.1.bz2 /usr/src/Python-3.6.0/python


and

Code:
bong mikef # /usr/bin/python2.7


gives

Code:
Python 2.7.12 (default, Jan 23 2017, 22:08:53)
[GCC 4.9.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> credits
    Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information.
>>>


and running

Code:
bong mikef # /usr/bin/python3.6


gives

Code:
Python 3.6.0 (default, Feb  5 2017, 19:26:16)
[GCC 4.9.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> credits
    Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information.
>>>



I guess you could say that python 2.7 and 3.6 do seem to run if I enter path in directly - but they don't seem to work when they are needed by emerge etc.

The ln s assignment command didn't work properly - it said that another assignment was in place.

But as I say python didn't work when I tried to run emerge.

Running emerge gives the following:


Code:
bong mikef # emerge --depclean
bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory


Suggestions on how to proceed here are welcome.

Regards

MF
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2951
Location: Illinois, USA

PostPosted: Sun Feb 05, 2017 11:40 pm    Post subject: Reply with quote

Did you run "eselect python"? I'm afraid those instructions may have borked portage. Your best bet at this point may be to download and extract the tarball, followed by "emerge -aev world". Post any errors messages before unmerging anything else.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Mon Feb 06, 2017 1:05 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation etc Reply with quote

Dear All and Tony,

eselect python fails:

bong mikef # eselect python
!!! Error: Can't load module python
exiting


Which tarball should I be installing here?

I have already installed portage and python manually,

I downloaded the eselect-python tarball but need some guidance on what directory etc to extract it into and what the configuration procedure is......

Comments appreciated.

Regards

MF
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Tue Feb 07, 2017 6:18 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear All,

I found a web page here

http://www.funtoo.org/System_resurrection

that gave a recipe for a simultaneous broken portage and python fix:

Code:
# cd /tmp
# wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tar.xz
# tar -xJf Python-3.5.0.tar.xz
# cd Python-3.5.0
# ./configure --enable-shared --with-system-expat --with-system-ffi
# make
# cd /tmp
# wget http://distfiles.gentoo.org/distfiles/portage-2.3.1.tar.bz2
# tar xvf portage-2.3.1.tar.bz2
# rm -fr /usr/lib/portage /usr/lib*/python*/site-packages/{_emerge,portage,repoman}
# LD_LIBRARY_PATH="/tmp/Python-3.5.0" /tmp/Python-3.5.0/python /tmp/portage-2.3.1/bin/emerge -atv1 dev-lang/python sys-apps/portage



I noticed the LD path command at the end and realised I not done anything like that so far.......

So I doctored it to put the portage and python install paths in that I have created (as best I could) and then emerge (without having to actually type in emerge etc as a command at the prompt; entering the library path invoked emerge directly) ran briefly and crashed as follows:

Code:
bong bin # LD_LIBRARY_PATH="/usr/bin/python3.6" /usr/src/Python-3.6.0/python /root/portage-recover/portage-portage-2.3.3/bin/emerge -atv1 dev-lang/python sys-apps/portage

 * IMPORTANT: 16 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/portage-2.3.3::gentoo  USE="(ipc) xattr -build -doc -epydoc -native-extensions (-selinux)" LINGUAS="-ru" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5)" 0 KiB
[ebuild   R    ]  dev-lang/python-3.4.5:3.4/3.4m::gentoo  USE="gdbm hardened ipv6 ncurses readline ssl (threads) xml -build -examples (-libressl) -sqlite -tk -wininst" 0 KiB
[ebuild  N     ]   app-eselect/eselect-python-20160516::gentoo  0 KiB
[ebuild  N     ]    dev-lang/python-exec-2.4.4:2::gentoo  PYTHON_TARGETS="(jython2_7) (pypy) (pypy3) (python2_7) (python3_4) (python3_5) (python3_6)" 0 KiB

Total: 4 packages (2 new, 2 reinstalls), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 4) dev-lang/python-exec-2.4.4::gentoo
 * python-exec-2.4.4.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking python-exec-2.4.4.tar.bz2 to /var/tmp/portage/dev-lang/python-exec-2.4.4/work
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/chmod-lite: line 9: /usr/src/Python-3.6.0/python: Permission denied
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/chmod-lite: line 9: exec: /usr/src/Python-3.6.0/python: cannot execute: Permission denied
>>> Source unpacked in /var/tmp/portage/dev-lang/python-exec-2.4.4/work
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/phase-functions.sh: line 137: /usr/src/Python-3.6.0/python: Permission denied
 * ERROR: dev-lang/python-exec-2.4.4::gentoo failed (unpack phase):
 *   filter-bash-environment.py failed
 *
 * Call stack:
 *            ebuild.sh, line  767:  Called __ebuild_main 'unpack'
 *   phase-functions.sh, line 1045:  Called __filter_readonly_variables '--filter-features'
 *   phase-functions.sh, line  137:  Called die
 * The specific snippet of code:
 *      "${PORTAGE_PYTHON:-/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
 *
 * If you need support, post the output of `emerge --info '=dev-lang/python-exec-2.4.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/python-exec-2.4.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-exec-2.4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-exec-2.4.4/temp/environment'.
 * Working directory: '/var/tmp/portage/._portage_reinstall_.io4d3lml/pym'
 * S: '/var/tmp/portage/dev-lang/python-exec-2.4.4/work/python-exec-2.4.4'
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/ebuild-ipc: line 7: /usr/src/Python-3.6.0/python: Permission denied
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/ebuild-ipc: line 7: exec: /usr/src/Python-3.6.0/python: cannot execute: Permission denied
 * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.

>>> Failed to emerge dev-lang/python-exec-2.4.4, Log file:

>>>  '/var/tmp/portage/dev-lang/python-exec-2.4.4/temp/build.log'

 * Messages for package dev-lang/python-exec-2.4.4:

 * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.
 * ERROR: dev-lang/python-exec-2.4.4::gentoo failed (unpack phase):
 *   filter-bash-environment.py failed
 *
 * Call stack:
 *            ebuild.sh, line  767:  Called __ebuild_main 'unpack'
 *   phase-functions.sh, line 1045:  Called __filter_readonly_variables '--filter-features'
 *   phase-functions.sh, line  137:  Called die
 * The specific snippet of code:
 *      "${PORTAGE_PYTHON:-/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
 *
 * If you need support, post the output of `emerge --info '=dev-lang/python-exec-2.4.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/python-exec-2.4.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-exec-2.4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-exec-2.4.4/temp/environment'.
 * Working directory: '/var/tmp/portage/._portage_reinstall_.io4d3lml/pym'
 * S: '/var/tmp/portage/dev-lang/python-exec-2.4.4/work/python-exec-2.4.4'
bong bin # more /var/tmp/portage/dev-lang/python-exec-2.4.4/temp/build.log
 * Package:    dev-lang/python-exec-2.4.4
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * Upstream:   mgorny@gentoo.org https://github.com/mgorny/python-exec/issues/
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_jython2_7 python_targets_pypy python_targets_pypy3 python_targets_python2_7 python_target
s_python3_4 python_targets_python3_5 python_targets_python3_6 userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking python-exec-2.4.4.tar.bz2 to /var/tmp/portage/dev-lang/python-exec-2.4.4/work
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/chmod-lite: line 9: /usr/src/Python-3.6.0/python: Permission denied
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/chmod-lite: line 9: exec: /usr/src/Python-3.6.0/python: cannot execute: Permission denied
>>> Source unpacked in /var/tmp/portage/dev-lang/python-exec-2.4.4/work
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/phase-functions.sh: line 137: /usr/src/Python-3.6.0/python: Permission denied
 * ERROR: dev-lang/python-exec-2.4.4::gentoo failed (unpack phase):
 *   filter-bash-environment.py failed
 *
 * Call stack:
 *            ebuild.sh, line  767:  Called __ebuild_main 'unpack'
 *   phase-functions.sh, line 1045:  Called __filter_readonly_variables '--filter-features'
 *   phase-functions.sh, line  137:  Called die
 * The specific snippet of code:
 *      "${PORTAGE_PYTHON:-/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
 *
 * If you need support, post the output of `emerge --info '=dev-lang/python-exec-2.4.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/python-exec-2.4.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-exec-2.4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-exec-2.4.4/temp/environment'.
 * Working directory: '/var/tmp/portage/._portage_reinstall_.io4d3lml/pym'
 * S: '/var/tmp/portage/dev-lang/python-exec-2.4.4/work/python-exec-2.4.4'
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/ebuild-ipc: line 7: /usr/src/Python-3.6.0/python: Permission denied
/var/tmp/portage/._portage_reinstall_.io4d3lml/bin/ebuild-ipc: line 7: exec: /usr/src/Python-3.6.0/python: cannot execute: Permission denied
 * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.


I have pasted the output of the build.log:

Code:
bong bin # wgetpaste /var/tmp/portage/dev-lang/python-exec-2.4.4/temp/build.log
Your paste can be seen here:
https://paste.pound-python.org/show/hzMAkBAmvG5G1NXk4dmV/
Why is there a permission problem here?

Suggestions welcome

Cheers

MF

PS

I tried posting the environment file but it was empty:

Code:
bong bin # wgetpaste /var/tmp/portage/dev-lang/python-exec-2.4.4/temp/environment
No input read. Nothing to paste. Aborting.
bong bin # ls -l /var/tmp/portage/dev-lang/python-exec-2.4.4/temp/environment
-rw-rw-r-- 1 portage portage 0 Feb  7 18:01 /var/tmp/portage/dev-lang/python-exec-2.4.4/temp/environment

NB

I cannot run the emerge info stuff because emerge dies permanently after the above single run and can only be run again by reentering the LD path entry again and then would run only once again identically as above and then conk irreversibly........

Pesky situation at present....
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Tue Feb 07, 2017 10:25 pm    Post subject: kernel configuration on AMD FX 8350 box, cpu utilisation Reply with quote

Dear All,

Another odd thing Ihave noticed is that neither .etc-update nor env-update work.

env-update gives command not found.

But /usr/sbin is in the path......

However if you list the /usr/sbin directory then there is a pointer to python exec2 stuck to the right of env-update and also etc-update....

see here

https://paste.debian.net/913282
Comments appreciated

Cheers

MF
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2951
Location: Illinois, USA

PostPosted: Wed Feb 08, 2017 1:15 pm    Post subject: Reply with quote

You've really screwed your system by un-emerging critical system components.

Download a stage3 from here http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20170202.tar.bz2
Put it in the root directory .i.e. "/ "
Extract the contents.
Now you should have a working system.

Download a portage snapshot from here http://distfiles.gentoo.org/releases/snapshots/current/portage-latest.tar.bz2
Put it in /usr
Extract the contents.
Run "emerge -aev system --keeping-going"
Run "emerge -aev world --keep-going"

This is essentially re-installing without all the messy disk configuration, user configuration, etc.

If there are any blockers DON'T UNMERGE ANYTHING!

Post the problem here. In time you will learn to solve these problems by yourself, but for now, post your troubles on the forum. That's why we are here - to help you and teach you how to fix it yourself. You will see me and other people with ten years experience asking for help. Better than borking your system.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Thu Feb 09, 2017 10:29 pm    Post subject: Reply with quote

Dear All and Tony,

I installed the stage3 tar file.

I found that emerge sprang into life and ran without the blocked package problems.

I needed to
Code:
run rc-update add root
amongst other things to avoid a read only error on writing to the disk.

I have been checking the fstab file - I think it is OK.

The user account logs in now but if you type startx I get timed out on the xauthority check.
The root account works and xfce runs on it.

After running your emerge keep-going commands I then did
Code:
emerge ask newuse deep with bdeps world
and it ran OK.

The weird thing is that
Code:
emerge depclean
wants to remove a huge number of packages - something is not right there.

I am using the make.conf file I had before the bork occurred.

Suggestions on how to proceed appreciated.

Cheers

MF
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1694

PostPosted: Thu Feb 09, 2017 11:08 pm    Post subject: Reply with quote

a large list from depclean is not uncommon if you haven't ran the command for a while; the main thing is what all is it wanting to remove? The big items is going to be like packages that you DO want (you shouldn't worry about the dependencies of the packages, as portage will keep them as necessary. Do note, 2 packages you need to really watch when depcleaning is gentoo-sources (or which ever for your kernel) and gcc. By default, portage is going want to only keep the newest version that satisfy all applicable dependencies; so will remove your running kernel's sources, or maybe even your selected compiler version for the newest version installed.

You can also run emerge --noreplace (or -n) to add the package to your world file to keep.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2951
Location: Illinois, USA

PostPosted: Fri Feb 10, 2017 12:07 am    Post subject: Reply with quote

Mike, post a pastebin link for the results of "emerge -p --depclean". The p is for "pretend". The command will output what it would remove without removing anything.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Fri Feb 10, 2017 10:52 pm    Post subject: Reply with quote

Dear All and Tony,

It's too late to run
Code:
emerge -p depclean
....

I already did it and 506 packages were removed...

I managed to rebuild the installation but found I needed to
Code:
run rc-update add root sysinit
to cure an error which made the disk read only......

At first I thought it was a problem with the fstab file.

The bulimic cycling has messed up Xorg in some way - I have reinstalled it but it doesn't start up properly.

I am not sure why.

I think it is something to do with start up routines etc that is wrong here not Xorg server itself.

I have unmerged something in the mega-depclean that has lobotomised startx etc.

Regards

MF
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2951
Location: Illinois, USA

PostPosted: Sat Feb 11, 2017 12:23 am    Post subject: Reply with quote

***Giant Sigh***
Mike, post a pastebin of /var/lib/portage/world. Assuming it still exists.

You have been doing a self-lobotomy on your system by stirring with a spoon.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Sat Feb 11, 2017 8:00 am    Post subject: Reply with quote

Dear Tony,

I have posted the output of
Code:
/var/lib/portage/world
here:

https://paste.debian.net/913798/

I think the world file was deleted and then reinstalled when I extracted the stage3 tarball and resuscitated emerge.

That is why it has so few packages listed in it- they are the ones I reinstalled in order to repair the installation.

From respository to suppository and back again....

If you had been able to plug the world file gap earlier I would have been OK - it would have been like taking some imodium AD after eating too much beer and pizza etc.

What extra packages do I need to install to make my system work normally?

Many thanks.

Regards

MF
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 436

PostPosted: Sat Feb 11, 2017 11:05 am    Post subject: Reply with quote

Dear All and Tony,

I have posted the output of Xorg log:

https://paste.debian.net/913808/

and

dmesg

https://paste.debian.net/913810/

and other output that might be helpful here:

Code:
(chroot) mikef-PC log # wgetpaste emerge.log
Your paste can be seen here:
https://paste.pound-python.org/show/rKzMdI9QI8v7puTvRFcr/
Code:
(chroot) mikef-PC log # wgetpaste daemon.log
Your paste can be seen here:
https://paste.pound-python.org/show/r25iqMzRi1nzZTd3AhC5/
Code:
(chroot) mikef-PC log # wgetpaste syslog
Your paste can be seen here:
https://paste.pound-python.org/show/q3Ao72Aa7PYcwpdJkyJi/
Code:
(chroot) mikef-PC log # wgetpaste kern.log

Code:
Your paste can be seen here:
https://paste.pound-python.org/show/fQQuR9AIP39nKSW36fAx/
Code:
(chroot) mikef-PC log #



The emerge.log output starts before the blocked package problem occurred and continues through the whole episode - I think this could be useful.

Suggestions on how to proceed are welcome here:

Regards

MF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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