login
Header Space

 
 

Need help cross-compiling MIG

June 22, 2007 - 5:59pm
Submitted by Vitalie Ciubotaru on June 22, 2007 - 5:59pm.
GNU/Hurd

Hi everybody,

I am very interested in exploring Hurd. I installed it from a tarball and
played with it for a while. Might sound like a stupid idea, but I would
really like to compile "my own" Hurd [that's how I started with Linux].
Specifically, I want to cross-build Hurd from Linux. I found Thomas
Schwinge's cross-compilation scripts ["cross-gnu" and "cross-gnu-env"].
I compiled and installed cross binutils and cross gcc, installed GNU Mach's
header files, but when it comes to building cross MIG I receive error
messages about missing terminating " character in cpu.symc. Could it be a
compiler issue [I am using binutils-2.15.94.0.2.2 and gcc-3.4.3]?
I tried the cvs version of mig, but it doesn't even contain a "configure"
script, so I'm completely stuck.

Any hints?
Vitalie Ciubotaru
P.S.: Perhaps, I should have e-mailed it to the author of cross-gnu scripts,
but I thought the answer would be of general interest.

Hi, the easiest way to

June 23, 2007 - 11:15pm
Anonymous (not verified)

Hi,

the easiest way to compile GNU/Hurd is to use Debian as a base distribution. Debian has GNU/Hurd as a non-release architecture already.

From what I remember could be easily build with the normal apt tools
(apt-get build-dep and apt-get source).

They also have documentation for Hurd cross compiling from Debian GNU/Linux.

It's been a while since I did this myself, but it was far easier than I expected.
I'm sorry if this isn't a direct answer to your question, but since most Hurd development seems to be Debian based, most of the errors and search engine hits are based on a Debian environment (including gcc/binutils versions), so it will make playing with the Hurd easier and more fun.

Good luck.

Thank you, Anonymous

June 24, 2007 - 3:14pm

Yeah, but:
1. to cross-compile Hurd from Debian GNU/Linux one needs Debian GNU/Linux. What if all one has is a self-compiled GNU/Linux?
2. cross-compiling Hurd from Debian GNU/Linux means replicating Debian GNU/Hurd, using Debian tools (apt-get, dpkg, crosshurd etc.) and Debian sources (you said apt-get sources, right?). It's not bad at all, but one wishes to study Hurd by recreating it.

Solved it!!!

June 24, 2007 - 3:04pm

Thomas Schwinge's scripts are absolutely magnificent. The MIG issue was solved by upgrading to version 1.3.1.99 (from ftp://alpha.gnu.org/gnu/mig). Later on I had to stop while compiling malloc in glibc-2.3.4, which again was solved by upgrading - to version 2.3.5. Now I have a working cross-compile envirenment. Wow!!!

Vitalie Ciubotaru

P.S.: Have to figure out which packages "my" Hurd will include...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary