View previous topic :: View next topic |
Author |
Message |
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Sat Jan 09, 2021 12:19 am Post subject: |
|
|
There is now an updated installation tarball, (URL is the same as on the installation page) with some minor caveats, which I will work on ironing out:
There is no mirrorselect on the System Rescue CD. Don't sweat it.
Don't forget to add a user.
You may need to do a grub-install /dev/sda from inside chroot. Check for the existence of a /boot/grub dir with grubenv inside it.
You need to change "xdm" to "lightdm" in /etc/conf.d/xdm.
If you have connection issues, double-check that you did a cp -L /etc/resolv.conf /mnt/gentoo/etc outside of chroot. Double check that you did not type "resolve.conf".
If commands don't work inside chroot, make sure you've done a source /etc/profile.
Not sure if the kernel compiled with full preemption enabled. I need to figure out a way to ensure that it does. In the meantime, you may want to run genkernel --menuconfig all and make sure full preemption is enabled.
The automatic install should not be used at this time. Please use the manual install instructions. I need to go over the install script and make sure it works as intended.
As always, please let me know what does and does not work for you. _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Sat Jan 09, 2021 3:03 pm Post subject: |
|
|
audiodef
Started with minimal-install gentoo CD from 2021-01-03
using tarball stage4-amd64-latest.tar.bz2 from 2021-01-05 07:31 2.1G
read this here: https://dpaste.com/5HCNDGLP3
Manual installation broke
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Sat Jan 09, 2021 3:18 pm Post subject: |
|
|
Code: |
emerge --config timezone-data does not install sys-libs/timezone-data
|
It's not supposed to. It's just configuring your time zone. If it didn't work, you didn't enter it correctly.
Code: |
after emerge --config timezone-data returns to not chroot
|
I don't see how this is possible. You cannot exit chroot without typing "exit." If using a command other than exit in chroot causes chroot to exit, you should make a separate post for this issue on the forums, perhaps in "other things Gentoo."
What kind of machine are you trying to install on? These issues you're having are very unique. _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Sat Jan 09, 2021 3:49 pm Post subject: |
|
|
audiodef wrote: | Code: |
emerge --config timezone-data does not install sys-libs/timezone-data
|
It's not supposed to. It's just configuring your time zone. If it didn't work, you didn't enter it correctly.
Code: |
after emerge --config timezone-data returns to not chroot
|
I don't see how this is possible. You cannot exit chroot without typing "exit." If using a command other than exit in chroot causes chroot to exit, you should make a separate post for this issue on the forums, perhaps in "other things Gentoo."
What kind of machine are you trying to install on? These issues you're having are very unique. |
audiodef
These commands I enter are accurately and is exact following the commands in your install.sh and chroot_install.sh scripts, manually.
The Computer I'm using is the same where I installed GentooStudio few Years ago successful.
On my working computer at home is Gentoo/linux installed. I using Gentoo since Years.
I can not understand why this behaviour during GentooStudio installation is possible.
I did not type 'exit' at any time. I did not use your install.sh and chroot_install.sh at all
Try it by yourself to install it on an another Computer, you will see what happen.
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Sat Jan 09, 2021 5:19 pm Post subject: |
|
|
audiodef
More information:
In your chroot_install.sh which I don't use, I manaully do by hand
env-update
source /etc/profile
emerge-webrsync
eix-sync
emerge-webrsync does nothing
I
eix-sync should call emerge --sync but it does not run
Hope this information are useful
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 3939 Location: Bavaria
|
Posted: Sat Jan 09, 2021 5:51 pm Post subject: |
|
|
soundrolf,
do you want an UEFI boot ? If yes, you shouldnt format /dev/sda2 with ext4; format it with FAT32 (UEFI can only read an ESP with FAT). |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Sun Jan 10, 2021 5:00 pm Post subject: |
|
|
audiodef
I attempt a new Installation according this site: https://gentoostudio.org/?page_id=2
Here is the step by step protocol what I did: https://dpaste.com/DG7TGPMQB
Can not Install GentooStudio
pietinger
I don't have UEFI Mobo: Asus P5Q
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Wed Jan 13, 2021 10:39 am Post subject: |
|
|
audiodef
New Information:
I figured out that in /usr/portage/profiles are no profiles, no directorys, only 2 files
Made a check with: eselect profiles list
returns: can not found any profiles.
The /boot directory is empty
I will still Investigate my GentooStudio Box
Hope this can help
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Wed Feb 03, 2021 1:15 pm Post subject: |
|
|
audiodef
https://gentoostudio.org/?page_id=2
unfortunately GentooStudio is not installable
Code: |
Once you’ve booted with your boot medium, you need to prepare the hard drive using the following steps:
parted -a optimal /dev/sda
mklabel gpt
unit mib
mkpart primary 1 3
name 1 grub
set 1 bios_grub on
mkpart primary 3 131
name 2 boot
mkpart primary 131 643
name 3 swap
mkpart primary 643 -1
name 4 rootfs
set 2 boot on
mkfs.ext4 /dev/sda2 # I have a BIOS system:
mkfs.ext4 /dev/sda4
mkswap /dev/sda3
swapon /dev/sda3
Now mount the hard drive and install the base system:
mkdir /mnt/gentoo (if this dir does not exist)
mount /dev/sda4 /mnt/gentoo (The mount point does not matter. Just substitute whatever you use here.)
mkdir /mnt/gentoo/boot
mount /dev/sda2 /mnt/gentoo/boot
cd /mnt/gentoo
wget https://gentoostudio.org/src/builds/complete/stage4-amd64-latest.tar.bz2
tar xvjpf stage4-amd64-latest.tar.bz2 --xattrs --numeric-owner
rm stage4-amd64-latest.tar.bz2
Chroot into the base system and configure:
# I put this lines in
# mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf # nice to have a mirror
# mkdir /mnt/gentoo/etc/portage/repos.conf # directory does not exist,
cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
emerge-webrsync
eix-sync kicked me out of chroot <-----------
mount again:
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot again:
chroot /mnt/gentoo /bin/bash
source /etc/profile
made:
echo "Europe/Berlin" > /etc/timezone
emerge --config timezone-data kicked me out of chroot <---------
mount again:
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot again:
chroot /mnt/gentoo /bin/bash
source /etc/profile
trying:
grub-install /dev/sda kicked me out of chroot <--------
|
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Sun Feb 07, 2021 2:17 pm Post subject: |
|
|
audiodef it does not work
GentooStudio Installation: Sun Feb 7 15:05:29 CET 2021
Insert boot medium gentoo install-amd64-minimal-20210203T214504Z.iso
Start Manual Install according to this site https://gentoostudio.org/?page_id=2
Code: |
parted -a optimal /dev/sda
mklabel gpt
unit mib
mkpart primary 1 3
name 1 grub
set 1 bios_grub on
mkpart primary 3 131
name 2 boot
mkpart primary 131 643
name 3 swap
mkpart primary 643 -1
name 4 rootfs
set 2 boot on
print
quit
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda4
mkswap /dev/sda3
swapon /dev/sda3
mount /dev/sda4 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda2 /mnt/gentoo/boot
cd /mnt/gentoo
wget https://gentoostudio.org/src/builds/complete/stage4-amd64-latest.tar.bz2
tar xvjpf stage4-amd64-latest.tar.bz2 --xattrs --numeric-owner
rm stage4-amd64-latest.tar.bz2
cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
emerge-webrsync
eix-sync <------ kicked me out of chroot
|
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Sun Feb 07, 2021 5:10 pm Post subject: |
|
|
Dear audiodef
It does not work. Installation break with this messages:
Quote: | --2021-02-07 16:35:42-- https://gentoostudio.org/src/builds/chroot_install.sh
Resolving gentoostudio.org... 46.4.9.207
Connecting to gentoostudio.org|46.4.9.207|:443.. connected.
HTTP request sent, awaiting response.. 200 OK
Length:2613 (2.6K) [text/x-sh]
Saving to: chroot_install.sh
chroot_install.sh 100%[#############################################>] 2.55K ---.-KB/s
2021-02-07 16:35:43 (62.5MB/s) - chroot_install.sh saved [2613/2613]
Fetching most recent snapshot ...
./install.sh line 107: Illegal instruction chroot /mnt/gentoo /bin/bash -c "./chroot_install.sh"
rm: cannot remove 'disks': No such file or directory |
This is my Computer:
Quote: | Motherboard: ASUS P5Q
Processor: Intel(R) Core(TM)2 Quad CPU
Memory: 8GB
Graphics: NVIDIA G86 GeForce 8500 GT rev a1
Harddisk: 250GB SATA |
On this machine I was able to install gentoostudio 3 years ago.
Don't tell me something about a weird Hardware.
Don't put the blame on me
I using Gentoo/Linux since 5 Years on my other Computer and on this machine as well.
As I wrote in my last post I am able to install to your instructions on your website.
This tarball you created is not installable at all.
Don't put the blame on me never again. It's not a good behaviour.
You made the mistake
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54028 Location: 56N 3W
|
Posted: Sun Feb 07, 2021 5:19 pm Post subject: |
|
|
soundrolf,
Code: | ./install.sh line 107: Illegal instruction chroot /mnt/gentoo /bin/bash -c "./chroot_install.sh" |
That reads as if /bin/bash or one of its libraries contains an instruction that your CPU cannot execute.
It could explain the Quote: | kicked me out of chroot | too, since when an Illegal instruction is encountered, the kernel kills the offending program.
dmesg will contain a line or two saying where the Illegal instruction was. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 117 Location: Cologne / Germany
|
Posted: Sun Feb 07, 2021 5:57 pm Post subject: |
|
|
NeddySeagoon
Have you read my last post. Last Year I was able to install gentoostudio. With the install.sh on https://gentoostudio.org/src/builds/install.sh
Installation has been successful. This gentoostudio was an old 2018 tarball. No chance to update it. Too many blocked packages.
If I do the manual installation according the gentoostudio website the system kicked me out of chroot at the point as I eix-sync put in.
Check it out by yourself with a computer and an empty harddisk. You will see that it is not installable. However
You say that I should check with dmesg. How should work this if I kicked out.
On this machine I was able to install a gentoo/linux following the gentoo handbook.
Why should my cpu doing weird things if everthings works.
I will try to boot with the gentoo minimal install cd and do chroot into the system. Checking with dmesg what happen
But not today. I have enough for today.
By the way. the illegal instruction at line 107 inside install.sh is simply that the noexistent file disks cannot removed.
But it should be there: lsblk -dn -o NAME,SIZE,TYPE --include 8 > disks in line 22 install.sh
After the end of install.sh should chroot_install.sh take over, but it does not
Regards _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54028 Location: 56N 3W
|
Posted: Sun Feb 07, 2021 6:41 pm Post subject: |
|
|
soundrolf,
The chroot uses the hosts kernel. When an Illegal Instruction happens, the event is logged in the hosts kernel log.
That's what dmesg shows. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21431
|
Posted: Sun Feb 07, 2021 6:54 pm Post subject: |
|
|
audiodef wrote: | something is wrong with your hardware. | Based on the output in the post after the one I am quoting, something is wrong - his CPU cannot understand one or more of the instructions used in one of the executed commands. Perhaps the -march was changed to a more modern default in the last few years? (Or perhaps has soundrolf switched to a less capable CPU?) soundrolf wrote: | It does not work. Installation break with this messages: Quote: | --2021-02-07 16:35:42-- https://gentoostudio.org/src/builds/chroot_install.sh
Resolving gentoostudio.org... 46.4.9.207
Connecting to gentoostudio.org|46.4.9.207|:443.. connected.
HTTP request sent, awaiting response.. 200 OK
Length:2613 (2.6K) [text/x-sh]
Saving to: chroot_install.sh
chroot_install.sh 100%[#############################################>] 2.55K ---.-KB/s
2021-02-07 16:35:43 (62.5MB/s) - chroot_install.sh saved [2613/2613]
Fetching most recent snapshot ...
./install.sh line 107: Illegal instruction chroot /mnt/gentoo /bin/bash -c "./chroot_install.sh"
rm: cannot remove 'disks': No such file or directory |
| This is the most useful output you have provided so far. Also, it confirms audiodef's earlier assertion: your computer has a problem with this installer.
Can you capture a core file of the failed command, and disassemble the faulting RIP so that we can know specifically which instruction your CPU considered illegal? That may help us determine how audiodef could modify the image (if he chose to do so) to avoid future use of that instruction.
soundrolf wrote: | This is my Computer:
Quote: | Processor: Intel(R) Core(TM)2 Quad CPU |
| This is the interesting part. Could we get the full /proc/cpuinfo for this system?
soundrolf wrote: | On this machine I was able to install gentoostudio 3 years ago.
Don't tell me something about a weird Hardware. | Three years is a long time for software development. It's very likely that by now audiodef has changed at least some parts of the toolchain, and possibly his own build environment. Does he document that a Core2 CPU is still a supported architecture?
soundrolf wrote: | Don't put the blame on me | Technically, he offered you a choice of "You are doing it wrong" or "Your computer cannot handle this properly." Both of which seem very reasonable given the output in your prior posts. The post to which I am responding confirms it is the latter. Note also that audiodef has been very gracious trying repeatedly to help you, and even opening a separate thread (to which I replied) seeking advice on how your problem (silent exit) could be happening. soundrolf wrote: | This tarball you created is not installable at all.
Don't put the blame on me never again. It's not a good behaviour.
You made the mistake | It is not installable on your hardware, yes. It may be installable on a more modern CPU that understands the instruction set audiodef used. Personally, if I were in audiodef's position, after reading your most recent posts, I would just declare your system unsupported and move on. Perhaps he will be more gracious. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Sun Feb 07, 2021 7:25 pm Post subject: |
|
|
Thanks for chiming in, guys. No blame! It's been personally frustrating for me trying to figure out what could possibly be going wrong here, and it irks me personally when I feel like I'm not providing a solution for a package I created. If you're reading any of my frustration, it's self-directed, not at you.
All of what Neddy and Hu said is correct. A lot has changed. If that's a dual-core machine, Gentoo Studio might not run very well on it any more. Now that I'm thinking about that particular case, I have an older dual-core laptop collecting dust. When I get a chance I'll try to install Gentoo Studio on it, just out of curiosity. I'm not sure a success or failure will mean anything.
And in particular, Neddy said perfectly what I've been suspecting: that specific CPU must not be able to handle what it's being asked to for some reason. The current iteration uses -march=native. I dunno if removing that argument from CFLAGS would help.
P.S. Thanks for your reply in the other thread, Hu. I read it - it's just that life got in the way. _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54028 Location: 56N 3W
|
Posted: Sun Feb 07, 2021 7:42 pm Post subject: |
|
|
Team,
Untarring Code: | wget https://gentoostudio.org/src/builds/complete/stage4-amd64-latest.tar.bz2 |
and looking at make.conf, we have ...
make.conf: | CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="X a2jmidid a52 aac aacplus alsa audacious cdda cddb cdio consolekit
corefonts cpudetection dbus dssi dts elogind encode equalizer faac ffmpeg fftw
flac fluidsynth freesound gif gtk gudev hwdb icu id3 id3tag ieee1394 jack
jpeg ladspa lame libsamplerate lv2 mad matroska midi minizip mp3 mp4 mpeg
mpg123 musepack musicbrainz netjack ogg opengl opus pcre16 png policykit
python qt3support qt5 quicktime realtime rubberband shine shout skins
sndfile soundtouch svg taglib theora tiff timidity truetype twolame udev
udisks upower usb vamp vcd vorbis wav wavpack x264 xine xkb xml xvfb xvid xvmc
-pulseaudio -xscreensaver"
# pcxhr has been omitted because alsa-tools fails with it.
ALSA_CARDS="emu10k1 emu10k1x hdsp hdspm ice1712 mixart rme32 rme96 sb16 sbawe sscape usb-usx2y vx222"
EMERGE_DEFAULT_OPTS="-v --quiet"
CONFIG_PROTECT="protect-owned"
MAKEOPTS="-j2" |
If the tarball was built like that, that's a problem. does different things on different CPUs and can produce code that runs on some and not on others.
I can get into the chroot ... but
Code: | NeddySeagoon_Static /home/roy/downloads # chroot ./gentoostudio /bin/bash
NeddySeagoon_Static / # less /etc/portage/make.conf
NeddySeagoon_Static / # file /bin/bash
Illegal instruction
NeddySeagoon_Static / # | I
dmesg says
Code: | [698750.541119] traps: file[30664] trap invalid opcode ip:7fd254008689 sp:7ffef1eb9af0 error:0 in libmagic.so.1.0.0[7fd253ffa000+19000] |
The problem is reproducible on my Phenom II.
Poking about a bit more, downloads/gentoostudio/var/db/pkg/media-sound/alsa-tools-1.2.2-r1/CFLAGS: | -march=native -O2 -pipe |
downloads/gentoostudio/var/db/pkg/app-shells/bash-5.0_p18/CFLAGS is -O2 -pipe, which will run anywhere, but the libraries it depends on may not. I didn't check.
sys-apps/file has been built with Code: | -march=native -O2 -pipe | which is what upset my Phenom II. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21431
|
Posted: Sun Feb 07, 2021 8:24 pm Post subject: |
|
|
Building on what Neddy said, march=native is probably not a good choice for building programs to put into a general distribution. To make the distribution generally usable with march=native, it would need to be built on the least capable CPU that will be supported. In this case, that would mean a Core2, or possibly something even earlier, depending on whether Core2 has any instructions that supported AMD CPUs lack. It would be easier, and more efficient, to build the distribution on modern hardware and pick a specific march= that is appropriately generic (in the worst case, an explicit -march=x86-64). Omitting march= may work, but I would prefer to set it as a ward against "helpful" build systems that add one of their own if none is set. If the build system adds one, it may pick something other than what we want here, so I think it is better to explicitly set a march= that will run on all supported systems. This would also be a good opportunity, if it has not already been done, to document which CPUs are supported, so that users who lack acceptable hardware can be told up front that the studio cannot work for them.
As a related observation, if the studio from 3 years ago was also built with march=native, then it might have worked on Core2, and a newer iteration broke because audiodef switched to use a more capable CPU for building the distribution. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Mon Feb 08, 2021 9:18 pm Post subject: |
|
|
Ah, thank you guys, this is enormously helpful. I inserted -march=native because it was a suggestion in the handbook. However, I see that my understanding of where and when to use it was limited.
I'll try switching to -march=x86_64 and hope that soundrolf is willing to come back and see if that works for him.
I'm not sure how to document which CPUs are best supported. Maybe depend on feedback from users who report these issues and document them?
Growing pains, I guess. _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
|