tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Cross build on Cygwin-1.7.1
> I'm just testing build on Cygwin 1.7.1 (and PR toolchain/41435).
I've posted a patch for PR toolchain/41435
(build.sh tools from netbsd-4 fails on cygwin-1.7.0):
http://mail-index.NetBSD.org/netbsd-bugs/2009/12/29/msg015185.html
Here is a dumb updated memo for cross build on Cygwin-1.7.1:
---
0. See Cygwin User's Guide first:
http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html
http://cygwin.com/cygwin-ug-net/setup-net.html
1. Open http://cygwin.com/
Click "Install or update now!"
and start installer
2. Choose A Donwload Source:
Select "Install from Internet" and "next"
3. Select Root Install Directory:
"Root Directory" -> Specify directory for Cygwin ("c:\cygwin" etc.)
"Install for" -> Select "All users" or "Just Me" as you like
"Default Text File Type" -> Select "Unix / binary(RECOMMENDED)" as noted
4. Select Local Package Directory:
Specify directory you choose
5. Slect Your Internet Connection:
Select per your environment
6. Choose A Donwload Site:
Use an appropriate mirror
7. Select Packages:
Click "view" button if you want to browse all packages.
- Optional packages required for build:
Devel:
binutils
gcc
gcc-core (3.4.4 is enough)
gcc-g++
gcc-mingw-core (automatically selected with gcc-core)
gcc-mingw-g++ (automatically selected with g++-core)
make
mingw-runtime (automatically selected with gcc-core)
Utils:
diffutils (for cmp(1), required by configure scripts in src/tools)
util-linux (for getopt(1), required by genasssym(1))
More packages the above packages depend on will be selected automatically.
- Possible useful packages:
Devel: cvs
Editor: vim
Net: openssh (for anoncvs)
Shell: tcsh
Utils: patch
8. Progress
It will take a few minutes
9. Create Icons
Check buttons as you like
10. Start Cygwin
Click "Cygwin" icon and get Cygwin's command window
Note I'm using "Cyglaunch" terminal in TeraTerm:
http://en.sourceforge.jp/projects/ttssh2/
11. Fetch NetBSD sources
See NetBSD guide for details:
http://www.NetBSD.org/docs/guide/en/chap-fetch.html
- Note you can see Windows' drives under /cygdrive/[drive letter]/
under Cygwin environment
- In Windows environment, Cygwin's root directory appears
at the specified directory for Cygwin during installtion at 3
12. Extract sources and run build.sh
See NetBSD guide for details:
http://www.NetBSD.org/docs/guide/en/chap-build.html
You need to specify -m and -U options on Cygwin (no superuser):
$ sh build.sh -m i386 -U release
Note netbsd-5 require the above heimdal fixes,
and -current also requires libelf fixes in the previous thread.
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index