Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error when changing profile from 17.1 to 23.0.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 209

PostPosted: Mon Mar 25, 2024 6:38 am    Post subject: Error when changing profile from 17.1 to 23.0. Reply with quote

Hello.
Error when changing profile from 17.1 to 23.0.

Item 5.
In /etc/portage/make.conf
Code:
egrep CHOST /etc/portage/make.conf
#CHOST="x86_64-pc-linux-gnu"


Item 6.
I'm changing my profile.
Code:
was a profile
  [12]  default/linux/amd64/17.1/no-multilib (exp)
became
  [29]  default/linux/amd64/23.0/no-multilib (stable) *


Item 9.
What am I doing wrong?
Code:
serv0 ~ # emerge --ask --oneshot sys-devel/binutils

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

Calculating dependencies... done!
Dependency resolution took 8.82 s (backtrack: 0/20).

[ebuild   R    ] sys-devel/binutils-2.41-r5  USE="cet* zstd*"

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

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-devel/binutils-2.41-r5::gentoo
 * binutils-2.41.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                             [ ok ]
 * binutils-2.41-patches-5.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                   [ ok ]
 *
 * Your profile is of type merged-usr, but your directories
 * on-disk are of type split-usr.
 * Please switch back to your last valid profile setting and
 * read the documentation about merged-usr and profile changes.
 *
 * ERROR: sys-devel/binutils-2.41-r5::gentoo failed (setup phase):
 *   ERROR: 23.0 merged-usr profile, but disk is split-usr
 *
 * Call stack:
 *        ebuild.sh, line 606:  Called __source_all_bashrcs
 *        ebuild.sh, line 426:  Called __try_source '/usr/portage/profiles/releases/23.0/profile.bashrc'
 *        ebuild.sh, line 487:  Called __qa_source '/usr/portage/profiles/releases/23.0/profile.bashrc'
 *        ebuild.sh, line 123:  Called source '/usr/portage/profiles/releases/23.0/profile.bashrc'
 *   profile.bashrc, line  44:  Called die
 * The specific snippet of code:
 *         die "ERROR: 23.0 merged-usr profile, but disk is split-usr"
 *
 * If you need support, post the output of `emerge --info '=sys-devel/binutils-2.41-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/binutils-2.41-r5::gentoo'`.
 * The complete build log is located at '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/temp/build.log'.
 * The ebuild environment file is located at '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/temp/die.env'.
 * Working directory: '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/empty'
 * S: '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/work/binutils-2.41'

>>> Failed to emerge sys-devel/binutils-2.41-r5, Log file:

>>>  '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/temp/build.log'

 * Messages for package sys-devel/binutils-2.41-r5:

 *
 * Your profile is of type merged-usr, but your directories
 * on-disk are of type split-usr.
 * Please switch back to your last valid profile setting and
 * read the documentation about merged-usr and profile changes.
 *
 * ERROR: sys-devel/binutils-2.41-r5::gentoo failed (setup phase):
 *   ERROR: 23.0 merged-usr profile, but disk is split-usr
 *
 * Call stack:
 *        ebuild.sh, line 606:  Called __source_all_bashrcs
 *        ebuild.sh, line 426:  Called __try_source '/usr/portage/profiles/releases/23.0/profile.bashrc'
 *        ebuild.sh, line 487:  Called __qa_source '/usr/portage/profiles/releases/23.0/profile.bashrc'
 *        ebuild.sh, line 123:  Called source '/usr/portage/profiles/releases/23.0/profile.bashrc'
 *   profile.bashrc, line  44:  Called die
 * The specific snippet of code:
 *         die "ERROR: 23.0 merged-usr profile, but disk is split-usr"
 *
 * If you need support, post the output of `emerge --info '=sys-devel/binutils-2.41-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/binutils-2.41-r5::gentoo'`.
 * The complete build log is located at '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/temp/build.log'.
 * The ebuild environment file is located at '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/temp/die.env'.
 * Working directory: '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/empty'
 * S: '/mnt/tmp/portage/sys-devel/binutils-2.41-r5/work/binutils-2.41'
serv0 ~ #

_________________
BSD, Linux systems blog
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 745
Location: /home

PostPosted: Mon Mar 25, 2024 6:51 am    Post subject: Reply with quote

Read the error you're getting, then read the news item carefully again (part 6.)
Back to top
View user's profile Send private message
bagas
Apprentice
Apprentice


Joined: 29 Jun 2018
Posts: 209

PostPosted: Mon Mar 25, 2024 6:56 am    Post subject: Reply with quote

I use openrc.
hmm, I probably need to switch to this profile first
Code:
   [49] default/linux/amd64/23.0/split-usr/no-multilib (stable)

And then migrate to
Code:
   [29] default/linux/amd64/23.0/no-multilib (stable)

Am I right?
_________________
BSD, Linux systems blog
Back to top
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 643
Location: Ásgarðr

PostPosted: Mon Mar 25, 2024 7:10 am    Post subject: Reply with quote

@bagas:
Yes this is correct. Migrating later to merged-usr is optional though. Personally, I skip it for now. I'm sick of the rebuild time with my old cpu already :lol:
Back to top
View user's profile Send private message
e8root
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2024
Posts: 94

PostPosted: Mon Mar 25, 2024 8:36 am    Post subject: Reply with quote

Does migration to merged-usr require rebuilding anything? I mean except those few packages which have changed flag due to profile change.
Imho it is mostly about executing migration script before changing profile. In theory it could be done while migrating top 23.0 if you don't want to rebuild these packages twice in a row.

That said this is probably untested migration procedure so most probably officially unsupported.
_________________
Unix Wars - Episode V: AT&T Strikes Back
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5036
Location: Bavaria

PostPosted: Mon Mar 25, 2024 4:00 pm    Post subject: Reply with quote

sdauth wrote:
[...] Personally, I skip it for now. I'm sick of the rebuild time with my old cpu already :lol:

Dont worry ... ;-)

e8root wrote:
Does migration to merged-usr require rebuilding anything? [...]

No !

I made the switch from split-usr to merged-usr (OpenRC here) one day after the switch to 23.0 and only 17 packages were affected ... so no comparison to the emerge -e ... :lol:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Mon Mar 25, 2024 4:56 pm    Post subject: Reply with quote

If you have split-usr, You don't EVER have to migrate to merged-usr as long as split-usr continues to be supported by your profile.

The migration instructions in the news gives instructions on what to do and what order to do them in. Stick with that.

My x86 system, AMD Phenom 3x, 8 GB RAM system is currently on 829 or 1285 packages after 11 hours running. The migration emerge --emptytree is running in an open window in the lower right hand corner of my main screen. I'm not especially watching it. I'm just aware of it.

ADDED: Ultimately, it took 26 hours of emerge --emtytree to complete the migration. No issues. I think the instructions were great.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
yayo
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2014
Posts: 99

PostPosted: Wed Mar 27, 2024 2:47 pm    Post subject: Reply with quote

figueroa wrote:
I think the instructions were great.

I agree... but maybe it was not enough. : P

1st. is seems that there was a chance to avoid to rebuild some packages (like gcc, done right before) to save build time, as discussed here:
https://forums.gentoo.org/viewtopic-t-1168028.html?sid=f19ef2f1a0a2fbdc99df7e8fd367a55e

2nd. I got an error with sys-fs/vhba
Code:
 * Messages for package sys-fs/vhba-20240202:

 * GCC_PLUGINS is enabled in the kernel and plugin version mismatch issues
 * have been detected. Please `make clean` and rebuild the kernel using
 * the current version of GCC (or re-install for distribution kernels).
 * ERROR: sys-fs/vhba-20240202::gentoo failed (setup phase):
 *   kernel 6.6.21-gentoo needs to be rebuilt


So I guess it's something like: 1. recompile all but external modules, 2. recompile the kernel, 3. recompile the modules.
But it's not written in the instructions.

(note: yes, I could have resumed with --exclude vhba or something, maybe, but I committed a mistake somewhere and I got a reset of the resume session, so I have to restart from scratch... :/ )

Nothing that cannot be fixed, but still annoying.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3830

PostPosted: Wed Mar 27, 2024 3:44 pm    Post subject: Reply with quote

sys-fs/vhba here too.

Along with net-misc/r8168, another kernel external module 8)

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Wed Mar 27, 2024 4:05 pm    Post subject: Reply with quote

The external modules issue, if it turns out to be a persistent issue, would be a perfect use-case for:
Code:
emerge --skiprfirst --resume

Then after --emptytree ultimately completes, go back and re-compile the kernel, modules, and external modules, and only then, reboot.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2366

PostPosted: Wed Mar 27, 2024 5:34 pm    Post subject: Reply with quote

Does anyone of you guys really need that kernel option enabled?

Do you do any instrumentation and static analysis?

Best Regards,
Georgi
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Wed Mar 27, 2024 6:00 pm    Post subject: Reply with quote

I was under the impression that GCC_PLUGINS may have been enabled by default, or by something else. I don't have a known use for it, and I don't have installed sys-fs/vhba. I'm eagerly awaiting the continuation of this thread by others who might actually know.

Added: By the way, some info at - https://github.com/torvalds/linux/blob/master/Documentation/kbuild/gcc-plugins.rst where it reads, in part:
Quote:
The GCC plugin infrastructure of the kernel supports building out-of-tree modules, cross-compilation and building in a separate directory.

_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5036
Location: Bavaria

PostPosted: Wed Mar 27, 2024 6:17 pm    Post subject: Reply with quote

figueroa wrote:
I was under the impression that GCC_PLUGINS may have been enabled by default, [...]

Yes, it is enabled by default ... AND ... you will need it for GENTOO_KERNEL_SELF_PROTECTION ...
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Thu Mar 28, 2024 2:39 am    Post subject: Reply with quote

Thanks, pietinger.

The machine where I need out-of-kernel modules has now successfully emerged virtualbox-modules as part of the migration to 23 series profile without any issue. The out-of-kernel modules issue and kernel GCC_PLUGINS might not be a systemic migration issue.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
pcmaster
Advocate
Advocate


Joined: 04 Dec 2003
Posts: 2234
Location: Barcelona

PostPosted: Thu Mar 28, 2024 9:31 am    Post subject: Reply with quote

In the system news, also in https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html

Code:
6. Select the 23.0 profile corresponding to your current profile, either using
   "eselect profile" or by manually setting the profile symlink.
   Note that old profiles are by default split-usr and the 23.0 profiles by
   default merged-usr. Do NOT change directory scheme now, since this will
   mess up your system!
   Instead, make sure that the new profile has the same property: for example,
   OLD default/linux/amd64/17.1 
        ==>  NEW default/linux/amd64/23.0/split-usr
             (added "split-usr")
   OLD default/linux/amd64/17.1/systemd/merged-usr 
        ==>  NEW default/linux/amd64/23.0/systemd
             (removed "merged-usr")
   A detailed table of the upgrade paths can be found at [5]. Please consult it.
   In some cases (hppa, x86) the table will tell you to pick between two choices.
   What you need should be obvious from your *old* CHOST value (from step 4).


if you are using default/linux/amd64/17.1/no-multilib in 17.1, yo can select default/linux/amd64/23.0/split-usr/no-multilib as new profile
_________________
pcmaster
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum