Problem with gcc 3.4.4-1 and -mno-cygwin switch

Gerrit P. Haase gerrit@familiehaase.de
Thu Jun 9 19:21:00 GMT 2005


David Rothenberger wrote:
> On 6/9/2005 11:15 AM, Dave Korn wrote:
> 
>> ----Original Message----
>>
>>> From: Christopher Faylor
>>> Sent: 09 June 2005 19:08
>>
>>
>>
>>> On Thu, Jun 09, 2005 at 11:05:40AM -0700, David Rothenberger wrote:
>>>
>>>> I ran Cygwin Setup today and noticed that gcc 3.4.4-1 had moved out of
>>>> test, so I upgraded it. I then tried to build the cygwin DLL and
>>>> utilites from CVS and ran into a problem compiling cygcheck.
>>>>
>>>> g++: installation problem, cannot exec 'cc1plus': No such file or
>>>> directory
>>>> I get the same error when compiling any program with the -mno-cygwin
>>>> switch. I passed the -v switch to gcc and noticed it was invoking
>>>> cc1plus without an absolute path, just "cc1plus ...."
>>>>
>>>> Was gcc 3.4.4-1 intentionally moved out of test? Is this a known
>>>> problem? I tried the latest mingw test packages but that didn't 
>>>> help. Do
>>>> I need to do something else? Should this be taken up with the mingw
>>>> group instead? Have I asked enough questions?
>>>
>>>
>>> I can't answer many of the above but this is not an issue for the mingw
>>> group.  It's a cygwin gcc configuration problem.
>>>
>>> cgf
>>
>>
>>
>>
>>   So the next question has to be 'What does "gcc -print-search-dirs" 
>> show,
>> and how does it compare to "gcc -mno-cygwin -print-search-dirs"?'
> 
> 
> % gcc -print-search-dirs
> install: /usr/lib/gcc/i686-pc-cygwin/3.4.4/
> programs: 
> =/bin/../lib/gcc/i686-pc-cygwin/3.4.4/:/bin/../lib/gcc/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/:/usr/libexec/gcc/i686-pc-cygwin/3.4.4/:/usr/libexec/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/:/bin/../lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/i686-pc-cygwin/3.4.4/:/bin/../lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ 
> 
> libraries: 
> =/bin/../lib/gcc/i686-pc-cygwin/3.4.4/:/bin/../lib/gcc/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/:/bin/../lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/i686-pc-cygwin/3.4.4/:/bin/../lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/lib/:/bin/../lib/gcc/i686-pc-cygwin/3.4.4/../../../i686-pc-cygwin/3.4.4/:/bin/../lib/gcc/i686-pc-cygwin/3.4.4/../../../:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../i686-pc-cygwin/3.4.4/:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../:/lib/i686-pc-cygwin/3.4.4/:/lib/:/usr/lib/i686-pc-cygwin/3.4.4/:/usr/lib/ 
> 
> 
> % gcc -mno-cygwin -print-search-dirs
> install: /usr/lib/gcc/i686-pc-mingw32/3.4.4/
> programs: 
> =/bin/../lib/gcc/i686-pc-mingw32/3.4.4/:/bin/../lib/gcc/:/usr/lib/gcc/i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/:/usr/lib/gcc/i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/:/usr/libexec/gcc/i686-pc-mingw32/3.4.4/:/usr/libexec/gcc/i686-pc-mingw32/:/usr/lib/gcc/i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/:/bin/../lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/i686-pc-mingw32/3.4.4/:/bin/../lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/:/usr/lib/gcc/i686-pc-mingw32/../../../i686-pc-mingw32/bin/i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/../../../i686-pc-mingw32/bin/ 
> 
> libraries: 
> =/bin/../lib/gcc/i686-pc-mingw32/3.4.4/:/bin/../lib/gcc/:/usr/lib/gcc/i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/3.4.4/:/bin/../lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/lib/i686-pc-mingw32/3.4.4/:/bin/../lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/lib/:/usr/lib/gcc/i686-pc-mingw32/../../../i686-pc-mingw32/lib/i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/../../../i686-pc-mingw32/lib/:/bin/../lib/gcc/i686-pc-mingw32/3.4.4/../../../i686-pc-mingw32/3.4.4/:/bin/../lib/gcc/i686-pc-mingw32/3.4.4/../../../:/usr/lib/gcc/i686-pc-mingw32/../../i686-pc-mingw32/3.4.4/:/usr/lib/gcc/i686-pc-mingw32/../../:/lib/i686-pc-mingw32/3.4.4/:/lib/:/usr/lib/i686-pc-mingw32/3.4.4/:/usr/lib/ 
> 
> 
> % ls /lib/gcc/i686-pc-mingw32
> 3.4.1
> 
> % cygcheck -cv | grep gcc
> Empty package gcc
> gcc                     3.4.4-1              OK
> gcc-core                3.4.4-1              OK
> gcc-g++                 3.4.4-1              OK
> Empty package gcc-mingw
> gcc-mingw               20040810-1           OK
> gcc-mingw-core          20040810-1           OK
> gcc-mingw-g++           20040810-1           OK
> 
> Same issue with test versions of gcc-mingw* packages.

Many thanks.

You're missing the gcc-mingw-* packages.

My bad, I missed to edit the setup.hint of gcc-mingw, will do this now.

[gerrit@sourceware ~]$ cat 
/var/ftp/pub/cygwin/release/gcc-mingw/gcc-mingw-g++/setup.hint
sdesc: "Mingw32 support headers and libraries for GCC C++"
category: Devel
requires: gcc-core gcc-g++
prev: 20031020-1
curr: 20040810-1
test: 20040822-1

Updated version should be available as soon as your mirror fetches the
new setup.hint files.


Sorry,
Gerrit
-- 
=^..^=

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