Linux to Cygwin cross compiler

Domen Vrankar
Wed Dec 13 10:48:00 GMT 2006


I am trying to build a cross compiler on Linux Debian that would run
on Linux and output files would run on Cygwin.

The problem is that when I run with build output path
changed from root to my home dir I first encountered a broken link for
cygwin tar download. I found another page and manually downloaded the
package to downloads dir and it seemed that it would
build the toolchain successfully. After a while I got:

i686-pc-cygwin-ranlib libmingwex.a
make[3]: Leaving directory
i686-pc-cygwin-dlltool --as i686-pc-cygwin-as --output-def
mingwthrd.def mthr.o mthr_init.o
i686-pc-cygwin-gcc -Wl,--base-file=mingwthrd.base -B./ -mdll
-mno-cygwin -Wl,--image-base,0x6FBC0000
-Wl,--entry,_DllMainCRTStartup@12 mthr.o mthr_init.o -Lmingwex \
      -o mingwthrd_dummy.exe
cannot find -luser32
collect2: ld returned 1 exit status
make[2]: *** [mingwthrd.def] Error 1
make[2]: Leaving directory
make[1]: *** [mingw] Error 1
make[1]: Leaving directory
make: *** [all-target-winsup] Error 2

so I downloaded the library source my self but I don't know how to add it.

Am I perhaps running a wrong script for this job?

Thank you.

Regards, Domen

For unsubscribe information see

More information about the crossgcc mailing list