public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: silvio.matthes@xcom.de
To: gcc-help@gcc.gnu.org
Subject: gcc needs extreme compiling time for jaguar-cts-includes  [WatchDog checked]
Date: Thu, 28 Jun 2001 09:57:00 -0000	[thread overview]
Message-ID: <OFCAF77A27.39701533-ONC1256A79.005A5F36@xcom.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]


Hallo,

maybe that's a bit offtopic,
but I don't know where to send to otherwise (suggestions are welcome...)

I'm trying to compile an external client
for sybase's Jaguar CTS on a sun solaris 2.7 machine with gcc (2.95.3).

My Problem is, it compiles way too long and needs plenty of memory.
As soon as I add jaguar.hpp (thats a main includefile of Jaguar CTS API)
to the includes it needs 30minutes (its a E450 with 1GB of RAM) and needs
almost 1GB of memory.

The mentioned header includes several other header-files, altogether they
are about 3Megs of size.
Ok, that's a mass, but for comparison, on a windoze-machine with MSVC that
compiles in 1-2 minutes!

And that's only the headers. If I use the functions the headers define,
every call
needs memory at compiletime and I end up with a client of about 1700 lines,
which doesn't compile because after 2 hours a process called cc1plus needs
1.7Gig of Ram.
At this stage the system has not enough ram and probably kills the process
so that gcc says:
(...).h:1863: Internal compiler error.
(...).h:1863: Please submit a full bug report.
(...).h:1863: See <URL: http://www.gnu.org/software/gcc/bugs.html > for
instructions


These are my settings of compiler and linker (cut from makefile):

gcc -ggdb -O -w -I(...includes) -DDEBUG -D_REENTRANT -DJAG_NO_NAMESPACE -c
testclient.cpp -o testclient.o
/usr/local/bin/gcc -Xlinker -zmuldefs testclient.o -L(...libdirs) -ljcc
-lpthread -lnsl  -o testclient

I'll attach an example of the headers.


My Questions are:
- How could I prevent gcc from compiling this long, e.g. with some
compiler-switches?
- Does anyone have experiences with gcc 3.0? Could it solve the problem?

Thank you in advance,

Kind Regards,

Silvio Matthes
(See attached file: jagheadr.zip)
=?us-ascii?Q?jagheadr.zip?=


[-- Attachment #2: jagheadr.zip --]
[-- Type: application/zip, Size: 4800 bytes --]

             reply	other threads:[~2001-06-28  9:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-28  9:57 silvio.matthes [this message]
2001-06-29 20:22 ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFCAF77A27.39701533-ONC1256A79.005A5F36@xcom.de \
    --to=silvio.matthes@xcom.de \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).