delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/24/12:31:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <00c001c27b7a$2df59150$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: <cygwin AT cygwin DOT com>
Subject: [Bug: gcc-3.2-1] Cygwin DLL (CVS HEAD) build failure - gcc uses wrong include path order.
Date: Thu, 24 Oct 2002 17:27:00 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

I tried to build the Cygwin DLL from CVS, but ran into an error caused by
gcc inserting an unasked for "-isystem
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/w32api" into the
cpp0.exe command line. That path contracts to /usr/include/w32api - so gcc
uses the installed w32api, not the w32api in the source tree. And, tty.cc is
using GetConsoleWindow, which hasn't yet appeared in the latest released
w32api, so it is essential that the one from the source tree be used
instead.

This seems to be a bug in gcc-3.2-1. gcc2-2.95.3-10 gets further on in the
compile before hitting an undefined reference to dcgettext__ whilst making
dumper.exe, which has already been mentioned and diagnosed on list.

Max.

======================= Make output ============================
c++ -L/cygbuild/obj/i686-pc-cygwin/winsup -L/cygbuild/obj/i686-pc-cygwin/win
sup/cygwin -L/cygbuild/obj/i686-pc-cygwin/winsup/w32api/lib -isystem
/cygbuild/src/winsup/include -isystem
/cygbuild/src/winsup/cygwin/include -isystem
/cygbuild/src/winsup/w32api/include -isystem
/cygbuild/src/newlib/libc/sys/cygwin -isystem
/cygbuild/src/newlib/libc/sys/cygwin32 -B/cygbuild/obj/i686-pc-cygwin/newlib
/ -isystem /cygbuild/obj/i686-pc-cygwin/newlib/targ-include -isystem
/cygbuild/src/newlib/libc/include -c -nostdinc++ -nostdinc -DHAVE_CONFIG_H  
-g -O2 -Wall -Wwrite-strings -fno-common -pipe -Winline -fbuiltin  -I.  -I/c
ygbuild/src/winsup/cygwin    -I/cygbuild/src/newlib/libc/sys/cygwin/include 
 -I../../../../src/winsup/cygwin/config/i386 -I/usr/lib/gcc-lib/i686-pc-cygw
in/3.2//include -fno-rtti -fno-exceptions -o ./tty.o
../../../../src/winsup/cygwin/tty.cc
../../../../src/winsup/cygwin/tty.cc: In member function `int
   tty_list::allocate_tty(int)':
../../../../src/winsup/cygwin/tty.cc:196: `GetConsoleWindow' undeclared
(first
   use this function)
../../../../src/winsup/cygwin/tty.cc:196: (Each undeclared identifier is
   reported only once for each function it appears in.)
make[2]: *** [tty.o] Error 1
make[2]: Leaving directory `/cygbuild/obj/i686-pc-cygwin/winsup/cygwin'
make[1]: *** [cygwin] Error 1
make[1]: Leaving directory `/cygbuild/obj/i686-pc-cygwin/winsup'
make: *** [all-target-winsup] Error 2
======================= make CFLAGS='-E -v' tty.o ======================
c++ -L/cygbuild/obj/i686-pc-cygwin/winsup -L/cygbuild/obj/i686-pc-cygwin/win
sup/cygwin -L/cygbuild/obj/i686-pc-cygwin/winsup/w32api/lib -isystem
/cygbuild/src/winsup/include -isystem
/cygbuild/src/winsup/cygwin/include -isystem
/cygbuild/src/winsup/w32api/include -isystem
/cygbuild/src/newlib/libc/sys/cygwin -isystem
/cygbuild/src/newlib/libc/sys/cygwin32 -B/cygbuild/obj/i686-pc-cygwin/newlib
/ -isystem /cygbuild/obj/i686-pc-cygwin/newlib/targ-include -isystem
/cygbuild/src/newlib/libc/include -c -nostdinc++ -nostdinc -DHAVE_CONFIG_H  
-E -v -MMD -fbuiltin  -Wall -Wwrite-strings -fno-common -pipe -Winline -fbui
ltin  -I.  -I/cygbuild/src/winsup/cygwin    -I/cygbuild/src/newlib/libc/sys/
cygwin/include  -I../../../../src/winsup/cygwin/config/i386 -I/usr/lib/gcc-l
ib/i686-pc-cygwin/3.2//include -fno-rtti -fno-exceptions -o ./tty.o
../../../../src/winsup/cygwin/tty.cc
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with:
/netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,java --enable-l
ibgcj --enable-threads=posix --with-system-zlib --enable-nls --without-inclu
ded-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version
-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-
cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/u
sr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --l
ibexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)

/usr/lib/gcc-lib/i686-pc-cygwin/3.2/cpp0.exe -lang-c++ -D__GNUG__=3 -D__DEPR
ECATED -nostdinc++ -nostdinc -v -I. -I/cygbuild/src/winsup/cygwin -I/cygbuil
d/src/newlib/libc/sys/cygwin/include -I../../../../src/winsup/cygwin/config/
i386 -I/usr/lib/gcc-lib/i686-pc-cygwin/3.2//include -isystem
/cygbuild/obj/i686-pc-cygwin/newlib/include -MMD
./tty.d -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_
VERSION=102 -D_X86_=1 -D_X86_=1 -Asystem=winnt -D__NO_INLINE__ -D__STDC_HOST
ED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ 
-D__tune_pentiumpro__ -D__tune_pentium2__ -D__tune_pentium3__ -D__stdcall=__
attribute__((__stdcall__)) -D__fastcall=__attribute__((__fastcall__)) -D__cd
ecl=__attribute__((__cdecl__)) -D_stdcall=__attribute__((__stdcall__)) -D_fa
stcall=__attribute__((__fastcall__)) -D_cdecl=__attribute__((__cdecl__)) -D_
_declspec(x)=__attribute__((x)) -D__i386__ -D__i386 -D__CYGWIN32__ -D__CYGWI
N__ -Dunix -D__unix__ -D__unix -isystem
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/w32api -isystem
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/lib/../../inc
lude/w32api -DHAVE_CONFIG_H -isystem /cygbuild/src/winsup/include -isystem
/cygbuild/src/winsup/cygwin/include -isystem
/cygbuild/src/winsup/w32api/include -isystem
/cygbuild/src/newlib/libc/sys/cygwin -isystem
/cygbuild/src/newlib/libc/sys/cygwin32 -isystem
/cygbuild/obj/i686-pc-cygwin/newlib/targ-include -isystem
/cygbuild/src/newlib/libc/include ../../../../src/winsup/cygwin/tty.cc -o
./tty.o -Wall -Wwrite-strings -Winline
ignoring nonexistent directory "/cygbuild/obj/i686-pc-cygwin/newlib/include"
ignoring nonexistent directory "/cygbuild/src/winsup/include"
ignoring nonexistent directory "/cygbuild/src/newlib/libc/sys/cygwin32"
GNU CPP version 3.2 20020818 (prerelease) (cpplib) (80386, BSD syntax)
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 .
 /cygbuild/src/winsup/cygwin
 /cygbuild/src/newlib/libc/sys/cygwin/include
 ../../../../src/winsup/cygwin/config/i386
 /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include
 /usr/include/w32api
 /cygbuild/src/winsup/cygwin/include
 /cygbuild/src/winsup/w32api/include
 /cygbuild/src/newlib/libc/sys/cygwin
 /cygbuild/obj/i686-pc-cygwin/newlib/targ-include
 /cygbuild/src/newlib/libc/include
End of search list.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019