Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Problems with exceptions in gcc 2.6.3 on Alpha with osf1 v3.2
@ 1995-11-10  5:00 Knut Hovda
  1995-11-20  5:00 ` Alex Martelli
  0 siblings, 1 reply; 2+ messages in thread
From: Knut Hovda @ 1995-11-10  5:00 UTC (permalink / raw)


This message applies to gcc 2.6.3, Dec Alpha and osf1.

When linking on osf1 v3.2 (Dec UNIX), I get the message:

/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 
    /system/madeira_3c/pubdom/osf1/lib/gcc-lib/alpha-dec-osf3.2/2.6.3/libgcc.a).

This happens for all programs, even a small 'hello world' program compiled and
linked with the command 'g++ hello.cc'. The executable still runs fine, though.
The small c++ test program:

   #include <iostream.h>
   int main()
   {
       cout << "Hello, World!\n";
   }

In case it may be of interest/relevance, here's my experience with
gcc 2.6.3 on osf1 v1.3 and osf1 v3.2:

1. At first, we only had osf1 v1.3. All programs compiled and linked fine.

2. Then we got another machine with osf1 v3.2. Executables compiled on
   v1.3 ran fine on v3.2.

3. Next, I used gcc compiled on v1.3 to compile a program on v3.2.
   When linking, I got the above warning. The executable still 
   ran fine on v3.2 (I never tested it on 1.3)

4. To try to solve the linking problem, I compiled gcc itself on v3.2. When 
   linking a test program on v3.2, I still got the same warning as above.
   The resulting executable runs on v3.2, but crashes on v1.3 with:

    8285:a.out: /sbin/loader: Error: unresolvable symbol in a.out: __lc_ctype
    8285:a.out: /sbin/loader: Fatal Error: this executable has unresolvable symbols

5. When using the v3.2-created gcc on v1.3 to compile and link the
   test program, I got the error:

   8262:/system/madeira_3c/pubdom/osf1/bin/gcc: /sbin/loader: Error: unresolvable
     symbol in /system/madeira_3c/pubdom/osf1/bin/gcc: __lc_ctype
   8262:/system/madeira_3c/pubdom/osf1/bin/gcc: /sbin/loader: Fatal Error: this 
     executable has unresolvable symbols

So in a way, everything was better in the old days...

My questions are:

1. Is there a way to make gcc 2.6.3 work with osf1 v3.2 without getting 
   warnings from the linker? Do I need to install the Gnu assembler/linker?
   Is this warning important at all?

2. Is there any chance the installation on v3.2 also will work on v1.3,
   or do I need two separate installations?

3. Will gcc 2.7.0 solve any of these problems?

In advance, thanks for your help.

Yours,

--
Knut Hovda                                      E-mail: kho@scandpower.no
Consultant, Software Development                Phone: +47 63 81 49 20
Division for Nuclear and Petroleum Engineering  Fax: +47 63 81 88 22
Scandpower A/S, International Consultants       Address: P.O. Box 3
--                                              N-2007 Kjeller, NORWAY


-- 



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

* Re: Problems with exceptions in gcc 2.6.3 on Alpha with osf1 v3.2
  1995-11-10  5:00 Problems with exceptions in gcc 2.6.3 on Alpha with osf1 v3.2 Knut Hovda
@ 1995-11-20  5:00 ` Alex Martelli
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Martelli @ 1995-11-20  5:00 UTC (permalink / raw)


kho@scandpower.no (Knut Hovda) writes:
	...
>When linking on osf1 v3.2 (Dec UNIX), I get the message:

>/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 

Yep, I've grown QUITE used to this warning over the last few months...

>This happens for all programs, even a small 'hello world' program compiled and
>linked with the command 'g++ hello.cc'. The executable still runs fine, though.

Yep, they do (we don't use exceptions, yet, anyway...).

>1. Is there a way to make gcc 2.6.3 work with osf1 v3.2 without getting 
>   warnings from the linker? Do I need to install the Gnu assembler/linker?
>   Is this warning important at all?

IS there a GNU gas and ld that will support Alpha w/OSF1 3.2...?!  I
didn't know -- DO tell...!  The warning may not be important, but
it's still a big bother, and the waste of time in collect2's having
to link twice would be avoidable if we could install a GNU ld...!

>3. Will gcc 2.7.0 solve any of these problems?

I get this warning under 2.7.0 AND 2.7.1 too, so, alas, no -- it's
surely an assembler and/or linker weirdness, and the compiler can,
I think, do nothing about it...


Alex
--
DISCLAIMER: these are TOTALLY personal opinions and viewpoints, NOT connected
in any way with my employer, nor any other organization or individual!
Email: martelli@cadlab.it                            Phone: +39 (51) 597313
CAD.LAB s.p.a., v. Ronzani 7/29, Casalecchio, Italia   Fax: +39 (51) 597120



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

end of thread, other threads:[~1995-11-20  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-10  5:00 Problems with exceptions in gcc 2.6.3 on Alpha with osf1 v3.2 Knut Hovda
1995-11-20  5:00 ` Alex Martelli

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