X-Spam-Check-By: sourceware.org From: "Dave Korn" To: , Subject: RE: Cross-compiling instructions at http://x.cygwin.com/docs/cg/prog-build-cross.html obsolete? Date: Fri, 14 Jul 2006 17:29:27 +0100 Message-ID: <00ca01c6a762$ad0c5ce0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <44B7B66F.7020901@knaff.lu> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On 14 July 2006 16:21, Alain Knaff wrote: > I'm trying to build a Cygwin cross compiler (i.e. a compiler that runs > on Linux but generates binaries that run on Cygwin) > For this, I tried to follow the instructions at > http://x.cygwin.com/docs/cg/prog-build-cross.html > > However, these seem to be obsolete. > > Indeed, on my Fedora Core 5, I get the following error when attempting > to configure gcc: > Copying no to /home/aknaff/cygwin/i686-pc-cygwin/sys-include > /tmp/cNf677/cNf677.tgt: line 821: cd: no: No such file or directory > Created "Makefile" in /home/aknaff/cygwin/src/gcc-3.3.1/build > /tmp/ccvcwlyc.s: Assembler messages: > /tmp/ccvcwlyc.s:5: Warning: .type pseudo-op used outside of .def/.endef > ignored. > /tmp/ccvcwlyc.s:5: Error: junk at end of line, first unrecognized > character is `m' > /tmp/ccvcwlyc.s:18: Warning: .size pseudo-op used outside of .def/.endef > ignored. > /tmp/ccvcwlyc.s:18: Error: junk at end of line, first unrecognized > character is `m' > /tmp/ccvcwlyc.s:20: Error: junk at end of line, first unrecognized > character is `-' > *** The command 'gcc -o conftest -O2 conftest.c' failed. > *** You must set the environment variable CC to a working compiler. My guess is you'd have forgotten step 9, and so it can't find the cross-binutils, and ends up attempting to use your native compiler, which is getting confused. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/