Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 1999 14:18:40 -0800 (PST)
From:      Alex Zepeda <garbanzo@hooked.net>
To:        Stefan Veith <veith@bigfoot.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Problems with egcs-1.1.1 port
Message-ID:  <Pine.BSF.4.05.9901161411360.991-100000@zippy.dyn.ml.org>
In-Reply-To: <36A09E81.8DF04971@bigfoot.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 16 Jan 1999, Stefan Veith wrote:

> I installed the egcs-1.1.1 port on my system (3.0-R) and tried to
> compile a programme which uses extentions. But I did not succed to
> compile it properly so far. The configure script of mico for example
> tries to test the extention capability of egcs and causes a core dump.

By extensions do you perhaps mean exceptions?

> Is this a known problem? Is there any possibility to compile programmes
> with extensions under FreeBSD?

Ok here's the deal.  Exceptions in egcs (and probably gcc 2.8) have their
own requirements.  Since they manipulate the stack, and attempt to be
thread safe, and all sorts of other fun stuff, etc, they've come up with
their own incompatable way of doing things.  This is fine, but requires
some tweaking of egcs 1.1.1 when you build it.  Not fun.

There is somewhat of a solution, and that is to use setjmp and longjmp to
handle exceptions.  You can do this by adding the switch -fsjlj-exceptions
to the CXXFLAGS before you run configure.

Also keep in mind that without any effort, shared libs are somewhat
broken, so to make sure mico builds, you'll want to use --disable-shared
on the configure command line.

What in the world are you trying to build that needs mico?  If it's
koffice, make sure you configure mico with --disable-ministl (or whatever
it's called to make sure that the half hearted implementation of the STL
isn't used).

- alex

| "Contrary to popular belief, penguins are not the salvation of modern  |
| technology.  Neither do they throw parties for the urban proletariat." |
| Powered by FreeBSD                            http://www.freebsd.org/  |


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901161411360.991-100000>