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/