blob: b0a022fa28afcce6ee8245d6dbc8d1cb5ad8a291 [file] [log] [blame]
mostang.com!davidm594e7eb2003-03-28 07:43:22 +00001-*- mode: Outline -*-
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +00002
hp.com!davidm758078f2004-04-20 16:53:44 +00003This is version 0.97 of the unwind library. At the moment, only the
4IA-64 Linux (IPF Linux) platform is fully supported. Some basic
hp.com!davidmef00f952003-11-27 07:17:47 +00005support for x86 and HP-UX/IPF exists also. However, the x86 support
hp.com!davidm758078f2004-04-20 16:53:44 +00006is based mostly on the frame-chain and does not reliably use unwind
7information yet, so its utility is limited. Similarly, the HP-UX/IPF
hp.com!davidmef00f952003-11-27 07:17:47 +00008support is incomplete, though it is sufficient to do a basic
9backtrace. unw_resume() is not supported, however.
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000010
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000011* General Build Instructions
12
13In general, this library can be built and installed with the following
14commands:
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000015
mostang.com!davidm354f1c72002-02-23 20:27:03 +000016 $ ./configure
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000017 $ make
18 $ make install prefix=PREFIX
19
mostang.com!davidm354f1c72002-02-23 20:27:03 +000020where PREFIX is the installation prefix. By default, a prefix of
21/usr/local is used, such that libunwind.a is installed in
22/usr/local/lib and unwind.h is installed in /usr/local/include. For
23testing, you may want to use a prefix of /usr/local instead.
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000024
hp.com!davidm3f9c0bc2003-09-24 21:51:53 +000025
hp.com!davidmef00f952003-11-27 07:17:47 +000026* Building with Intel compiler
27
28** Up to version 7
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000029
30To build libunwind with the Intel Electron compiler (ECC), it is
31recommended to run configure like this:
32
33 $ ./configure CC=ecc CXX=ecc CCAS=gcc
34
35The reason for this is that ECC uses the Intel assembler, which
36doesn't grok some of the IA-64 assembly code in the "tests" directory.
37
38For an ECC-built version of libunwind to work properly, you also need
39to ensure that /usr/include/asm/fpu.h contains a "long double" member
40called "__dummy" in the declaration of "struct ia64_fpreg". Without
41that member, variables of type unw_context_t won't be aligned
42properly.
43
hp.com!davidmef00f952003-11-27 07:17:47 +000044** Version 8 and later
45
46Starting with version 8, the preferred name for the IA-64 Intel
47compiler is "icc" (same name as on x86). Thus, the configure-line
48should look like this:
49
hp.com!davidm758078f2004-04-20 16:53:44 +000050 $ ./configure CC=icc CFLAGS="-g -O3 -ip" CXX=icc CCAS=gcc CCASFLAGS=-g \
51 LDFLAGS="-L$PWD/src/.libs"
hp.com!davidmef00f952003-11-27 07:17:47 +000052
mostang.com!davidm8d057cb2003-04-03 07:59:15 +000053* Building on HP-UX
54
55For the time being, libunwind must be built with GCC on HP-UX.
hp.com!davidmef00f952003-11-27 07:17:47 +000056Unfortunately, gcc-3.0 and gcc-3.2 ship with a bad version of
57sys/types.h. The workaround for this is:
mostang.com!davidm8d057cb2003-04-03 07:59:15 +000058
59 $ mkdir $top_dir/include/sys
60 $ cp /usr/include/sys/types.h $top_dir/include/sys
61
hp.com!davidmef00f952003-11-27 07:17:47 +000062Apart from this glitch, libunwind should configure and install on
63HP-UX like this:
64
65 $ ./configure CFLAGS="-g -O2 -mlp64"
66
67Caveat: Unwinding of 32-bit (ILP32) binaries is not supported
68 at the moment.
69
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000070* Regression Testing
71
72After building the library, you can run a set of regression tests with:
73
74 $ make check
75
hp.com!davidmef00f952003-11-27 07:17:47 +000076** Expected results on IA-64 Linux
77
hp.com!davidmb8e952c2003-11-19 23:15:58 +000078Unless you have a very recent C library and compiler installed, it is
hp.com!davidmef00f952003-11-27 07:17:47 +000079currently expected to have the following tests fail on IA-64 Linux:
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000080
hp.com!davidmb8e952c2003-11-19 23:15:58 +000081 Gtest-init (should pass starting with glibc-2.3.x/gcc-3.4)
82 Ltest-init (should pass starting with glibc-2.3.x/gcc-3.4)
83 test-ptrace (should pass starting with glibc-2.3.x/gcc-3.4)
84 run-ia64-test-dyn1 (should pass starting with glibc-2.3.x)
85
86This does not mean that libunwind cannot be used with older compilers
87or C libraries, it just means that for certain corner cases, unwinding
88will fail. Since they're corner cases, it is not likely for
89applications to trigger them.
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000090
hp.com!davidmef00f952003-11-27 07:17:47 +000091** Expected results on x86 Linux
92
93The following tests are expected to fail on x86 Linux:
94
95 test-proc-info (x86 unwinder doesn't use unwind-info yet)
96 Gtest-exc (unw_resume() not implmented yet)
97 Ltest-exc (unw_resume() not implmented yet)
98 test-setjmp (unw_resume() not implmented yet)
99
100** Expected results on HP-UX
101
102"make check" is currently unsupported for HP-UX. The only test
103programs that are known to work at this time are tests/bt (which
104produces various backtraces) and tests/Gperf-simple, which does some
105simple performance measurements.
106
mostang.com!davidm065d4552004-01-21 06:36:35 +0000107* Performance Testing
108
109This distribution includes a few simple performance tests which give
110some idea of the basic cost of various libunwind operations. After
111building the library, you can run these tests with the following
112commands:
113
114 $ cd tests
115 $ make perf
116
mostang.com!davidm594e7eb2003-03-28 07:43:22 +0000117* Contacting the Developers
118
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +0000119Please direct all questions regarding this library to:
120
121 libunwind@linux.hpl.hp.com
122
123For spam protection, you'll have to subscribe to this list before
124posting a question. You can do this by sending a mail to
125libunwind-request@linux.hpl.hp.com with a body of:
126
127 subscribe libunwind
128
129Note: the host that is running this list is behind a firewall, so
130you'll not be able to use the Web interface to manage your
131subscription. Send a mail containing "help" to
132libunwind-request@linux.hpl.hp.com for information on how to manage
133your subscription via email.