This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Successful build of CVS GCC under Cygwin!
- To: "'Jan Reimers'" <janr at molienergy dot com>, "'Kelley Cook'" <Kelley dot Cook at home dot com>, gcc at gcc dot gnu dot org
- Subject: RE: Successful build of CVS GCC under Cygwin!
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Mon, 4 Dec 2000 22:39:19 -0000
I got it working a couple of weeks ago, is a rough and ready way, see
http://gcc.gnu.org/ml/gcc/2000-11/msg01042.html and follow up messages.
Some of these changes have been incorporated, often by changes to other
files. I suspect you need to ensure that
LIBS="-nodefaultlibs -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32
-lshell32"
when compiling the tests.
+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone: +61 3 9469 0642
FAX: +61 3 9462 2700
Email: David.Billinghurst@riotinto.com
> -----Original Message-----
> From: Jan Reimers [SMTP:janr@molienergy.com]
> Sent: Tuesday, 5 December 2000 6:26
> To: 'Kelley Cook'; gcc@gcc.gnu.org
> Subject: RE: Successful build of CVS GCC under Cygwin!
>
> Kelly,
> Thanks for the update, this is useful information. I followed
> your directions and 'make bootstrap' seemed to run ok. However when I run
> 'make -k check' all c++ tests fail with undefined references. Is this
> what you see?
>
> libtool: link: warning: `-no-install' is ignored for i586-pc-cygwin
> libtool: link: warning: assuming `-no-fast-install' instead
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/../../gcc/g++
> -B/usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/../../gcc/ -ggdb3
> -DDEBUG_ASSERT -ffunction-sections -fdata-sections -nostdinc++
> -I/usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/include
> -I../../../gcc/libstdc++-v3/include/std
> -I../../../gcc/libstdc++-v3/include/c -I../../../gcc/libstdc++-v3/include
> -I../../../gcc/libstdc++-v3/libsupc++ -I../../../gcc/libstdc++-v3/libio
> -I../../../gcc/libstdc++-v3/testsuite
> .../../../gcc/libstdc++-v3/testsuite/17_intro/header_ciso646.cc -o
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/testsuite/header_ciso646
> .st-exe -nodefaultlibs
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/src/../libsupc++/.libs/l
> ibsupc++.a
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/src/.libs/libstdc++.a
> -lgcc
> ../../../gcc/libstdc++-v3/testsuite/17_intro/header_ciso646.cc:0: warning:
> -ffunction-sections
> may affect debugging on some targets.
> /usr/lib/crt0.o(.text+0x39):crt0.c: undefined reference to `cygwin_crt0'
> /usr/home/c/TEMP/ccQXvWHi.o: In function `main':
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/../../../gcc/libstdc++-v
> 3/testsuite/17_intro/header_ciso646.cc:125: undefined reference to
> `__assert'
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/../../../gcc/libstdc++-v
> 3/testsuite/17_intro/header_ciso646.cc:125: undefined reference to
> `__assert'
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/../../../gcc/libstdc++-v
> 3/testsuite/17_intro/header_ciso646.cc:125: undefined reference to
> `__assert'
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/../../../gcc/libstdc++-v
> 3/testsuite/17_intro/header_ciso646.cc:125: undefined reference to
> `__assert'
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/../../../gcc/libstdc++-v
> 3/testsuite/17_intro/header_ciso646.cc:125: undefined reference to
> `__assert'
> /usr/home/c/TEMP/ccQXvWHi.o:/usr/home/d/src/build/i586-pc-cygwin/libstdc++
> -v3/../../../gcc/libstdc++-v3/testsuite/17_intro/header_ciso646.cc:125:
> more undefined references to `__assert' follow
> /usr/home/c/TEMP/ccQXvWHi.o: In function `main':
> /usr/home/d/src/build/i586-pc-cygwin/libstdc++-v3/../../../gcc/libstdc++-v
> 3/testsuite/17_intro/header_ciso646.cc:120: undefined reference to
> `__main'
> collect2: ld returned 1 exit status
>