public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building gcc under cygwin
@ 2001-03-20 11:28 Vivin Paliath
  2001-03-21 14:31 ` Alexandre Oliva
  0 siblings, 1 reply; 7+ messages in thread
From: Vivin Paliath @ 2001-03-20 11:28 UTC (permalink / raw)
  To: gcc-help

I am having problems building GCC under Cygwin.

I followed all the instructions, but it fails when it tries to make the 
native compiler (make bootstrap).

My toplevel directory is /usr. with-ld and with-as are set to 
/usr/i686-pc-cygwin/bin . It runs the make bootstrap for a while and then it 
fails with this error:

xgcc: installation error '/usr/i686-pc-cygwin/bin' no such file or directory

Do you have step by step instructions for building under Cygwin? Are there 
any quirks that I need to know about? Maybe I'm setting my paths up wrong or 
something... I haven't done much of this stuff before. I just want to get 
gcc working so that I can use gcj... (I tried installing libgcj and gcj but 
that gave even uglier errors...)

Thanks!

Vivin Suresh Paliath


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building gcc under cygwin
  2001-03-20 11:28 Building gcc under cygwin Vivin Paliath
@ 2001-03-21 14:31 ` Alexandre Oliva
  0 siblings, 0 replies; 7+ messages in thread
From: Alexandre Oliva @ 2001-03-21 14:31 UTC (permalink / raw)
  To: Vivin Paliath; +Cc: gcc-help

On Mar 20, 2001, "Vivin Paliath" <computer_maniac@hotmail.com> wrote:

> My toplevel directory is /usr. with-ld and with-as are set to
> /usr/i686-pc-cygwin/bin . It runs the make bootstrap for a while and
> then it fails with this error:

> xgcc: installation error '/usr/i686-pc-cygwin/bin' no such file or directory

with-ld  and with-as expect program names, not directory names.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Building GCC under Cygwin
@ 2003-11-02 11:13 Alex Besogonov
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Besogonov @ 2003-11-02 11:13 UTC (permalink / raw)
  To: gcc-help

Hello gcc-help,

I'm trying to build GCC (CVS HEAD) under Cywgin. I recieve this error, while
compiling libjava:
================================================================
./../../gcj/libjava/.././libjava/../gcc -I../../../gcj/libjava/../zlib -I../../.
./gcj/libjava/../libffi/include -I../libffi/include -O2 -g -O2 -fno-rtti -fnon-c
all-exceptions -fdollars-in-identifiers -Wswitch-enum -ffloat-store -I/usr/X11R6
/include -W -Wall -D_GNU_SOURCE -DPREFIX=\"/home/Alex/gcc-install/\" -DLIBDIR=\"
/home/Alex/gcc-install//lib\" -DBOOT_CLASS_PATH=\"/home/Alex/gcc-install//share/
java/libgcj-3.4.jar\" -g -O2 -Wp,-MD,.deps/resolve.pp -c ../../../gcj/libjava/re
solve.cc -o resolve.o
../../../gcj/libjava/resolve.cc: In function `void _Jv_PrepareClass(java::lang::Class*)':
../../../gcj/libjava/resolve.cc:591: error: `IViewObject2' is not a member of `java::lang::reflect::Modifier'
make[2]: *** [resolve.lo] Error 1
make[2]: Leaving directory `/home/Alex/gcc-build/i686-pc-cygwin/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Alex/gcc-build/i686-pc-cygwin/libjava'
make: *** [all-target-libjava] Error 2
================================================================

GCC is configured with this options:
================================================================
$ ../gcj/configure --prefix=/home/Alex/gcc-install/ \
  --enable-languages=c,c++,java \
  --enable-threads=win32 \
  --disable-nls \
  --disable-win32-registry \
  --disable-shared \
  --disable-debug \
  --disable-multilib \
  --without-newlib \
  --enable-libgcj \
  --enable-java-gc=boehm \
  --enable-interpreter \
  --enable-hash-synchronization
================================================================

-- 
Best regards,
 Alex Besogonov       mailto:cyberax@scb.udsu.ru


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Building GCC under Cygwin.
@ 2001-03-26 15:08 Vivin Suresh Paliath
  0 siblings, 0 replies; 7+ messages in thread
From: Vivin Suresh Paliath @ 2001-03-26 15:08 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3057 bytes --]

I'm having problems building gcc under cygwin. I 
was informed that Cygwin has gcc-2.95.2-6 and so it isn't necessary to do a 
'make bootstrap'. I did a normal make, but I am still not able to build it. This 
is what I have done:
 
my gcc source is in /srcdir/gcc-2.95.3
my build directory is /build
 
export 
MAKE_MODE=UNIX /srcdir/gcc-2.95.3/configure --prefix=/usr --with-gnu-as 
--with-gnu-ld --enable-threads=posix 2>&1 | tee configure.out make -w 
all-gcc install-gcc LANGUAGES="c c++ java" 2>&1 | tee 
make.out
 
The make fails with the following error 
message:
 
/build/gcc/xgcc -B/build/gcc/ 
-B/usr/i686-pc-cygwin32/bin/ -I/usr/i686-pc-cygwin32/include -O2 
-I/srcdir/gcc-2.95.3/gcc/../winsup/include -DIN_GCC -g -O2 -I./include -g1 
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions -I. 
-I/srcdir/gcc-2.95.3/gcc -I/srcdir/gcc-2.95.3/gcc/config 
-I/srcdir/gcc-2.95.3/gcc/../include -c \
-DL${name} /srcdir/gcc-2.95.3/gcc/libgcc2.c 
-o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; 
fi; \
ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_eh
In file included from 
gthr-default.h:1,
from 
/srcdir/gcc-2.95.3/gcc/gthr.h:98,
from 
/srcdir/gcc-2.95.3/gcc/libgcc2.c:3034:
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:40: 
parse error before `__gthread_once_t'
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:40: 
warning: data definition has no type or storage class
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:78: 
parse error before `*'
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:78: 
parse error before `)'
/srcdir/gcc-2.95.3/gcc/gthr-posix.h: In 
function `__gthread_key_create':
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:89: too 
many arguments to function `pthread_key_create'
/srcdir/gcc-2.95.3/gcc/gthr-posix.h: In 
function `__gthread_key_dtor':
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:97: 
incompatible type for argument 1 of `pthread_setspecific'
/srcdir/gcc-2.95.3/gcc/gthr-posix.h: In 
function `__gthread_key_delete':
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:105: 
incompatible type for argument 1 of `pthread_key_delete'
/srcdir/gcc-2.95.3/gcc/gthr-posix.h: In 
function `__gthread_getspecific':
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:111: 
incompatible type for argument 1 of `pthread_getspecific'
/srcdir/gcc-2.95.3/gcc/gthr-posix.h: In 
function `__gthread_setspecific':
/srcdir/gcc-2.95.3/gcc/gthr-posix.h:117: 
incompatible type for argument 1 of `pthread_setspecific'
/srcdir/gcc-2.95.3/gcc/libgcc2.c: In 
function `eh_context_initialize':
/srcdir/gcc-2.95.3/gcc/libgcc2.c:3171: 
syntax error before `once'
/srcdir/gcc-2.95.3/gcc/libgcc2.c:3175: 
`once' undeclared (first use in this function)
/srcdir/gcc-2.95.3/gcc/libgcc2.c:3175: (Each 
undeclared identifier is reported only once
/srcdir/gcc-2.95.3/gcc/libgcc2.c:3175: for 
each function it appears in.)
make[1]: *** [libgcc2.a] Error 
1
make[1]: Leaving directory 
`/build/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory 
`/build'
 
I am not sure what this means. This is the 
first time I am trying to compile gcc. Any help would be appreciated. 
Thanks!
 
Vivin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building gcc under cygwin
       [not found]   ` <OE24AyD7TfSr0fVwcdZ00000f2b@hotmail.com>
@ 2001-03-22 14:00     ` Lewin A.R.W. Edwards
  0 siblings, 0 replies; 7+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-22 14:00 UTC (permalink / raw)
  To: Vivin Suresh Paliath; +Cc: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

Hi Vivin,
Ok, then I hope you
can help me with my original problem!
 
I wanted to install GCJ originally, but the
library (libgcj) comes separately and is a pain to install. GCC has
everything in it, GCJ and Libgcj so I thought I would install that. But
this is where I am running into the problem.
 
I am doing this the first time! So how do I do
a normal build without bootstrap? Do I still have to run
configure?
You must configure the build tree, yes.
What I suggest you _try_ (and I haven't tested this) is (assuming your
gcc sources are in /usr/src/gcc):

mkdir /tmp/build/gcc
cd /tmp/build/gcc
export MAKE_MODE=UNIX
/usr/src/gcc/configure  --prefix=/tools --with-gnu-as --with-gnu-ld
2>&1 | tee configure.out

Look carefully at the start of the output, it will say "This
configuration is not supported in the following directories: ...." -
if it talks about gcj there then gcj isn't supported in cygwin.

If the configure worked, then
make -w all-gcc install-gcc LANGUAGES="c c++ java" 2>&1
| tee make.out

and hopefully it will work.


=== Lewin A.R.W. Edwards (Embedded Engineer)
Work:
http://www.digi-frame.com/
Personal:
http://www.zws.com/
and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein, 
Nie wird euch das Leben gewonnen sein."



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building gcc under cygwin
  2001-03-22 13:17 Vivin Suresh Paliath
@ 2001-03-22 13:21 ` Lewin A.R.W. Edwards
       [not found]   ` <OE24AyD7TfSr0fVwcdZ00000f2b@hotmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-22 13:21 UTC (permalink / raw)
  To: Vivin Suresh Paliath, gcc-help

Hello Vivin,

I am running into
problems building GCC under cygwin.
Is there something wrong with the way I have
set up paths or something?
I may have misunderstood the situation, but you shouldn't need to do a
make bootstrap, because cygwin comes with gcc 2.96.2 (or something like
that). So you can do a "normal" non-bootstrap build, which
might work for you.

Also, if you're building under Windows 95/98/Me - don't. It won't work
properly. You need Windows Nt 4.x or 5.x (2000).

95% of problems in cygwin stem from line-termination issues, by the
way...


=== Lewin A.R.W. Edwards (Embedded Engineer)
Work:
http://www.digi-frame.com/
Personal:
http://www.zws.com/
and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein, 
Nie wird euch das Leben gewonnen sein."



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Building gcc under cygwin
@ 2001-03-22 13:17 Vivin Suresh Paliath
  2001-03-22 13:21 ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 7+ messages in thread
From: Vivin Suresh Paliath @ 2001-03-22 13:17 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

I am running into problems building GCC under 
cygwin.
 
I ran the configure like this:
 
gcc/configure --prefix=/usr 
--with-as=/usr/i686-pc-cygwin/bin/as.exe 
--with-ld=/usr/i686-pc-cygwin/bin/ld.exe --enable-threads
 
It configured and everything, but when I run the 
make bootstrap, it runs for a while and then fails with this 
error:
 
gcc -c  -DIN_GCC     
-g  -DHAVE_CONFIG_H    -I. -I../gcc/gcc 
-I../gcc/gcc/config  -I../gcc/gcc/../include 
../gcc/gcc/cp/g++spec.c In file included from 
../gcc/gcc/cp/g++spec.c:22: ../gcc/gcc/system.h:491: libiberty.h: No such 
file or directory make[2]: *** [g++spec.o] Error 1 make[2]: Leaving 
directory `/objdir/gcc' make[1]: *** [bootstrap] Error 2 make[1]: Leaving 
directory `/objdir/gcc' make: *** [bootstrap] Error 2
 
Is there something wrong with the way I have set up 
paths or something?
 
Thanks!
 
-Vivin

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-11-02 11:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-20 11:28 Building gcc under cygwin Vivin Paliath
2001-03-21 14:31 ` Alexandre Oliva
2001-03-22 13:17 Vivin Suresh Paliath
2001-03-22 13:21 ` Lewin A.R.W. Edwards
     [not found]   ` <OE24AyD7TfSr0fVwcdZ00000f2b@hotmail.com>
2001-03-22 14:00     ` Lewin A.R.W. Edwards
2001-03-26 15:08 Building GCC under Cygwin Vivin Suresh Paliath
2003-11-02 11:13 Alex Besogonov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).