Help: gcc problem in Cygwin!

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Wed Aug 2 14:24:00 GMT 2006


<http://cygwin.com/acronyms/#TOFU>.  Reformatted.

Frank C. wrote:
> --- "Larry Hall (Cygwin)"
> <reply-to-list-only-lh at cygwin dot com> wrote:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> 
>> Frank C. wrote:
>>> Dear all,
>>>
>>> I've been trying to install a software on Cygwin
>> under
>>> Windows XP, but without any success. The steps are
>> (1)
>>> './configure', and (2) 'make'.
>>>
>>> I had following error message after running
>> 'make'.
>>> cygpath: can't convert empty path
>>>
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o)
>>> :: undefined reference to '_WinMain@16'
>>> collect2: ld returned 1 exit status
>>> make: *** [libquicknet3.a] Error 1
>>>
>>>
>>> Can anyone let me know what's wrong here? It seems
>>> that there is a confusion on which linker to use
>> for
>>> gcc, and GNU ld is not on the path. I attach the
>>> output from './configure' at the end. Do you think
>> it
>>> is related to those outputs? If so, how to fix it?
>> If
>>> not, what's the cause?
>>> checking for ld used by GCC... ${CXX}
>>> checking if the linker (${CXX}) is GNU ld... no
>>>
>>
>>
>> Make sure you've installed the 'binutils' package
>> and that
>> 'ld' from this package is in your path.  If this
>> doesn't
>> resolve the problem, then please read and follow the
>> problem
>> reporting guidelines found here:
>>
>>> Problem reports:      
>> http://cygwin.com/problems.html
>>
>>
>>
>> -- 
>> Larry Hall                             
>> http://www.rfk.com
>> RFK Partners, Inc.                      (508)
>> 893-9779 - RFK Office
>> 216 Dalton Rd.                          (508)
>> 893-9889 - FAX
>> Holliston, MA 01746
>>
>> --
>> 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/
>>
> Larry,
> 
> Thanks for your quick reply!
> 
> I installed the latest version of Cygwin, and almost
> all packages which includes 'binutils' package. I
> checked and found 'ld' in the path: (1)
> cygwin\bin\ld.exe (678 kb), and (2)
> cygwin\usr\i686-pc-cygwin\bin\ld.exe (1 kb). Is this
> normal?


Yes, that's normal.  The latter is a symbolic link to the former.


> I did a quick search on the list and couldn't find
> exact answer to my question.
> 
> Do you have any more thoughts? Thanks!


OK, this looks like it must be a configure problem then.  'cygpath'
is apparently being invoked by the script with an empty path.  If
you can narrow down where in this script that this is happening,
you should have more luck determining why this is the case and how
to resolve it.  My WAG is that it's resolving some environment variable
or path that doesn't actually exist.  But I can't say more without
further details.

HTH,


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

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



More information about the Cygwin mailing list