blob: d43e4b193b73a158aa8b293a9033d15812bb5d98 [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!davidmdef37e72005-05-03 09:13:17 +00003This is version 0.99 of the unwind library. This library supports
4several architecture/operating-system combinations:
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +00005
hp.com!davidmdef37e72005-05-03 09:13:17 +00006 Linux/IA-64: Fully tested and supported.
7 Linux/x86-64: Works well.
8 Linux/x86: Works well, but C library is missing some unwind-info.
9 Linux/PARISC: Works well, but C library missing unwind-info.
10 HP-UX/IA-64: Mostly works but known to have some serious limitations.
David Mosberger-Tang955d1272007-08-06 20:26:50 -060011 Linux/PPC64: Newly added.
(none)!davidme9892bb2004-04-23 01:32:43 +000012
(none)!davidme9892bb2004-04-23 01:32:43 +000013
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000014* General Build Instructions
15
16In general, this library can be built and installed with the following
17commands:
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000018
mostang.com!davidm354f1c72002-02-23 20:27:03 +000019 $ ./configure
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000020 $ make
21 $ make install prefix=PREFIX
22
mostang.com!davidm354f1c72002-02-23 20:27:03 +000023where PREFIX is the installation prefix. By default, a prefix of
24/usr/local is used, such that libunwind.a is installed in
25/usr/local/lib and unwind.h is installed in /usr/local/include. For
26testing, you may want to use a prefix of /usr/local instead.
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +000027
hp.com!davidm3f9c0bc2003-09-24 21:51:53 +000028
hp.com!davidmef00f952003-11-27 07:17:47 +000029* Building with Intel compiler
30
hp.com!davidm75b67192004-10-15 13:37:27 +000031** Version 8 and later
32
33Starting with version 8, the preferred name for the IA-64 Intel
34compiler is "icc" (same name as on x86). Thus, the configure-line
35should look like this:
36
37 $ ./configure CC=icc CFLAGS="-g -O3 -ip" CXX=icc CCAS=gcc CCASFLAGS=-g \
38 LDFLAGS="-L$PWD/src/.libs"
39
hp.com!davidmdef37e72005-05-03 09:13:17 +000040
mostang.com!davidm8d057cb2003-04-03 07:59:15 +000041* Building on HP-UX
42
43For the time being, libunwind must be built with GCC on HP-UX.
mostang.com!davidmf2b40602004-05-04 22:24:50 +000044
45libunwind should be configured and installed on HP-UX like this:
46
47 $ ./configure CFLAGS="-g -O2 -mlp64" CXXFLAGS="-g -O2 -mlp64"
48
49Caveat: Unwinding of 32-bit (ILP32) binaries is not supported
50 at the moment.
51
52** Workaround for older versions of GCC
53
54GCC v3.0 and GCC v3.2 ship with a bad version of sys/types.h. The
55workaround is to issue the following commands before running
56"configure":
mostang.com!davidm8d057cb2003-04-03 07:59:15 +000057
58 $ mkdir $top_dir/include/sys
59 $ cp /usr/include/sys/types.h $top_dir/include/sys
60
mostang.com!davidmf2b40602004-05-04 22:24:50 +000061GCC v3.3.2 or later have been fixed and do not require this
62workaround.
hp.com!davidmef00f952003-11-27 07:17:47 +000063
hp.com!davidmdef37e72005-05-03 09:13:17 +000064
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000065* Regression Testing
66
67After building the library, you can run a set of regression tests with:
68
69 $ make check
70
hp.com!davidmef00f952003-11-27 07:17:47 +000071** Expected results on IA-64 Linux
72
hp.com!davidmb8e952c2003-11-19 23:15:58 +000073Unless you have a very recent C library and compiler installed, it is
hp.com!davidmef00f952003-11-27 07:17:47 +000074currently expected to have the following tests fail on IA-64 Linux:
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000075
hp.com!davidmb8e952c2003-11-19 23:15:58 +000076 Gtest-init (should pass starting with glibc-2.3.x/gcc-3.4)
77 Ltest-init (should pass starting with glibc-2.3.x/gcc-3.4)
78 test-ptrace (should pass starting with glibc-2.3.x/gcc-3.4)
79 run-ia64-test-dyn1 (should pass starting with glibc-2.3.x)
80
81This does not mean that libunwind cannot be used with older compilers
82or C libraries, it just means that for certain corner cases, unwinding
83will fail. Since they're corner cases, it is not likely for
84applications to trigger them.
mostang.com!davidm594e7eb2003-03-28 07:43:22 +000085
hp.com!davidm75b67192004-10-15 13:37:27 +000086Note: If you get lots of errors in Gia64-test-nat and Lia64-test-nat, it's
87 almost certainly a sign of an old assembler. The GNU assembler used
88 to encode previous-stack-pointer-relative offsets incorrectly.
89 This bug was fixed on 21-Sep-2004 so any later assembler will be
90 fine.
91
hp.com!davidmef00f952003-11-27 07:17:47 +000092** Expected results on x86 Linux
93
94The following tests are expected to fail on x86 Linux:
95
David Mosberger-Tang955d1272007-08-06 20:26:50 -060096 Gtest-resume-sig (fails to get SIGUSR2)
97 Ltest-resume-sig (likewise)
hp.com!davidmdef37e72005-05-03 09:13:17 +000098 Gtest-dyn1 (no dynamic unwind info support yet)
99 Ltest-dyn1 (no dynamic unwind info support yet)
100 test-setjmp (longjmp() not implemented yet)
101 run-check-namespace (no _Ux86_getcontext yet)
David Mosberger-Tang955d1272007-08-06 20:26:50 -0600102 test-ptrace
hp.com!davidmdef37e72005-05-03 09:13:17 +0000103
104** Expected results on x86-64 Linux
105
106The following tests are expected to fail on x86-64 Linux:
107
108 Gtest-dyn1 (no dynamic unwind info support yet)
109 Ltest-dyn1 (no dynamic unwind info support yet)
110 Gtest-init (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18743)
111 Ltest-init (likewise)
112 test-async-sig (crashes due to bad unwind-info?)
113 test-setjmp (longjmp() not implemented yet)
114 run-check-namespace (no _Ux86_64_getcontext yet)
115 run-ptrace-mapper (??? investigate)
116 run-ptrace-misc (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18748
117 and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18749)
118
119** Expected results on PARISC Linux
120
121Caveat: GCC v3.4 or newer is needed on PA-RISC Linux. Earlier
122versions of the compiler failed to generate the exception-handling
123program header (GNU_EH_FRAME) needed for unwinding.
124
125The following tests are expected to fail on x86-64 Linux:
126
127 Gtest-bt (backtrace truncated at kill() due to lack of unwind-info)
128 Ltest-bt (likewise)
129 Gtest-resume-sig (Gresume.c:my_rt_sigreturn() is wrong somehow)
130 Ltest-resume-sig (likewise)
131 Gtest-init (likewise)
132 Ltest-init (likewise)
133 Gtest-dyn1 (no dynamic unwind info support yet)
134 Ltest-dyn1 (no dynamic unwind info support yet)
135 test-setjmp (longjmp() not implemented yet)
136 run-check-namespace (toolchain doesn't support HIDDEN yet)
hp.com!davidmef00f952003-11-27 07:17:47 +0000137
138** Expected results on HP-UX
139
mostang.com!davidmf2b40602004-05-04 22:24:50 +0000140"make check" is currently unsupported for HP-UX. You can try to run
141it, but most tests will fail (and some may fail to terminate). The
142only test programs that are known to work at this time are:
143
144 tests/bt
145 tests/Gperf-simple
146 tests/test-proc-info
147 tests/test-static-link
148 tests/Gtest-init
149 tests/Ltest-init
150 tests/Gtest-resume-sig
151 tests/Ltest-resume-sig
hp.com!davidmef00f952003-11-27 07:17:47 +0000152
mostang.com!davidm065d4552004-01-21 06:36:35 +0000153* Performance Testing
154
155This distribution includes a few simple performance tests which give
156some idea of the basic cost of various libunwind operations. After
157building the library, you can run these tests with the following
158commands:
159
160 $ cd tests
161 $ make perf
162
mostang.com!davidm594e7eb2003-03-28 07:43:22 +0000163* Contacting the Developers
164
mostang.com!davidm7fbfe0a2002-02-15 23:22:05 +0000165Please direct all questions regarding this library to:
166
167 libunwind@linux.hpl.hp.com
168
169For spam protection, you'll have to subscribe to this list before
170posting a question. You can do this by sending a mail to
171libunwind-request@linux.hpl.hp.com with a body of:
172
173 subscribe libunwind
174
175Note: the host that is running this list is behind a firewall, so
176you'll not be able to use the Web interface to manage your
177subscription. Send a mail containing "help" to
178libunwind-request@linux.hpl.hp.com for information on how to manage
179your subscription via email.