Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Incompatibility between new glibc use flags and kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pma
n00b
n00b


Joined: 14 Aug 2007
Posts: 16

PostPosted: Mon Aug 18, 2014 2:55 pm    Post subject: Incompatibility between new glibc use flags and kernel Reply with quote

Hi,

Today when updating my system the first ebuild was sys-libs/glibc-2.19-r1. Yet it refuses to build. The reason is my kernel current is not IA32 enabled and the USE flag "multilib" is forced by default on glibc.
So I've tried to enable IA32 in my kernel (CONFIG_IA32_EMULATION=y) ; rebuild ; install ; reboot. But then the system refuses to boot. I get error message telling me it can't execute my init scripts.

Now I've eselected the no-multilib profile to be able to update glibc (with multilib use flag unset). But I guess the best would be to be able to enable IA32 emulation. Can anyone help me understand what could prevent my system from booting while having simply changed the CONFIG_IA32_EMULATION in my kernel ?

beset regards

PMA
_________________
Pierre-Matthieu Anglade
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 140
Location: Berlin (Germany)

PostPosted: Mon Aug 18, 2014 3:37 pm    Post subject: Reply with quote

If your init scripts can't be executed you should first check if your kernel config includes:
Code:

CONFIG_BINFMT_SCRIPT=y


On the other hand you should note that while switching from multilib to nomultilib (as you did) is more or less trivial the change back from nomultilib to multilib isn't (chicken and egg problem: you need a 32 bit libc to build 32 bit libc).
(you can cheat by building a binpkg inside a chroot and install that, but you shouldn't try to downgrade glibc in the meantime - anyways it's a good way to make a system unbootable)
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Mon Aug 18, 2014 10:20 pm    Post subject: Reply with quote

N8Fear wrote:
anyways it's a good way to make a system unbootable)

I think he succeed on that part.
Back to top
View user's profile Send private message
pma
n00b
n00b


Joined: 14 Aug 2007
Posts: 16

PostPosted: Tue Aug 19, 2014 6:48 am    Post subject: Reply with quote

N8Fear wrote:
If your init scripts can't be executed you should first check if your kernel config includes:
Code:

CONFIG_BINFMT_SCRIPT=y


It does.


N8Fear wrote:
IOn the other hand you should note that while switching from multilib to nomultilib (as you did) is more or less trivial the change back from nomultilib to multilib isn't (chicken and egg problem: you need a 32 bit libc to build 32 bit libc).

That's the point : I was using an incoherent multilib system (since my kernel was not able to handle IA32 binaries). I've been forced to make it coherent either by choosing to go multilib or no-multilib. Since multilib is much more standard, my guess was it would be easier to just enable IA32 binaries in the kernel. And… surprise. Although the change looks quite minor everything fails (I still can't understand why).

So know I'm going to try the path to a true no-multilib system. My problem then is how to add manually the options I had with the desktop/kde profile ? Any ideas ?

N8Fear wrote:

it's a good way to make a system unbootable)

I guess you are right, my system is likely not bootable anymore. Yet once everything will be rebuilded with the no-mulitlib profile, my guess is that it will work fine again.
_________________
Pierre-Matthieu Anglade
Back to top
View user's profile Send private message
pma
n00b
n00b


Joined: 14 Aug 2007
Posts: 16

PostPosted: Wed Aug 20, 2014 9:05 am    Post subject: [solved] Reply with quote

Switching to the no-multilib profile, unsetting the CONFIG_IA32_EMULATION in the kernel, and importing manualy every USE file from the desktop/kde profile in my /etc/portage/ files allowed me to update and get back a bootable system.

Thanks everyone.
_________________
Pierre-Matthieu Anglade
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
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