X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <47DDA87D.2010403@gmail.com> Date: Sun, 16 Mar 2008 19:08:45 -0400 From: Robert Eckhoff User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Bootstrapping Cygwin 1.5.25 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi all, Thank you in advance for any help. I want to bootstrap cygwin and gcc, from cygwin. The documented procedure for bootstrapping a system has been documented in many places and has amounted to the following: 1) Install libc headers (in cygwin's case, from the "cygwin-{version}-src" package). 2) Compile and install binutils. 3) Compile and install gcc (compiling only c). 4) Compile and install libc (in cygwin's case, from the "cygwin-{version}-src" package). 5) Compile and install gcc again, but compiling all the user desired languages and using the compiled libc. So that I do not hurt my existing cygwin install, I configured everything with the following flag: "--prefix=/opt/crosstool --with-sysroot=/opt/crosstool" Problems: For step 1: Cygwin doesn't appear to have a make target to only install headers, is this this true? For step 4: If I manage to use precompiled headers for steps 2 & 3, cygwin-{version}-src failures during "configure" in step 4 because the configure expects a test program to be able to link with "crt0.o". To have a copy of crt0.o already, defeats the purpose of bootstrapping the libc ( cygwin-{version}-src) package. How other people work around these issues for compiling gcc (even when hosting from linux) is by using precompiled cygwin headers and libs. But, as you may have gathered, I want to bootstrap cygwin, not download it. I have tried bootstrapping many different combinations of the following, making sure my system was clean after each iteration: cygwin: 1.5.25-7, 1.5.25-11 gcc: 3.4.4, 3.3.2, 3.3.6 , 4.1.1, 4.3.0 binutils: 2.16.1, 2.18 With the cygwin system versions appended after my signature. Thanks again for any direction, ~Robert $cygcheck -c Cygwin Package Information Package Version Status _update-info-dir 00595-1 OK afio 2.5-1 OK alternatives 1.3.29a-1 OK apache2 2.2.6-1 OK ash 20040127-3 OK aspell 0.60.5-1 OK aspell-en 6.0.0-1 OK atk 1.10.3-1 OK atk-runtime 1.10.3-1 OK autoconf 4-1 OK autoconf2.1 2.13-3 OK autoconf2.5 2.61-1 OK automake 2-1 OK automake1.10 1.10.1-1 OK automake1.4 1.4p6-4 OK automake1.5 1.5-2 OK automake1.6 1.6.3-3 OK automake1.7 1.7.9-3 OK automake1.8 1.8.5-3 OK automake1.9 1.9.6-2 OK base-files 3.7-1 OK base-passwd 2.2-1 OK bash 3.2.33-18 OK bash-completion 20060301-2 OK bc 1.06-2 OK binutils 20060817-1 OK bison 2.3-1 OK bzip2 1.0.3-2 OK cabextract 1.1-1 OK chere 1.0-1 OK clear 1.0-2 OK cmake 2.4.8-1 OK cocom 0.995-1 OK colordiff 1.0.7-1 OK colorgcc 1.3.2-1 OK compface 1.5.2-1 OK coreutils 6.10-1 OK cpio 2.9-1 OK cron 4.1-6 OK crypt 1.1-1 OK csih 0.1-1 OK ctags 5.7-1 OK curl 7.16.3-1 OK cvs 1.11.22-1 OK cvsps 2.1-1 OK cvsutils 0.2.3-1 OK cygport 0.3.8-1 OK cygrunsrv 1.21-1 OK cygutils 1.3.2-1 OK cygwin 1.5.25-11 OK cygwin-doc 1.4-4 OK ddd 3.3.9-1 OK desktop-file-utils 0.10-1 OK diffutils 2.8.7-1 OK distcc 2.18.3-1 OK dmalloc 5.4.2-2 OK doxygen 1.5.1-1 OK e2fsprogs 1.35-3 OK ed 0.2-1 OK editrights 1.01-2 OK emacs 21.2-13 OK emacs-X11 21.2-13 OK expat 1.95.8-2 OK expect 20030128-1 OK fcrackzip 0.3-1 OK fftw3 3.0.1-2 OK fftw3-dev 3.0.1-2 OK file 4.21-1 OK findutils 4.3.13-1 OK flex 2.5.4a-3 OK fontconfig 2.4.1-5 OK fortune 1.99.1-2 OK freeglut 2.2.0-1 OK freetype2 2.3.4-2 OK gawk 3.1.6-1 OK gcc 3.4.4-3 OK gcc-core 3.4.4-3 OK gcc-g++ 3.4.4-3 OK gcc-g77 3.4.4-3 OK gcc-mingw-core 20050522-1 OK gcc-mingw-g++ 20050522-1 OK gcc-mingw-g77 20050522-1 OK gdb 20060706-2 OK geoip 1.3.14-1 OK gettext 0.15-1 OK ghostscript 8.50-1 OK ghostscript-base 8.50-1 OK ghostscript-x11 8.50-1 OK git 1.5.4-1 OK glib 1.2.10-3 OK glib2 2.10.3-1 OK glib2-runtime 2.10.3-1 OK gmp 4.2.1-1 OK gnome-keyring 0.4.8-1 OK gnubg 0.16-1 OK gnugo 3.7.11-1 OK gnuplot 4.2.3-1 OK gq 1.2.2-1 OK grep 2.5.1a-4 OK groff 1.18.1-2 OK gsl 1.10-1 OK gtk2-x11 2.6.10-1 OK gtk2-x11-runtime 2.6.10-1 OK guile 1.8.2-1 OK guile-devel 1.8.2-1 OK guile-doc 1.8.2-1 OK gv 3.6.3-1 OK gzip 1.3.12-2 OK hexedit 1.2.12-1 OK ImageMagick 6.3.0.1-2 OK indent 2.2.9-2 OK inetutils 1.3.2-40 OK ioperm 0.4-1 OK jasper 1.701.0-1 OK jbigkit 1.6-1 OK lapack 3.0-5 OK lcms 1.14-1 OK less 382-1 OK lesstif 0.94.4-1 OK libapr1 1.2.11-1 OK libaprutil1 1.2.10-1 OK libaspell15 0.60.5-1 OK libaudiofile0 0.2.6-2 OK libbz2_1 1.0.3-2 OK libcairo2 1.0.2-1 OK libcharset1 1.11-1 OK libcurl3 7.15.4-2 OK libcurl4 7.16.3-1 OK libdb4.2 4.2.52.5-2 OK libdb4.3 4.3.29.1-1 OK libdb4.5 4.5.20.2-2 OK libecpg5 8.1.4-2 OK libesound0 0.2.36-1 OK libexpat0 1.95.8-2 OK libfontconfig1 2.4.1-5 OK libfreetype26 2.3.4-2 OK libgcrypt 1.4.0-1 OK libgd2 2.0.35-1 OK libgdbm4 1.8.3-8 OK libglade2 2.5.1-1 OK libglitz1 0.4.4-2 OK libgmp-devel 4.2.1-1 OK libgmp3 4.2.1-1 OK libgpg-error 1.6-1 OK libguile12 1.6.7-4 OK libguile17 1.8.2-1 OK libiconv 1.11-1 OK libiconv2 1.11-1 OK libintl1 0.10.40-1 OK libintl2 0.12.1-3 OK libintl3 0.14.5-1 OK libintl8 0.15-1 OK libjbig1 1.5-3 OK libjbig2 1.6-1 OK libjpeg62 6b-12 OK libkpathsea3 2.0.2-15 OK libkpathsea4 3.0.0-3 OK libltdl3 1.5.23c-1 OK libMagick10 6.3.0.1-2 OK libmpfr-devel 2.2.1-1 OK libmpfr1 2.2.1-1 OK libncurses-devel 5.5-3 OK libncurses7 5.3-4 OK libncurses8 5.5-3 OK libneon26 0.26.4-1 OK libnetpbm10 10.33-1 OK libopenldap2_3_0 2.3.39-1 OK libpcre0 7.2-1 OK libpgtypes2 8.1.4-2 OK libplot2 2.4.1-1 OK libplotter2 2.4.1-1 OK libpng 1.2.12-1 OK libpng12 1.2.12-1 OK libpopt0 1.6.4-4 OK libpq4 8.0.7-1 OK libreadline6 5.2.12-10 OK libsasl2 2.1.19-3 OK libsqlite3_0 3.5.1-1 OK libssh2_1 0.15-1 OK libtiff4 3.6.0-5 OK libtiff5 3.8.2-3 OK libtool1.5 1.5.23c-1 OK libungif4 4.1.4-1 OK libwmf 0.2.8.4-1 OK libXft 2.1.6-1 OK libXft1 1.0.0-1 OK libXft2 2.1.6-1 OK libxmi0 2.4.1-1 OK libxml2 2.6.28-2 OK libxml2-devel 2.6.28-2 OK lilypond 2.10.33-1 OK login 1.9-7 OK lyx 1.4.5-1 OK lzma 4.43-2 OK m4 1.4.10b-1 OK make 3.81-2 OK man 1.6e-1 OK mc 4.6.1-2 OK mingw-runtime 3.14-1 OK minires 1.01-1 OK mktemp 1.5-4 OK mpfr 2.2.1-1 OK nano 2.0.6-1 OK nasm 2.02-1 OK ncurses 5.5-3 OK netcat 1.10-2 OK netpbm 10.33-1 OK octave 2.1.73-1 OK octave-doc 2.1.73-1 OK octave-forge 2006.03.17-1 OK octave-headers 2.1.73-1 OK octave-htmldoc 2.1.73-1 OK octave-info 2.1.73-1 OK octave-otags 2.1.73-1 OK opengl 1.1.0-8 OK openssh 4.7p1-2 OK openssl 0.9.8g-1 OK openssl097 0.9.7l-1 OK pango 1.8.1-1 OK pango-runtime 1.8.1-1 OK patch 2.5.8-9 OK patchutils 0.2.31-1 OK pcre 7.2-1 OK pcre-devel 7.2-1 OK pcre-doc 7.2-1 OK perl 5.8.8-4 OK perl-Error 0.17010-1 OK perl-Win32-GUI 1.06-1 OK pine 4.58-1 OK ping 1.0-1 OK pkg-config 0.21-1 OK plotutils 2.4.1-1 OK popt 1.6.4-4 OK postgresql 8.0.7-1 OK postgresql-client 8.0.7-1 OK python 2.5.1-2 OK qt3 3.3.4-2 OK qt3-bin 3.3.4-2 OK quilt 0.46-1 OK rcs 5.7-4 OK readline 5.2.12-10 OK rebase 2.4.3-1 OK rsync 2.6.9-2 OK run 1.1.10-1 OK rxvt 20050409-7 OK screen 4.0.3-1 OK sed 4.1.5-2 OK shared-mime-info 0.17-1 OK snownews 1.5.7-1 OK sqlite3 3.5.1-1 OK subversion 1.4.5-2 OK subversion-apache2 1.4.5-2 OK subversion-perl 1.4.5-2 OK tar 1.19.90-1 OK tcltk 20060202-1 OK tcsh 6.15.00-4 OK termcap 20050421-1 OK terminfo 5.5_20061104-1 OK tetex 3.0.0-3 OK tetex-base 3.0.0-3 OK tetex-bin 3.0.0-3 OK tetex-devel 3.0.0-3 OK tetex-doc 3.0.0-3 OK tetex-extra 3.0.0-3 OK tetex-tiny 3.0.0-3 OK texinfo 4.8a-1 OK TeXmacs 1.0.6-1 OK tiff 3.8.2-3 OK tig 0.9.1-1 OK time 1.7-1 OK transfig 3.2.4-2 OK tzcode 2007h-2 OK unzip 5.52-2 OK util-linux 2.13.1-1 OK vim 7.1-1 OK w32api 3.11-1 OK wget 1.10.2-2 OK which 2.19-1 OK whois 4.7.24-1 OK wtf 0.0.4-6 OK X-startup-scripts 1.0.11-1 OK Xaw3d 1.5D-5 OK xemacs 21.4.21-1 OK xemacs-emacs-common 21.4.21-1 OK xorg-x11-base 6.8.99.901-1 OK xorg-x11-bin 6.8.99.901-1 OK xorg-x11-bin-dlls 6.8.99.901-1 OK xorg-x11-bin-lndir 6.8.99.901-1 OK xorg-x11-etc 6.8.99.901-1 OK xorg-x11-fenc 6.8.99.901-1 OK xorg-x11-fnts 6.8.99.901-1 OK xorg-x11-fscl 6.8.99.901-1 OK xorg-x11-libs-data 6.8.99.901-1 OK xorg-x11-xwin 6.8.99.901-1 OK xorg-x11-xwin-gl 6.8.99.901-1 OK xterm 229-1 OK xwinwm 0.0.5-1 OK zip 2.32-2 OK zlib 1.2.3-2 OK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/