View previous topic :: View next topic |
Author |
Message |
cien n00b
Joined: 05 Dec 2024 Posts: 14
|
Posted: Sat Jan 11, 2025 11:58 am Post subject: Is my computer suitable for gentoo? |
|
|
Hi, I just installed gentoo on a spare old computer. I have been paying attention to gentoo for a long time, and now I have the conditions to install gentoo on a physical machine. But my computer is too old. When I installed the following software, the software package net-libs/webkit-gtk took a long time to compile. It took one night and half a day and it was not compiled yet. This makes me a little confused whether my computer is suitable for installing and using gentoo. Can anyone give me some advice? Thanks a lot.
Code: |
-/oyddmdhs+:. cien@gentoo
-odNMMMMMMMMNNmhy+-` -----------
-yNMMMMMMMMMMMNNNmmdhy+- OS: Gentoo Linux x86_64
`omMMMMMMMMMMMMNmdmmmmddhhy/` Host: HP Pro 3380 MT
omMMMMMMMMMMMNhhyyyohmdddhhhdo` Kernel: 6.6.67-gentoo-dist
.ydMMMMMMMMMMdhs++so/smdddhhhhdm+` Uptime: 1 min
oyhdmNMMMMMMMNdyooydmddddhhhhyhNd. Packages: 722 (emerge)
:oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh Shell: bash 5.2.37
.:+sydNMMMMMNNNmmmdddhhhhhhmMmy Resolution: 1680x1050
/mMMMMMMNNNmmmdddhhhhhmMNhs: Terminal: /dev/pts/1
`oNMMMMMMMNNNmmmddddhhdmMNhs+` CPU: Intel Pentium G630 (2) @ 2.700GHz
`sNMMMMMMMMNNNmmmdddddmNMmhs/. GPU: Intel 2nd Generation Core Processor Family
/NMMMMMMMMNNNNmmmdddmNMNdso:` Memory: 183MiB / 3789MiB
+MMMMMMMNNNNNmmmmdmNMNdso/-
yMMNNNNNNNmmmmmNNMmhs+/-`
/hMMNNNNNNNNMNdhs++/-`
`/ohdmmddhys+++/:.`
`-//////:--. |
And my hard disk is HDD.
Code: | cien@gentoo ~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 1G 0 part /efi
├─sda2 8:2 0 8G 0 part [SWAP]
└─sda3 8:3 0 289.1G 0 part / |
I tried to install clash-verge-bin. After taking a long time without completing the installation, I tried using the binary package. But I still have to compile net-libs/webkit-gtk.
Code: |
cien@gentoo ~ $ sudo emerge -av clash-verge-bin
Password:
* IMPORTANT: 22 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
* IMPORTANT: 2 config files in '/etc/portage' need updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
Local copy of remote index is up-to-date and will be used.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 26.77 s (backtrack: 0/20).
[binary N ] dev-libs/libdbusmenu-16.04.0-r2-4::gentoo USE="gtk gtk3 introspection -debug -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[binary N ] dev-libs/libayatana-appindicator-0.5.93-1::gentoo USE="-test" 0 KiB
[ebuild N ] net-libs/webkit-gtk-2.46.5-r410:4.1/0::gentoo USE="X gstreamer introspection jumbo-build lcms pdf (seccomp) spell systemd (-aqua) -avif -examples -gamepad -jpegxl -keyring -wayland" 0 KiB
[ebuild N #] net-proxy/clash-verge-bin-2.0.2::gentoo-zh 0 KiB
Total: 4 packages (4 new, 2 binaries), Size of downloads: 0 KiB
!!! The following binary packages have been ignored due to non matching USE:
=net-libs/webkit-gtk-2.46.5-r410 keyring -systemd wayland
=net-libs/webkit-gtk-2.46.5-r410 keyring
=net-libs/webkit-gtk-2.46.5-r410 keyring wayland
=net-libs/webkit-gtk-2.46.5-r410 wayland
NOTE: The --binpkg-respect-use=n option will prevent emerge
from ignoring these binary packages if possible.
Using --binpkg-respect-use=y will silence this warning.
Would you like to merge these packages? [Yes/No]
|
Anyway, I still think gentoo is a very good operating system.
I want to install clash-verge-bin, is there any other convenient way to choose? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54692 Location: 56N 3W
|
Posted: Sat Jan 11, 2025 12:40 pm Post subject: |
|
|
cien,
That system is suitable for Gentoo, just a little slow.
With only 4G RAM, you may want to restrict MAKEOPTS for big packages, as building on fewer cores will be faster than running out of real RAM and swapping.
Most of the content of make.conf can be set on a per package basis.
Gentoo also splits nicely into what you need to run Gentoo and what you need to build Gentoo.
That means that its possible to make your own binhost the way you like it. I keep an old AMD 350 alive that way.
Code: | !!! The following binary packages have been ignored due to non matching USE:
=net-libs/webkit-gtk-2.46.5-r410 keyring -systemd wayland
=net-libs/webkit-gtk-2.46.5-r410 keyring
=net-libs/webkit-gtk-2.46.5-r410 keyring wayland
=net-libs/webkit-gtk-2.46.5-r410 wayland
NOTE: The --binpkg-respect-use=n option will prevent emerge
from ignoring these binary packages if possible. |
Did the emerge option -binpkg-respect-use=n help?
If not, what was the emerge command and the complete output? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
cien n00b
Joined: 05 Dec 2024 Posts: 14
|
Posted: Mon Jan 13, 2025 3:13 am Post subject: |
|
|
NeddySeagoon wrote: | cien,
That system is suitable for Gentoo, just a little slow.
With only 4G RAM, you may want to restrict MAKEOPTS for big packages, as building on fewer cores will be faster than running out of real RAM and swapping.
Most of the content of make.conf can be set on a per package basis.
Gentoo also splits nicely into what you need to run Gentoo and what you need to build Gentoo.
That means that its possible to make your own binhost the way you like it. I keep an old AMD 350 alive that way.
Code: | !!! The following binary packages have been ignored due to non matching USE:
=net-libs/webkit-gtk-2.46.5-r410 keyring -systemd wayland
=net-libs/webkit-gtk-2.46.5-r410 keyring
=net-libs/webkit-gtk-2.46.5-r410 keyring wayland
=net-libs/webkit-gtk-2.46.5-r410 wayland
NOTE: The --binpkg-respect-use=n option will prevent emerge
from ignoring these binary packages if possible. |
Did the emerge option -binpkg-respect-use=n help?
If not, what was the emerge command and the complete output? |
Hi, NeddySeagoon. Thank you for your reply.
Quote: | Did the emerge option -binpkg-respect-use=n help?
If not, what was the emerge command and the complete output? |
I tried to do what you said. But something went wrong and I couldn't use xorg. I canceled the binary package and recompiled the world before I could use xorg properly. I still need to compile net-libs/webkit-gtk. But that's okay. I am learning how to use v2raya.
Code: | * Updating gtk3 input method module cache ...
/usr/bin/x86_64-pc-linux-gnu-gtk-query-immodules-3.0: CPU ISA level is lower than required [ !! ]
* ERROR: x11-libs/gtk+-3.24.42-r1::gentoo failed (postinst phase):
* Update immodules cache failed (for amd64)
*
* Call stack:
* ebuild.sh, line 136: Called pkg_postinst
* environment, line 3244: Called multilib_parallel_foreach_abi 'multilib_pkg_postinst'
* environment, line 3029: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib_pkg_postinst'
* environment, line 2589: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib_pkg_postinst'
* environment, line 2587: Called _multilib_multibuild_wrapper 'multilib_pkg_postinst'
* environment, line 642: Called multilib_pkg_postinst
* environment, line 3242: Called die
* The specific snippet of code:
* gnome2_query_immodules_gtk3 || die "Update immodules cache failed (for ${ABI})"
*
* If you need support, post the output of `emerge --info '=x11-libs/gtk+-3.24.42-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-libs/gtk+-3.24.42-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/temp/environment'.
* Working directory: '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/empty'
* S: '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/work/gtk+-3.24.42'
* FAILED postinst: 1
>>> Regenerating /etc/ld.so.cache...
>>> Completed (9 of 13) x11-libs/gtk+-3.24.42-r1::gentoo
>>> Failed to install x11-libs/gtk+-3.24.42-r1, Log file:
>>> '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/temp/build.log'
* Messages for package acct-group/colord-0-r2:
* Adding group colord
* Messages for package acct-user/colord-0-r2:
* Adding user colord
* Messages for package x11-misc/colord-1.4.7-r1:
* The tmpfiles processor exited with a non-zero exit code
* Messages for package x11-libs/gtk+-3.24.42-r1:
* FAILED postinst: 1
* ERROR: x11-libs/gtk+-3.24.42-r1::gentoo failed (postinst phase):
* Update immodules cache failed (for amd64)
*
* Call stack:
* ebuild.sh, line 136: Called pkg_postinst
* environment, line 3244: Called multilib_parallel_foreach_abi 'multilib_pkg_postinst'
* environment, line 3029: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib_pkg_postinst'
* environment, line 2589: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib_pkg_postinst'
* environment, line 2587: Called _multilib_multibuild_wrapper 'multilib_pkg_postinst'
* environment, line 642: Called multilib_pkg_postinst
* environment, line 3242: Called die
* The specific snippet of code:
* gnome2_query_immodules_gtk3 || die "Update immodules cache failed (for ${ABI})"
*
* If you need support, post the output of `emerge --info '=x11-libs/gtk+-3.24.42-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-libs/gtk+-3.24.42-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/temp/environment'.
* Working directory: '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/empty'
* S: '/var/tmp/portage/x11-libs/gtk+-3.24.42-r1/work/gtk+-3.24.42'
* GNU info directory index is up-to-date.
* IMPORTANT: 2 config files in '/etc' need updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
* IMPORTANT: 22 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
|
Code: | cien@gentoo ~ $ startx
X.Org X Server 1.21.1.14
X Protocol Version 11, Revision 0
Current Operating System: Linux gentoo 6.6.67-gentoo-dist #1 SMP PREEMPT_DYNAMIC Thu Dec 19 22:09:00 -00 2024 x86_64
Kernel command line: BOOT_IMAGE=/boot/kernel-6.6.67-gentoo-dist root=UUID=ee196787-0c9f-43e4-a3fd-bb874f43eccf ro
Current version of pixman: 0.44.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/cien/.local/share/xorg/Xorg.0.log", Time: Sat Jan 11
22:17:50 2025
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x82) [0x55fc1b397ff2]
(EE) 1: /usr/bin/X (0x55fc1b262000+0x139f6d) [0x55fc1b39bf6d]
(EE) 2: /usr/lib64/libc.so.6 (0x7fad4b77c000+0x3c2f0) [0x7fad4b7b82f0]
(EE) 3: /usr/lib64/libdrm.so.2 (drmGetVersion+0xa7) [0x7fad4beea337]
(EE) 4: /usr/bin/X (0x55fc1b262000+0x18d514) [0x55fc1b3ef514]
(EE) 5: /usr/bin/X (0x55fc1b262000+0x18d813) [0x55fc1b3ef813]
(EE) 6: /usr/bin/X (0x55fc1b262000+0x1b1dc7) [0x55fc1b413dc7]
(EE) 7: /usr/bin/X (0x55fc1b262000+0x16ea29) [0x55fc1b3d0a29]
(EE) 8: /usr/bin/X (xf86BusProbe+0xd) [0x55fc1b3ae98d]
(EE) 9: /usr/bin/X (InitOutput+0x695) [0x55fc1b3b9be5]
(EE) 10: /usr/bin/X (0x55fc1b262000+0x6e2ae) [0x55fc1b2d02ae]
(EE) 11: /usr/lib64/libc.so.6 (0x7fad4b77c000+0x26200) [0x7fad4b7a2200]
(EE) 12: /usr/lib64/libc.so.6 (__libc_start_main+0x89) [0x7fad4b7a22b9]
(EE) 13: /usr/bin/X (_start+0x25) [0x55fc1b291605]
(EE)
(EE) Illegal instruction at address 0x7fad4beea337
(EE)
Fatal server error:
(EE) Caught signal 4 (Illegal instruction). Server aborting
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/home/cien/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console.
|
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9857 Location: almost Mile High in the USA
|
Posted: Mon Jan 13, 2025 7:46 am Post subject: |
|
|
There was someone with a Pentium Sandybridge recently that was getting sigills and looks like this is happening. Make sure your CFLAGS do not use -march=sandybridge -- at least you need to disable AVX if you do. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
cien n00b
Joined: 05 Dec 2024 Posts: 14
|
Posted: Mon Jan 13, 2025 8:01 am Post subject: |
|
|
eccerr0r wrote: | There was someone with a Pentium Sandybridge recently that was getting sigills and looks like this is happening. Make sure your CFLAGS do not use -march=sandybridge -- at least you need to disable AVX if you do. |
Thank you for your reply. Hi, I am a new gentoo, I am not very familiar with the features of "use falg", may I ask what I should do now?
Here is my make.conf file.
Code: | # 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.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
USE = "-wayland -kde -gnome X pulseaudio "
MAKEOPTS="-j2"
VIDEO_CARDS="intel"
ACCEPT_LICENSE="*"
# Appending getbinpkg to the list of values within the FEATURES variable
#FEATURES="${FEATURES} getbinpkg"
# Require signatures
#FEATURES="${FEATURES} binpkg-request-signature"
# NOTE: This stage was built with the bindist USE flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo"
GRUB_PLATFORMS="efi-64"
|
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9857 Location: almost Mile High in the USA
|
Posted: Mon Jan 13, 2025 8:39 am Post subject: |
|
|
In your COMMON_FLAGS you have "-march=native" which is telling gcc what instruction set it should output. I wonder if gcc can figure out you're using a non-avx sandybridge with -march=native else you'll need to explicitly add -fno-avx after -march=native in your make.conf ... but unfortunately you'll need to rebuild any packages that got the illegal instructions - which at minimum is x11-libs/libdrm . _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
cien n00b
Joined: 05 Dec 2024 Posts: 14
|
Posted: Mon Jan 13, 2025 9:23 am Post subject: |
|
|
eccerr0r wrote: | In your COMMON_FLAGS you have "-march=native" which is telling gcc what instruction set it should output. I wonder if gcc can figure out you're using a non-avx sandybridge with -march=native else you'll need to explicitly add -fno-avx after -march=native in your make.conf ... but unfortunately you'll need to rebuild any packages that got the illegal instructions - which at minimum is x11-libs/libdrm . |
Uh, well, thank you for your advice.I am trying to understand your words. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22990
|
Posted: Mon Jan 13, 2025 3:11 pm Post subject: |
|
|
Start by showing us what gcc interprets -march=native to mean on your hardware, and show us the contents of /proc/cpuinfo.
You mentioned using binary packages. Are the broken files ones that you built locally or did you get them from a Gentoo binhost? |
|
Back to top |
|
|
|
|
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
|
|