Bug 2912 - libunwind.h: No such file or directory
Summary: libunwind.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 2188 3076
  Show dependency treegraph
 
Reported: 2006-07-13 07:15 UTC by Yao Qi
Modified: 2006-07-27 19:37 UTC (History)
1 user (show)

See Also:
Host: powerpc-redhat-linux
Target: powerpc64-redhat-linux
Build: powerpc-redhat-linux
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yao Qi 2006-07-13 07:15:51 UTC
Check out frysk cvs head, and build it on FC5 for ppc64.  The error could seen
as follows,

make[3]: Entering directory `/home/qiyao/build-frysk-qiyao/frysk-imports'
source='../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx'
object='lib/unwind/cni/FrameCursor.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../frysk-qiyao/frysk-imports/depcomp \
g++ -m64 -DPACKAGE_NAME=\"frysk\" -DPACKAGE_TARNAME=\"frysk\"
-DPACKAGE_VERSION=\"0.0.1.2006.07.13\" -DPACKAGE_STRING=\"frysk\
0.0.1.2006.07.13\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"frysk\"
-DVERSION=\"0.0.1.2006.07.13\"  -I. -I../../frysk-qiyao/frysk-imports   
-I../../frysk-qiyao/frysk-imports -I.
-I../../frysk-qiyao/frysk-imports/../frysk-imports/elfutils/libelf
-I../../frysk-qiyao/frysk-imports/../frysk-imports/elfutils/libdw
-I../../frysk-qiyao/frysk-imports/../frysk-imports/elfutils/libdwfl
-I../../frysk-qiyao/frysk-imports/../frysk-imports/libunwind/include
-I./../frysk-imports/libunwind/include -Werror -Wall -fPIC  -g -O -c -o
lib/unwind/cni/FrameCursor.o
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:39:23: error:
libunwind.h: No such file or directory
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx: In member
function ¡®void lib::unwind::FrameCursor::create_frame_cursor(jlong)¡¯:
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:47: error:
¡®::unw_cursor_t¡¯ has not been declared
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:47: error:
¡®cursor¡¯ was not declared in this scope
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:47: error:
¡®::unw_cursor_t¡¯ has not been declared
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:47: error:
expected primary-expression before ¡®)¡¯ token
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:47: error:
expected `;' before ¡®_cursor¡¯
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:49: error:
¡®::unw_cursor_t¡¯ has not been declared
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:49: error:
¡®native_cursor¡¯ was not declared in this scope
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:49: error:
¡®::unw_cursor_t¡¯ has not been declared
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:49: error:
expected primary-expression before ¡®)¡¯ token
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:49: error:
expected `;' before ¡®JvMalloc¡¯
../../frysk-qiyao/frysk-imports/lib/unwind/cni/FrameCursor.cxx:52: error:
¡®::unw_cursor_t¡¯ has not been declared
make[3]: *** [lib/unwind/cni/FrameCursor.o] Error 1
make[3]: Leaving directory `/home/qiyao/build-frysk-qiyao/frysk-imports'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/qiyao/build-frysk-qiyao/frysk-imports'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/qiyao/build-frysk-qiyao/frysk-imports'
make: *** [all-recursive] Error 1
[qiyao@plinuxt18 build-frysk-qiyao]$
Comment 1 Yao Qi 2006-07-13 12:02:18 UTC
There is no such error when build frysk on x86.
It seems that libunwind do not support ppc64 now, and libunwind is not configured.
Comment 2 Rick Moseley 2006-07-27 19:37:40 UTC
We have setup the libunwind library to only compile on architectures that it
currently supports.  According to recent e-mails with Richard Henderson, he is
working on adding PPC/PPC64 support in the near future and will put that into
the libunwind when it is available.