Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X32 chroot on a 64 bit gentoo system?
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
justXi
n00b
n00b


Joined: 01 Aug 2007
Posts: 72

PostPosted: Sun Jun 18, 2017 8:55 am    Post subject: X32 chroot on a 64 bit gentoo system? Reply with quote

Hi,

I want to test a X32 system.
Is it possible to test it following the chroot guide (https://wiki.gentoo.org/wiki/Chroot/en), using a X32 stage3?

Thanks for hints and help.

regards

W. Holzke
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7322
Location: Goose Creek SC

PostPosted: Mon Jun 19, 2017 2:36 am    Post subject: Reply with quote

yes.
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Chrooting
https://wiki.gentoo.org/wiki/Chroot
https://docs.oseems.com/general/operatingsystem/gentoo/build-chroot-environment
_________________
Defund the FCC.


Last edited by DONAHUE on Mon Jun 19, 2017 2:44 am; edited 1 time in total
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3432
Location: Hamburg

PostPosted: Mon Jun 19, 2017 1:02 pm    Post subject: Reply with quote

DONAHUE wrote:
yes
Sure ? chrooting from amd64 into x32 ?
Back to top
View user's profile Send private message
justXi
n00b
n00b


Joined: 01 Aug 2007
Posts: 72

PostPosted: Sun Jun 25, 2017 6:02 pm    Post subject: Reply with quote

Seems to work.

Compiling of programs inside X32 chroot using "gcc -mx32 ..." works.
Back to top
View user's profile Send private message
spikyatlinux
n00b
n00b


Joined: 18 Sep 2010
Posts: 19

PostPosted: Mon Jun 26, 2017 7:27 am    Post subject: Reply with quote

toralf wrote:
DONAHUE wrote:
yes
Sure ? chrooting from amd64 into x32 ?


Yes but you have to use the following syntax:

Code:
linux32 chroot PATHtoCHROOT /bin/bash
, this will chroot in 32-bit mode.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3432
Location: Hamburg

PostPosted: Mon Jun 26, 2017 6:22 pm    Post subject: Reply with quote

spikyatlinux wrote:
Code:
linux32 chroot PATHtoCHROOT /bin/bash
, this will chroot in 32-bit mode.
Ah - thx !
Back to top
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 243

PostPosted: Tue Jun 27, 2017 12:44 am    Post subject: Reply with quote

spikyatlinux wrote:
toralf wrote:
DONAHUE wrote:
yes
Sure ? chrooting from amd64 into x32 ?


Yes but you have to use the following syntax:

Code:
linux32 chroot PATHtoCHROOT /bin/bash
, this will chroot in 32-bit mode.

x32 is not a 32-bit mode; it's a 64-bit mode with 32-bit pointers... I think you are thinking of x86, for which linux32 is the way to go.
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