From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a8a536815abc3aa3,start X-Google-Attributes: gid11318c,public X-Google-Thread: 1164f8,a8a536815abc3aa3,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,a8a536815abc3aa3,start X-Google-Attributes: gidfee84,public 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 Message-ID: <47vns5$j1l@ratatosk.uio.no>#1/1 X-Deja-AN: 119077096 sender: janchr@holt.nr.no (Jan Christian Kerlefsen) organization: Scandpower A/S, International Consultants keywords: gcc, Alpha, osf1 newsgroups: comp.sys.dec,gnu.gcc.help,comp.unix.osf.osf1 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 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 --