From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 8 Jul 2014 02:10:37 +0200 From: Aleksandar Kuktin To: 9fans@9fans.net Message-ID: <20140708021037.173b3173@ikilid> In-Reply-To: <000F4E23-C3D9-481E-AF1F-48049B01E168@fb.com> References: <20140705151359.70ebad14@ikilid> <000F4E23-C3D9-481E-AF1F-48049B01E168@fb.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/+DQB/M_Qm=aCj3OfBfVXaRV"; protocol="application/pgp-signature" Subject: Re: [9fans] Cross-compiling Plan 9 Topicbox-Message-UUID: 0170f6ba-ead9-11e9-9d60-3106f5b1d025 --Sig_/+DQB/M_Qm=aCj3OfBfVXaRV Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable >On Mon, 7 Jul 2014 17:41:35 +0000 >Yoann Padioleau wrote: > > Hi, >=20 > I was able to cross compile Plan9 from MacOS which is probably quite > similar to cross compiling from Linux. >=20 > The first thing was to compile the plan9 C compilers > on MacOS. I used https://code.google.com/p/ken-cc/ because this fork > of the Plan9 C compilers are easier to compile on non-plan9 OSes. >=20 > Then I installed plan9port which contained a few utilities that are > used when compiling the plan9 kernel (/bin/rc, /bin/mk). >=20 > Then I setup a few symlinks at the root e.g. >=20 > /lib -> /home/pad/plan9/root/lib > /386 -> /home/pad/plan9/root/386 > /sys -> /home/pad/plan9/sys >=20 > Finally I have a env.sh that I source that contains important > environment variables: export KENCC=3D/home/pad/kencc > # need to modify plan9/src/cmd/mk/shell.c and put rcshell as default > shell export PLAN9=3D/usr/local/plan9 >=20 > export PATH=3D$PLAN9/bin:$KENCC/bin:$PATH >=20 > #for 8._cp to be found and called > PATH=3D$PATH:. >=20 > export objtype=3D386 > #export objtype=3Darm > export cputype=3D386 >=20 > Then I did a few modifications to plan9 Labs and was able to compile > and run everything under qemu. >=20 > My forks: > https://github.com/aryx/fork-kencc > https://github.com/aryx/fork-plan9 Thanks, Yoann. Ken-cc may be the missing piece of the puzzle for me, however it is a little too early to tell. Right now I'm working on compiling the kernel which SHOULD, theoretically, be easier then userspace since the kernel is far, far more hermetic than the userspace. Anyhow, I'll be sure to post the method for doing it, should I eventually end up victorious. --=20 Svi moji e-mailovi su kriptografski potpisani. Proverite ih. All of my e-mails are cryptographically signed. Verify them. -- You don't need an AI for a robot uprising. Humans will do just fine. --Sig_/+DQB/M_Qm=aCj3OfBfVXaRV Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAEBAgAGBQJTuzb9AAoJEKa4cgqNx31/I+MQAJ8MbJLloVut8OI2uOCsS0PP 1W/rvtVEJeNGguvHDwlIioPQx67hVUbrVmMqox9Dd6vWHrMuzlkyg/lEhoskiSZa aQUjqJgoiQeeWxLAiarFefwhqQJXkHdGxyLSuXJybsaYdNgWbF1T8LCn5yAPahtc SlFNFVDUD/tNEekK3CgLRA/AuA3tO+1W0bMiIsl8JbNkgvz80+l9pq5VV6HGv6RB oGNC6mAMq8ESpfBpbYT1BTawy/M3wQfc3sRS0eFVStCVspEMP/gRlyDTl0y1057Y gHFZ2gNC6YBm2/CrWiu9bpJKEqCGDDZ86dcR7qdMpbI/G0OdUDrl6lN1lVgpbZ4l rMiDlO12BWHlcQZfVCYFooY/hNnQiT49Xwo/+se8KL/qwWBGmWJaGvALW/FQyvVd UycncPrtETXj0uDMLC9EBE4EmzhJYwsP8mJIuWETcbqmm2//Tp9+tk533PmuzPn1 9G0QKn0mBqm836Qn2m9OjFMEvBtLTdyW7gdedPKQcxcI6cvnDOAuxwDRRgsIgs8N pVU7I7ApauFtvbxHZGSFZz4/RT8t3Z3iRIfvGMIqLM4EWxr8HKuhdbtDGlgFSKMX FT9k4nGgumKUD1/AoqYPDIA+KFoSXVNqY2O5MJ+blVN4BaaYOY9iYlpnDS17UilC ZsAy/CcVgRtQbxda0KXZ =7nu3 -----END PGP SIGNATURE----- --Sig_/+DQB/M_Qm=aCj3OfBfVXaRV--