X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Roelof Berg <rberg@berg-solutions.de>
Subject:  Re: Building a cygwin->linux cross-compiler problem
Date: Thu, 23 Nov 2006 15:32:52 +0000 (UTC)
Lines: 34
Message-ID:  <loom.20061123T161334-479@post.gmane.org>
References:  <430979A2.40506@fastcom-technology.com> <43097F2A.5D4AAEDC@dessent.net> <43098537.3090808@fastcom-technology.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

[Alain Paschoud:]

For some reason, I need to compile in cygwin applications that will run
on linux (OpenBSD to be precise). [...] To do so, I am following first part of
next howto: http://gentoo-wiki.com/HOWTO_Distcc_server_on_Windows

But when I compile the binutils (binutils-20050610-1) with gcc (gcc
(GCC) 3.4.4 (cygming special)), the compilation stops, complaining that
_main is twice defined... and that _yyparse can't be linked. [...]

[Brian Dessent:]
Are you missing bison?

[Alain Paschoud:]
According to the error message, this is a good question. But bison and
byacc are installed... however, the configure script doesn't say clearly
if bison is present or not according to its tests.

[Roelof Berg:]
Hi,

I had the same compiler error output. After I installed bison and byacc binaries
 using cygwins setup.exe everything was fine. (Be sure to clear old temorary
build files after bison is installed before running a new build...).

There were warning messages asking for "bison" and something like "flex" that
gave me the clue what is missing exactly. If you call make a second time after
the error message is shown there is less output so the missing module warnings
can be seen more easily.

hope it helps,
thanks Brian!,
Roelof



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

