Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c
@ 1995-12-27  5:00 Marc Goldburg
  1995-12-28  5:00 ` I-Chung Young
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marc Goldburg @ 1995-12-27  5:00 UTC (permalink / raw)



When linking gcc2.7.2-compiled objects on a Digital Unix 3.2c, the following
warnings appear

/usr/bin/ld:
Warning: Linking some objects which contain exception information sections
        and some which do not. This may cause fatal runtime exception handling
        problems (last obj encountered without exceptions was version.o).

gcc is configured as follows

        ./configure --build=alpha-dec-osf3.2 --prefix=/usr/local/gnu

The precise OS versions are

        Digital UNIX V3.2C  (Rev. 148); Fri Oct 27 19:48:58 PDT 1995 
        Digital UNIX V3.2C Worksystem Software (Rev. 148)

Proper exception handling, esp. for floating point exceptions, is important
in many of our applications.  Is there a fix available?

Thanks in advance,

Marc Goldburg

P.S. these errors can be seen during the build of the stage 2 gcc itself,
for example

stage1/xgcc -Bstage1/  -DIN_GCC   -g -O2   -o collect2 collect2.o  cplus-dem.o u
nderscore.o version.o obstack.o ` case "stage1/xgcc -Bstage1/" in "cc") echo "" 
;; esac `  -lmld
/usr/bin/ld:
Warning: Linking some objects which contain exception information sections
        and some which do not. This may cause fatal runtime exception handling
        problems (last obj encountered without exceptions was version.o).
--
ArrayComm, Inc.                                 Tel: (408) 428-9080
125 Nicholson Lane                              Fax: (408) 428-9083
San Jose, CA  95134                             E-mail: marcg@arraycomm.com




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

* Re: Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c
  1995-12-27  5:00 Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c Marc Goldburg
@ 1995-12-28  5:00 ` I-Chung Young
  1995-12-29  5:00 ` Mike Iglesias
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: I-Chung Young @ 1995-12-28  5:00 UTC (permalink / raw)


Marc Goldburg (marcg@alphonse.arraycomm.com) wrote:

: When linking gcc2.7.2-compiled objects on a Digital Unix 3.2c, the following
: warnings appear

: /usr/bin/ld:
: Warning: Linking some objects which contain exception information sections
:         and some which do not. This may cause fatal runtime exception handling
:         problems (last obj encountered without exceptions was version.o).

You might install GNU AS on your system. The installation of binutils
installs a copy of GNU AS under, according to your configure,
/usr/local/gnu/alpha-dec-osf3.2/bin. If you remove this copy, gcc
will not use it. It is fine with /bin/as. That is why it is not show
up on during stage1 compilation.

This copy of AS affects the current installation of gcc as well.

: gcc is configured as follows

:         ./configure --build=alpha-dec-osf3.2 --prefix=/usr/local/gnu

: The precise OS versions are

:         Digital UNIX V3.2C  (Rev. 148); Fri Oct 27 19:48:58 PDT 1995 
:         Digital UNIX V3.2C Worksystem Software (Rev. 148)

: Proper exception handling, esp. for floating point exceptions, is important
: in many of our applications.  Is there a fix available?

: Thanks in advance,

: Marc Goldburg

: P.S. these errors can be seen during the build of the stage 2 gcc itself,
: for example

: stage1/xgcc -Bstage1/  -DIN_GCC   -g -O2   -o collect2 collect2.o  cplus-dem.o u
: nderscore.o version.o obstack.o ` case "stage1/xgcc -Bstage1/" in "cc") echo "" 
: ;; esac `  -lmld
: /usr/bin/ld:
: Warning: Linking some objects which contain exception information sections
:         and some which do not. This may cause fatal runtime exception handling
:         problems (last obj encountered without exceptions was version.o).
: --
: ArrayComm, Inc.                                 Tel: (408) 428-9080
: 125 Nicholson Lane                              Fax: (408) 428-9083
: San Jose, CA  95134                             E-mail: marcg@arraycomm.com


--
I-Chung Young 			  	Software Specialist
young@cs.umass.edu			Research Computing Facilities
Tel: (413) 545-4367			University of Massachusetts
Fax: (413) 545-1249			LGRC A313, Computer Science
http://www.cs.umass.edu/~young/		Amherst, MA 01003





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

* Re: Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c
  1995-12-27  5:00 Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c Marc Goldburg
  1995-12-28  5:00 ` I-Chung Young
@ 1995-12-29  5:00 ` Mike Iglesias
  1995-12-29  5:00 ` Daniel S. Riley
  1996-01-02  5:00 ` Chrissy
  3 siblings, 0 replies; 5+ messages in thread
From: Mike Iglesias @ 1995-12-29  5:00 UTC (permalink / raw)


In article <MARCG.95Dec26165301@alphonse.arraycomm.com>,
Marc Goldburg <marcg@arraycomm.com> wrote:
>
>When linking gcc2.7.2-compiled objects on a Digital Unix 3.2c, the following
>warnings appear
>
>/usr/bin/ld:
>Warning: Linking some objects which contain exception information sections
>        and some which do not. This may cause fatal runtime exception handling
>        problems (last obj encountered without exceptions was version.o).

This patch is supposed to fix the problem.  Rebuild gcc after applying the
patch.

*** config/alpha/alpha.h~	Thu Jun 15 09:08:45 1995
- --- config/alpha/alpha.h	Fri Jun 23 13:09:21 1995
***************
*** 43,49 ****
  #define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}"
  
  /* No point in running CPP on our assembler output.  */
! #define ASM_SPEC "-nocpp %{pg}"
  
  /* Under OSF/1, -p and -pg require -lprof1.  */
  
- --- 43,49 ----
  #define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}"
  
  /* No point in running CPP on our assembler output.  */
! #define ASM_SPEC "-g3 -nocpp %{pg}"
  
  /* Under OSF/1, -p and -pg require -lprof1.  */


-- 
Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
University of California, Irvine     phone:       (714) 824-6926
Office of Academic Computing         FAX:         (714) 824-2069




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

* Re: Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c
  1995-12-27  5:00 Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c Marc Goldburg
  1995-12-28  5:00 ` I-Chung Young
  1995-12-29  5:00 ` Mike Iglesias
@ 1995-12-29  5:00 ` Daniel S. Riley
  1996-01-02  5:00 ` Chrissy
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel S. Riley @ 1995-12-29  5:00 UTC (permalink / raw)



In article <MARCG.95Dec26165301@alphonse.arraycomm.com>,
Marc Goldburg <marcg@arraycomm.com> wrote:
marcg> When linking gcc2.7.2-compiled objects on a Digital Unix 3.2c,
marcg> the following warnings appear

marcg> /usr/bin/ld:
marcg> Warning: Linking some objects which contain exception information
[...]

In article <4bvl3n$2b1@news.service.uci.edu>
iglesias@draco.acs.uci.edu (Mike Iglesias) writes:
iglesias> This patch is supposed to fix the problem.  Rebuild gcc
iglesias> after applying the patch.
[...]
iglesias> ! #define ASM_SPEC "-g3 -nocpp %{pg}"
  
This patch was the workaround for the mips-tfile problem on 3.2c with
gcc prior to 2.7.2.  A slightly more elaborate version of this patch
was incorporated into 2.7.2 so it is now obsolete, and certainly won't
fix the linker warnings.

You can suppress the linker warning by adding the undocumented flag
'-no_excpt' to the link specs, but this turns out to be a bad idea as
some third party products depend on exceptions working properly.

As far as I know the warning is harmless and the only cure I know of
isn't, so currently we just live with the warning message.
-- 
Dan Riley                          Internet:  dsr@lns598.lns.cornell.edu
Wilson Lab, Cornell University     HEPNET/SPAN: lns598::dsr (44630::dsr)
	      "Distance means nothing/To me." -Kate Bush



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

* Re: Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c
  1995-12-27  5:00 Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c Marc Goldburg
                   ` (2 preceding siblings ...)
  1995-12-29  5:00 ` Daniel S. Riley
@ 1996-01-02  5:00 ` Chrissy
  3 siblings, 0 replies; 5+ messages in thread
From: Chrissy @ 1996-01-02  5:00 UTC (permalink / raw)


Marc Goldburg (marcg@alphonse.arraycomm.com) wrote:

> When linking gcc2.7.2-compiled objects on a Digital Unix 3.2c, the following
> warnings appear
>
> /usr/bin/ld:
> Warning: Linking some objects which contain exception information sections
>         and some which do not. This may cause fatal runtime exception handling
>         problems (last obj encountered without exceptions was version.o).
>
> gcc is configured as follows
>
>         ./configure --build=alpha-dec-osf3.2 --prefix=/usr/local/gnu
>
> The precise OS versions are
>
>         Digital UNIX V3.2C  (Rev. 148); Fri Oct 27 19:48:58 PDT 1995 
>         Digital UNIX V3.2C Worksystem Software (Rev. 148)
>
> Proper exception handling, esp. for floating point exceptions, is important
> in many of our applications.  Is there a fix available?

I don't know if it will influence your applications, but I recently asked
the same question to somebody (not on usenet), and that person told me this
warning is normal, and that I didn't have to worry about it.

He gave me the following explanation: (liberally translated)
Some libraries contain files that have only declarations and no executable
code, and thus also do not contain exception handling code.

--
......................................................................
ask not what OO can do for you              ask what you can do for OO



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

end of thread, other threads:[~1996-01-02  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-27  5:00 Q: Link warnings with gcc 2.7.2 on Digital Unix 3.2c Marc Goldburg
1995-12-28  5:00 ` I-Chung Young
1995-12-29  5:00 ` Mike Iglesias
1995-12-29  5:00 ` Daniel S. Riley
1996-01-02  5:00 ` Chrissy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox