Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 1998 11:23:30 -0700
From:      "David O'Brien" <obrien@NUXI.com>
To:        trouble@webfyre.com
Cc:        ports@FreeBSD.ORG
Subject:   Re: FreeBSD & EGCS
Message-ID:  <19980718112330.B12875@nuxi.com>
In-Reply-To: <35AF292C.EE97F87D@iwebb.com>; from Support on Fri, Jul 17, 1998 at 05:36:28AM -0500
References:  <35AF292C.EE97F87D@iwebb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 17, 1998 at 05:36:28AM -0500, Support wrote:
> Ive noticed that you include egcs in the ports tree, so after reading
> about it, i did the make , and noticed tremendous amounts of warnings,
> during the build process, so then i started asking around, ive heard
> rumours that it wount even build a 2.2.6 kernel, if this alone is true
> and correct why is it even in the ports collect, when its actually
> really broken... Id love to use egcs because it does have much better

Building a runable kernel is always a stress-test for a compiler due to
the structure of the end executable and its total lack of ability to
tolerate certain bad code generation.

The problems with EGCS building a kernel are the same as for gcc28.  I
have a feeling that some of the problems are due to FreeBSD's a.out exec
format.  The compiler and tools community only want to support the ELF
exec format -- which is one of the reasons the upcomming 3.0 release will
be ELF based (or at least supported).

The C compiler from both of these ports still compiles most things fine
and give better warning messages.  The C++ compilers with these ports is
an order of magnitude better than G++ 2.7.2 which is very incompliant
with the ISO C++ spec.  Nor can 2.7.2 compile many of the examples from
Stroustrup's "The C++ Programming Language, 3rd Ed.".  This is especially
true for the STL and templets examples.  My current class project is not
compilable with G++ 2.7.2, but is with G++ 2.8.1 and the latest EGCS
port.

> optimizations from what ive read duuring research, yet id vbe afraid
> that a make world with egcs installed would possibly mean a complete
> re-install of FreeBSD, any thoughts ideas or suggestions would be
> appreciated....

You will NOT get fully through a ``make world'' with either EGCS or
gcc28.  Unless you are interested in heavy toolchain development, I would
stick with the stock compiler for ``make world''.
 
-- 
-- David    (obrien@NUXI.com  -or-  obrien@FreeBSD.org)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980718112330.B12875>