Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kho@scandpower.no (Knut Hovda)
Subject: Problems with exceptions in gcc 2.6.3 on Alpha with osf1 v3.2
Date: 1995/11/10	[thread overview]
Message-ID: <47vns5$j1l@ratatosk.uio.no> (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


-- 



             reply	other threads:[~1995-11-10  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-10  5:00 Knut Hovda [this message]
1995-11-20  5:00 ` Problems with exceptions in gcc 2.6.3 on Alpha with osf1 v3.2 Alex Martelli
read-only archive

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