libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] arm cross compile: files in src/unwind not compiled


From: Richard Zhao
Subject: [Libunwind-devel] arm cross compile: files in src/unwind not compiled
Date: Thu, 30 Oct 2008 18:45:41 +0800

Hi all,

I'm trying to cross-compile libunwind because my toolchain doesn't
have unwind feature. But I found files under src/unwind aren't
compiles, and causes many symbols are undefined.

#export CC=arm-iwmmxt-linux-gnueabi-gcc
# ./configure --host=arm-linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-linux-gcc... arm-iwmmxt-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-iwmmxt-linux-gnueabi-gcc accepts -g... yes
checking for arm-iwmmxt-linux-gnueabi-gcc option to accept ISO C89...
none needed
checking for style of include used by make... GNU
checking dependency style of arm-iwmmxt-linux-gnueabi-gcc... gcc3
checking for arm-linux-g++... arm-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-linux-g++ accepts -g... yes
checking dependency style of arm-linux-g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by arm-iwmmxt-linux-gnueabi-gcc...
/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/arm-iwmmxt-linux-gnueabi/bin/ld
checking if the linker
(/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/arm-iwmmxt-linux-gnueabi/bin/ld)
is GNU ld... yes
checking for 
/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/arm-iwmmxt-linux-gnueabi/bin/ld
option to reload object files... -r
checking for BSD-compatible nm...
/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/bin/arm-linux-nm
-B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... arm-iwmmxt-linux-gnueabi-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... arm-linux-g++ -E
checking for arm-linux-g77... no
checking for arm-linux-xlf... no
checking for arm-linux-f77... no
checking for arm-linux-frt... no
checking for arm-linux-pgf77... no
checking for arm-linux-cf77... no
checking for arm-linux-fort77... no
checking for arm-linux-fl32... no
checking for arm-linux-af77... no
checking for arm-linux-xlf90... no
checking for arm-linux-f90... no
checking for arm-linux-pgf90... no
checking for arm-linux-pghpf... no
checking for arm-linux-epcf90... no
checking for arm-linux-gfortran... no
checking for arm-linux-g95... no
checking for arm-linux-xlf95... no
checking for arm-linux-f95... no
checking for arm-linux-fort... no
checking for arm-linux-ifort... no
checking for arm-linux-ifc... no
checking for arm-linux-efc... no
checking for arm-linux-pgf95... no
checking for arm-linux-lf95... no
checking for arm-linux-ftn... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse
/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/bin/arm-linux-nm
-B output from arm-iwmmxt-linux-gnueabi-gcc object... ok
checking for objdir... .libs
checking for arm-linux-ar... arm-linux-ar
checking for arm-linux-ranlib... arm-linux-ranlib
checking for arm-linux-strip... (cached) arm-linux-strip
checking if arm-iwmmxt-linux-gnueabi-gcc supports -fno-rtti
-fno-exceptions... no
checking for arm-iwmmxt-linux-gnueabi-gcc option to produce PIC... -fPIC
checking if arm-iwmmxt-linux-gnueabi-gcc PIC flag -fPIC works... yes
checking if arm-iwmmxt-linux-gnueabi-gcc static flag -static works... yes
checking if arm-iwmmxt-linux-gnueabi-gcc supports -c -o file.o... yes
checking whether the arm-iwmmxt-linux-gnueabi-gcc linker
(/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/arm-iwmmxt-linux-gnueabi/bin/ld)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by arm-linux-g++...
/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/arm-iwmmxt-linux-gnueabi/bin/ld
checking if the linker
(/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/arm-iwmmxt-linux-gnueabi/bin/ld)
is GNU ld... yes
checking whether the arm-linux-g++ linker
(/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/arm-iwmmxt-linux-gnueabi/bin/ld)
supports shared libraries... yes
checking for arm-linux-g++ option to produce PIC... -fPIC
checking if arm-linux-g++ PIC flag -fPIC works... yes
checking if arm-linux-g++ static flag -static works... yes
checking if arm-linux-g++ supports -c -o file.o... yes
checking whether the arm-linux-g++ linker
(/home/b20223/mydroid/marvell_lct/pxalinux/toolchain/arm-linux-4.1.1/arm-iwmmxt-linux-gnueabi/bin/ld)
supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into
programs... immediate
appending configuration tag "F77" to libtool
checking whether arm-iwmmxt-linux-gnueabi-gcc and cc understand -c and
-o together... yes
checking for __uc_get_grs in -luca... no
checking atomic_ops.h usability... no
checking atomic_ops.h presence... no
checking for atomic_ops.h... no
checking for ANSI C header files... (cached) yes
checking asm/ptrace_offsets.h usability... no
checking asm/ptrace_offsets.h presence... no
checking for asm/ptrace_offsets.h... no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking ia64intrin.h usability... no
checking ia64intrin.h presence... no
checking for ia64intrin.h... no
checking sys/uc_access.h usability... no
checking sys/uc_access.h presence... no
checking for sys/uc_access.h... no
checking for unistd.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking return type of signal handlers... void
checking for size_t... yes
checking for struct dl_phdr_info.dlpi_subs... yes
checking for sighandler_t... yes
checking for working memcmp... no
checking return type of signal handlers... (cached) void
checking for dl_iterate_phdr... yes
checking for dl_phdr_removals_counter... no
checking for dlmodinfo... no
checking for getunwind... no
checking for ttrace... no
configure: Enabling C++ exception support
checking for __thread... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/check-namespace.sh
config.status: creating doc/Makefile
config.status: creating doc/common.tex
config.status: creating include/libunwind-common.h
config.status: creating include/config.h
config.status: linking ./include/libunwind-arm.h to include/libunwind.h
config.status: linking ./include/tdep-arm to include/tdep
config.status: executing depfiles commands

#make
......

// build success, but
# ls src/unwind/
Backtrace.c              ForcedUnwind.c  GetDataRelBase.c
GetLanguageSpecificData.c  RaiseException.c     SetGR.c
DeleteException.c        GetBSP.c        GetGR.c
GetRegionStart.c           Resume.c             SetIP.c
FindEnclosingFunction.c  GetCFA.c        GetIP.c
GetTextRelBase.c           Resume_or_Rethrow.c  unwind-internal.h

I don't know what's wrong. It's OK when I built it using host gcc.

Thanks
Richard




reply via email to

[Prev in Thread] Current Thread [Next in Thread]