Git Product home page Git Product logo

32bit-userland's Introduction

Run Gentoo amd64?  Interested in a 32bit userland for it?  Willing to deal
with failures and fix them?  This is for you!

This is an overlay and a profile for 32bit userland on 64bit Gentoo.  It's hard to use.

This overlay uses i686 as your CHOST.  It is important that you set CHOST
propery in your profile to use this overlay.

Boot an amd64 boot CD, and install an i686 stage3.  Set up this overlay, and
copy this profile over your portage, and pick the 32bit-userland profile.

Patch your toolchain.eclass

Copy 64bit libc from your amd64 box  into /lib64 and /usr/lib64.  You'll need:
/lib64/libc.*
/lib64/ld-*
/lib64/libpthread*
/lib64/libm.*
/lib64/libm-*
/usr/lib64/libc.*
/usr/lib64/libc_*
/usr/lib64/crt*
/usr/lib64/libpthread*
/usr/lib64/libm.*

From CD, mv /lib -> /lib32 and symlink /lib32 lib (and for /usr/lib)

Copy /etc/env/04multilib to the chroot and remove /lib:/usr/lib:

Emerge a multilib gcc.
	- Make sure gcc has -mudflap
	- FEATURES: -sandbox userpriv
	- Change uintptr_t in <stdint.h> to be always 64 bit

Emerge a multilib glibc.
	- FEATURES: -sandbox -userpriv

Re-emerge python so it knows it's in lib32 not lib

You now have a working 32bit-userland sysetem.  Remeber to use those features
when compiling gcc or glibc/linux-headers.  Especially linux-headers: it will
install empty headers with sandbox or userpriv, and this will break
*everything*.

Make sure to select a 64bit kernel and enable 32bit emulation.

I've included a script in this overlay named ttsync.  It allows you to sync
your portage and fixes your profile and toolchain.eclass.  Use it instead of
emerge --sync or eix-sync


32bit-userland's People

Contributors

dang avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.