View previous topic :: View next topic |
Author |
Message |
drudox l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1603261954643beed0769df.jpg)
Joined: 28 Jan 2016 Posts: 919
|
Posted: Mon Jul 03, 2023 8:57 am Post subject: i3 doesn t work after depclean |
|
|
I have modify my Code: | /etc/portage/package.use/python |
in this way :
Code: |
*/* PYTHON_TARGETS: -* python3_11
*/* PYTHON_SINGLE_TARGET: -* python3_11
| ...
as suggest in news read ... then I have run emerge --depclean asreported in https://www.gentoo.org/support/news-items/2023-04-02-python3-11.html ... after that i3 doesn't start with error :
Code: | i3: error while loading shared libraries: libasan.so.5: cannot open shared object file: No such file or directory
|
and nvidia-driver during upgrade fail with
Code: | >> Emerging (1 of 1) x11-drivers/nvidia-drivers-535.54.03::gentoo
* NVIDIA-Linux-x86_64-535.54.03.run BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-installer-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-modprobe-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-persistenced-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-settings-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-xconfig-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* NVIDIA-kernel-module-source-535.54.03.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
* Unable to calculate Linux Kernel version for build, attempting to use running version
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
* ERROR: x11-drivers/nvidia-drivers-535.54.03::gentoo failed (setup phase):
* Kernel not configured; no .config found in
*
* Call stack:
* ebuild.sh, line 136: Called pkg_setup
* nvidia-drivers-535.54.03.ebuild, line 121: Called linux-mod-r1_pkg_setup
* linux-mod-r1.eclass, line 311: Called _modules_prepare_kernel
* linux-mod-r1.eclass, line 633: Called require_configured_kernel
* linux-info.eclass, line 366: Called die
* The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-535.54.03::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-535.54.03::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/die.env'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/empty'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/work'
>>> Failed to emerge x11-drivers/nvidia-drivers-535.54.03, Log file:
>>> '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/build.log'
* Messages for package x11-drivers/nvidia-drivers-535.54.03:
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
* Unable to calculate Linux Kernel version for build, attempting to use running version
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
* ERROR: x11-drivers/nvidia-drivers-535.54.03::gentoo failed (setup phase):
* Kernel not configured; no .config found in
*
* Call stack:
* ebuild.sh, line 136: Called pkg_setup
* nvidia-drivers-535.54.03.ebuild, line 121: Called linux-mod-r1_pkg_setup
* linux-mod-r1.eclass, line 311: Called _modules_prepare_kernel
* linux-mod-r1.eclass, line 633: Called require_configured_kernel
* linux-info.eclass, line 366: Called die
* The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-535.54.03::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-535.54.03::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/die.env'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/empty'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/work'
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drudox l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1603261954643beed0769df.jpg)
Joined: 28 Jan 2016 Posts: 919
|
Posted: Mon Jul 03, 2023 8:58 am Post subject: |
|
|
I have kernel : 5.19.8-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 25 18:04:56 CEST 2023 x86_64 Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz GenuineIntel GNU/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31474 Location: here
|
Posted: Mon Jul 03, 2023 9:44 am Post subject: |
|
|
The libasan.so.5 is provided by gcc-9.xx, which gcc is in use on your system?
With depclean you removed also kernel-5.19.8 sources. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drudox l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1603261954643beed0769df.jpg)
Joined: 28 Jan 2016 Posts: 919
|
Posted: Tue Jul 04, 2023 12:48 pm Post subject: |
|
|
Code: | eselect gcc list
[1] x86_64-pc-linux-gnu-13 *
|
how can I recover kerner source ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23098
|
Posted: Tue Jul 04, 2023 3:19 pm Post subject: |
|
|
The 5.19.x series is no longer present in Portage. Do you specifically need this unsupported kernel version, or do you just want to install kernel sources that will work with your system? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drudox l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1603261954643beed0769df.jpg)
Joined: 28 Jan 2016 Posts: 919
|
Posted: Tue Jul 04, 2023 10:09 pm Post subject: |
|
|
just want to install kernel sources that will work with your system |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23098
|
Posted: Tue Jul 04, 2023 11:04 pm Post subject: |
|
|
In that case, emerging the latest stable sources is likely sufficient. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drudox l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1603261954643beed0769df.jpg)
Joined: 28 Jan 2016 Posts: 919
|
Posted: Wed Jul 05, 2023 7:57 pm Post subject: |
|
|
but than I should compile ? or just change from list? since last time I had some problem with kernel 6.* |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drudox l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1603261954643beed0769df.jpg)
Joined: 28 Jan 2016 Posts: 919
|
Posted: Sat Jul 08, 2023 2:13 pm Post subject: |
|
|
Code: | >>> Completed (1 of 1) sys-kernel/gentoo-sources-6.4.0::gentoo
* Messages for package sys-kernel/gentoo-sources-6.4.0:
* Note: Even though you have successfully unmerged
* your kernel package, directories in kernel source location:
* /usr/src/linux-6.4.0-gentoo
* with modified files will remain behind. By design, package managers
* will not remove these modified files and the directories they reside in.
* For more detailed kernel removal instructions, please see:
* https://wiki.gentoo.org/wiki/Kernel/Removal
* Messages for package sys-kernel/gentoo-sources-6.4.0:
* If you are upgrading from a previous kernel, you may be interested
* in the following document:
* - General upgrade guide: https://wiki.gentoo.org/wiki/Kernel/Upgrade
* GNU info directory index is up-to-date.
!!! existing preserved libs:
>>> package: app-text/poppler-23.06.0
* - /usr/lib64/libpoppler.so.128
* - /usr/lib64/libpoppler.so.128.0.0
* used by /usr/lib64/inkscape/libinkscape_base.so (media-gfx/inkscape-1.2.2-r4)
>>> package: media-video/ffmpeg-6.0-r1
* - /usr/lib64/libavcodec.so.59
* - /usr/lib64/libavcodec.so.59.37.100
* used by /usr/bin/mencoder (media-video/mplayer-1.5_p20230215)
* used by /usr/bin/mpd (media-sound/mpd-0.23.12-r2)
* used by /usr/bin/mplayer (media-video/mplayer-1.5_p20230215)
* used by /usr/lib64/gstreamer-1.0/libgstlibav.so (media-plugins/gst-plugins-libav-1.22.3)
* used by /usr/lib64/vlc/plugins/codec/libavcodec_plugin.so (media-video/vlc-3.0.18-r3)
* used by /usr/lib64/vlc/plugins/demux/libavformat_plugin.so (media-video/vlc-3.0.18-r3)
* used by /usr/lib64/vlc/plugins/packetizer/libpacketizer_avparser_plugin.so (media-video/vlc-3.0.18-r3)
* - /usr/lib64/libavfilter.so.8
* - /usr/lib64/libavfilter.so.8.44.100
* used by /usr/bin/mpd (media-sound/mpd-0.23.12-r2)
* used by /usr/lib64/gstreamer-1.0/libgstlibav.so (media-plugins/gst-plugins-libav-1.22.3)
* - /usr/lib64/libavformat.so.59
* - /usr/lib64/libavformat.so.59.27.100
* used by /usr/bin/mencoder (media-video/mplayer-1.5_p20230215)
* used by /usr/bin/mpd (media-sound/mpd-0.23.12-r2)
* used by /usr/bin/mplayer (media-video/mplayer-1.5_p20230215)
* used by /usr/lib64/gstreamer-1.0/libgstlibav.so (media-plugins/gst-plugins-libav-1.22.3)
* used by /usr/lib64/vlc/plugins/access/libavio_plugin.so (media-video/vlc-3.0.18-r3)
* used by /usr/lib64/vlc/plugins/demux/libavformat_plugin.so (media-video/vlc-3.0.18-r3)
* - /usr/lib64/libavutil.so.57
* - /usr/lib64/libavutil.so.57.28.100
* used by /usr/bin/mencoder (media-video/mplayer-1.5_p20230215)
* used by /usr/bin/mpd (media-sound/mpd-0.23.12-r2)
* used by /usr/bin/mplayer (media-video/mplayer-1.5_p20230215)
* used by /usr/lib64/gstreamer-1.0/libgstlibav.so (media-plugins/gst-plugins-libav-1.22.3)
* used by /usr/lib64/vlc/plugins/access/libavio_plugin.so (media-video/vlc-3.0.18-r3)
* used by /usr/lib64/vlc/plugins/codec/libavcodec_plugin.so (media-video/vlc-3.0.18-r3)
* used by /usr/lib64/vlc/plugins/demux/libavformat_plugin.so (media-video/vlc-3.0.18-r3)
* used by /usr/lib64/vlc/plugins/packetizer/libpacketizer_avparser_plugin.so (media-video/vlc-3.0.18-r3)
* - /usr/lib64/libpostproc.so.56
* - /usr/lib64/libpostproc.so.56.6.100
* used by /usr/bin/mencoder (media-video/mplayer-1.5_p20230215)
* used by /usr/bin/mplayer (media-video/mplayer-1.5_p20230215)
* used by /usr/lib64/vlc/plugins/video_filter/libpostproc_plugin.so (media-video/vlc-3.0.18-r3)
* - /usr/lib64/libswscale.so.6
* - /usr/lib64/libswscale.so.6.7.100
* used by /usr/bin/mencoder (media-video/mplayer-1.5_p20230215)
* used by /usr/bin/mplayer (media-video/mplayer-1.5_p20230215)
* used by /usr/lib64/vlc/plugins/video_chroma/libswscale_plugin.so (media-video/vlc-3.0.18-r3)
Use emerge @preserved-rebuild to rebuild packages using these libraries
ghirtoo /home/phobos # emerge x11-drivers/nvidia-drivers
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 32.70 s.
[ebuild U ] x11-drivers/nvidia-drivers-535.54.03:0/535::gentoo [530.41.03-r2:0/530::gentoo] USE="X modules static-libs strip tools -dist-kernel -kernel-open -modules-sign -persistenced -wayland" ABI_X86="(64) -32" 0 KiB
Total: 1 package (1 upgrade), Size of downloads: 0 KiB
!!! The following installed packages are masked:
- app-portage/layman-2.4.3::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# David Seifert <soap@gentoo.org> (2023-05-19)
# Abandoned, replaced by 'eselect repository' (app-eselect/eselect-repository),
# tons of open bugs. Removal on 2023-08-17. Bug #761199.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-535.54.03::gentoo
* NVIDIA-Linux-x86_64-535.54.03.run BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-installer-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-modprobe-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-persistenced-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-settings-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* nvidia-xconfig-535.54.03.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* NVIDIA-kernel-module-source-535.54.03.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
* Unable to calculate Linux Kernel version for build, attempting to use running version
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
* ERROR: x11-drivers/nvidia-drivers-535.54.03::gentoo failed (setup phase):
* Kernel not configured; no .config found in
*
* Call stack:
* ebuild.sh, line 136: Called pkg_setup
* nvidia-drivers-535.54.03.ebuild, line 121: Called linux-mod-r1_pkg_setup
* linux-mod-r1.eclass, line 311: Called _modules_prepare_kernel
* linux-mod-r1.eclass, line 633: Called require_configured_kernel
* linux-info.eclass, line 366: Called die
* The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-535.54.03::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-535.54.03::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/die.env'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/empty'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/work'
>>> Failed to emerge x11-drivers/nvidia-drivers-535.54.03, Log file:
>>> '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/build.log'
* Messages for package x11-drivers/nvidia-drivers-535.54.03:
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
* Unable to calculate Linux Kernel version for build, attempting to use running version
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
* ERROR: x11-drivers/nvidia-drivers-535.54.03::gentoo failed (setup phase):
* Kernel not configured; no .config found in
*
* Call stack:
* ebuild.sh, line 136: Called pkg_setup
* nvidia-drivers-535.54.03.ebuild, line 121: Called linux-mod-r1_pkg_setup
* linux-mod-r1.eclass, line 311: Called _modules_prepare_kernel
* linux-mod-r1.eclass, line 633: Called require_configured_kernel
* linux-info.eclass, line 366: Called die
* The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-535.54.03::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-535.54.03::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/temp/die.env'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/empty'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-535.54.03/work'
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23098
|
Posted: Sat Jul 08, 2023 2:33 pm Post subject: |
|
|
According to the output you posted, nvidia-drivers requires you to configure the kernel before you can emerge nvidia-drivers. Your output seems to indicate you merged the kernel sources, then immediately tried to emerge nvidia-drivers before configuring the kernel. Per your output, you need to configure the kernel first. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drudox l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1603261954643beed0769df.jpg)
Joined: 28 Jan 2016 Posts: 919
|
Posted: Sat Jul 08, 2023 3:12 pm Post subject: |
|
|
ok I have compiled the 6.4 kernel and the things going fine ...
when I start nvidia-driver compilation
I read at the beginning red star reporting :
Code: |
* CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection
* of drivers (no custom config), and for wayland / nvidia-drm.modeset=1.
* Cannot be directly selected in the kernel's menuconfig, and may need
* selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or
* DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in.
* CONFIG_X86_KERNEL_IBT: is set, this should be fine and is supposed
* to be fixed but, *if* modules fail to load, then try to either unset
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drudox l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1603261954643beed0769df.jpg)
Joined: 28 Jan 2016 Posts: 919
|
Posted: Sat Jul 08, 2023 3:13 pm Post subject: |
|
|
and AT THE END :
Code: | * Messages for package x11-drivers/nvidia-drivers-535.54.03:
* CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection
* of drivers (no custom config), and for wayland / nvidia-drm.modeset=1.
* Cannot be directly selected in the kernel's menuconfig, and may need
* selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or
* DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in.
* CONFIG_X86_KERNEL_IBT: is set, this should be fine and is supposed
* to be fixed but, *if* modules fail to load, then try to either unset
* or pass ibt=off to the kernel (ignore this message otherwise)
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|