delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/05/02:30:10

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47F72A42.C56BC03F@dessent.net>
Date: Sat, 05 Apr 2008 00:29:06 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Compiling Cygwin on Linux
References: <47F1B87A DOT 3050709 AT gmail DOT com> <47F538F3 DOT CAFABB19 AT dessent DOT net> <47F71B44 DOT 8030404 AT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Robert Eckhoff wrote:

> /*rant
> I've been trying to boot strap a cygwin/gcc system for essentially 3 
> weeks now.  I am _frustrated_.  I have copied files around, linked 
> directories from gcc into cygwin, linked directories from cygwin into 
> gcc.  I have copied include files from various places into other various 
> places.  I have flat out removed lines of code that seem to be keeping 
> cygwin from building.
> */rant

Is this supposed to make us want to help you more?  You're doing
something bizarre and silly and as a consequence you're finding it
difficult.  I can assure you that many of us cross compile Cygwin on
Linux regularly without having to worry about any of this -- in fact
there's a fair chance that every Cygwin DLL on every mirror for the last
decade or so has been crosscompiled, because it's so much faster, and it
just plain works.  The difference is that nobody tries to bootstrap from
scratch, you first create a working toolchain using existing sysroot
files, then you use that to rebuild Cygwin.

> config.log says that  i686-pc-cygwin-gcc is complaining that crt0.o is
> not available.  A compiled cygwin is supposed to have crt0.o.  Therefore
> shouldn't require crt0.o to compile.  This is a chicken and the egg
> problem.  What are the right commands to pass to the cygwin source tree
> (configure/make) to compile and install crt0.o, and all other startup
> files?  As an aside, with all my attempts, newlib seems to always
> compile fine, it is winsup that has issues.

I don't understand why you assume that this should work.  You need a
working compiler that can link executables in order to run the configure
tests.  In order to link executables you need startup objects, which are
part of Cygwin.  So, yes, chicken and egg.  But Cygwin is quite old and
stable, there is no scarcity of binary packages, and there are virtually
no adjustable knobs or config variables to tune (unlike, say, linux
embedded systems), so the need to bootstrap from nothing is essentially
nonexistant unless you just like being pedantic or are feeling
masochistic.  Certainly we don't support it.  For $deity's sake just use
a sysroot; the Cygwin binary package conveniently provides everything
necessary in one simple wget-able tarball that unpacks to the perfect
directory structure.  There's even a step by step tutorial on the
website.  If you want to feel like you built everything yourself you can
delete it after the first time and repopulate it with the copy you just
built.

You can probably get around the link tests by supplying the cached
answers (ac_cv_*) when invoking configure.  This assumes you know the
correct answers beforehand, as from a previous run.

Brian

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019