Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 1999 00:45:45 +0300
From:      Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
To:        John Polstra <jdp@polstra.com>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, John Polstra <jdp@FreeBSD.org>
Subject:   Re: cvs commit: src/lib/csu/i386-elf Makefile crtbegin.c crtend. 
Message-ID:  <199903142145.AAA03550@tejblum.dnttm.rssi.ru>
In-Reply-To: Your message of "Sun, 14 Mar 1999 11:34:15 PST." <XFMail.990314113415.jdp@polstra.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
John Polstra wrote:
> Dmitrij Tejblum wrote:
> > John Polstra wrote:
> >>   Modified files:
> >>     lib/csu/i386-elf     Makefile crtbegin.c crtend.c 
> >>   
> >>   Remove "-Wno-unused" from the Makefile.  Replace it with "__unused"
> >>   on particular function and variable declarations.
> > 
> > Ah! This is the thing that breaks world (namely, groff) with -O3. gcc 
> > eliminate the "unused" code completely, and you cannot fix it by 
> > -Wno-unused or by __unused.
> 
> Ouch!  That's no good.
> 
> Let me make sure I understand what you're saying.  The change above
> didn't cause the breakage, it only helped you to figure out what was
> wrong.  Is that correct?

Yes, exactly.

> Could you please send me the make world output from where the
> build dies?  I want to be sure about the details.  Once I'm sure I
> understand it, I'll add some stuff to make sure that the compiler
> can't be quite so smart.

Well, I never did that personally, but it is really known failure. 
It usually looks like this:

===> share/doc/psd
===> share/doc/psd/title
touch _stamp.extraobjs
(cd /usr/src/share/doc/psd/title; groff -mtty-char -Tascii -ms -o1- /usr/src/share/doc/psd/title/Title) |  gzip -cn > Title.ascii.gz
groff: can't find `DESC' file
groff:fatal error: invalid device `ascii'

Example mail:

Message-ID: <36B812EC.9D2279A5@tpgi.com.au>
Date: Wed, 03 Feb 1999 20:12:12 +1100
From: Eddie Irvine <eirvine@tpgi.com.au>

(Then usually Mike Smith explain that everything other than -O is 
broken because gcc is buggy)

Some people go further and run groff's configure script. The configure 
script tell that static constructors/destructors are not called.

Examples:

Message-ID: <19980918190509.A2708@radio-do.de>
Date: Fri, 18 Sep 1998 19:05:09 +0200
From: Frank Nobis <fn@radio-do.de>

Message-ID: <XFMail.981014212348.lh@aus.org>
Date: Wed, 14 Oct 1998 21:23:48 -0400 (EDT)
From: Luke <lh@aus.org>

I attach one of them to the end of my message.

Dima

-----------------------------------------------------------------



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