This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building a cygwin->linux cross-compiler problem


Brian Dessent wrote:
> Alain Paschoud wrote:
> 
> 
>>For some reason, I need to compile in cygwin applications that will run
>>on linux (OpenBSD to be precise). I didn't find any pre-compiled
>>cross-compiler to do that (does it exist one ?), so I try to build one.
>>To do so, I am following first part of next howto :
> 
> 
> This isn't really a Cygwin-specific topic, and there are better places
> to ask such as the crossgcc list (also hosted on sourceware).  If you
> want a full cross toolchain and you're targeting linux/glibc then
> crosstool will definitely be what you want to use.
> 
> 
>>http://gentoo-wiki.com/HOWTO_Distcc_server_on_Windows
> 
> 
> ...especially if you're following someone else's directions.

At start, I began on my own, without any howto, but as I couldn't get
compilation working I tried to find some help. Thank for your advice, I
will try crosstool, and ask further questions on crossgcc list.

>>/usr/src/binutils-20050610-1/binutils/ar.c:143: undefined reference to
>>`_yyparse'
> 
> 
> Are you missing bison?

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.

>>cygwin$ export BUILD=i686-pc-cygwin
>>cygwin$ export HOST=i686-pc-cygwin
> 
> 
> Normally you don't need to specify these.
> 
> 
>>cygwin$ export TARGET=i686-pc-linux-gnu
> 
> 
> If you are targeting openbsd then why are you using this?

Good question :-) I just did my latest test with them to try to
understand compilation problems. But of course, I should use
TARGET=i686-pc-openbsd3.7

Thanks for all.
-- 
Alain Paschoud, Fastcom Technology, Lausanne

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]