This is the mail archive of the cygwin@cygwin.com 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]

GCC problem


I have installed the cygwin package (1.3.10) on my Win2k machine.

My goal is to build a GCC cross-compiler for a PowerPC target.  The problem
I have is rebuilding the GNU tools.  When I start with the binutils via the
configure script I get the following error:

Configuring for a i686-pc-cygwin host.
Created "Makefile" in /tmp/build/binutils using "mh-frag"
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot find -luser32
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


I also tried to compile a simple "Hello world" program to verify if the
problem was only with the configure or some overall gcc problem.  I got a
similar error:

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot find -luser32
collect2: ld returned 1 exit status


I have read the mailing list and noted that many people have had the same
problem.  In most all of those cases the advice was to reinstall cygwin and
make sure the w32api package was downloaded and installed.

I have done this 2x, first I hand picked the packages and tried it and
second I downloaded and installed ALL and tried it.  It did not work in
either case.

Any advice would be appreciated.

Thanks in advance,
MH


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]