gcode-mirror / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Can gperftools work on IPone5? #703

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.$ ./config.guess 
       x86_64-apple-darwin14.4.0
2. my configure
./configure --build=x86_64-apple-darwin14.4.0 --host=armv7-apple-darwin 
CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchai
n/usr/bin/clang 
CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha
in/usr/bin/clang++ CFLAGS="-arch armv7 
-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
Developer/SDKs/iPhoneOS8.4.sdk"

3.configure ERROR
configure: WARNING: sys/malloc.h: present but cannot be compiled
configure: WARNING: sys/malloc.h:     check for missing prerequisite headers?
configure: WARNING: sys/malloc.h: see the Autoconf documentation
configure: WARNING: sys/malloc.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/malloc.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for sys/malloc.h... no
checking malloc/malloc.h usability... no
checking malloc/malloc.h presence... yes
configure: WARNING: malloc/malloc.h: present but cannot be compiled
configure: WARNING: malloc/malloc.h:     check for missing prerequisite headers?
configure: WARNING: malloc/malloc.h: see the Autoconf documentation
configure: WARNING: malloc/malloc.h:     section "Present But Cannot Be 
Compiled"
configure: WARNING: malloc/malloc.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for malloc/malloc.h... no
checking glob.h usability... no
checking glob.h presence... yes
configure: WARNING: glob.h: present but cannot be compiled
configure: WARNING: glob.h:     check for missing prerequisite headers?
configure: WARNING: glob.h: see the Autoconf documentation
configure: WARNING: glob.h:     section "Present But Cannot Be Compiled"
configure: WARNING: glob.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for glob.h... no
checking execinfo.h usability... no
checking execinfo.h presence... yes
configure: WARNING: execinfo.h: present but cannot be compiled
configure: WARNING: execinfo.h:     check for missing prerequisite headers?
configure: WARNING: execinfo.h: see the Autoconf documentation
configure: WARNING: execinfo.h:     section "Present But Cannot Be Compiled"
configure: WARNING: execinfo.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for execinfo.h... no
checking libunwind.h usability... no
checking libunwind.h presence... yes
configure: WARNING: libunwind.h: present but cannot be compiled
configure: WARNING: libunwind.h:     check for missing prerequisite headers?
configure: WARNING: libunwind.h: see the Autoconf documentation
configure: WARNING: libunwind.h:     section "Present But Cannot Be Compiled"
configure: WARNING: libunwind.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for libunwind.h... no
checking unwind.h usability... no
checking unwind.h presence... yes
configure: WARNING: unwind.h: present but cannot be compiled
configure: WARNING: unwind.h:     check for missing prerequisite headers?
configure: WARNING: unwind.h: see the Autoconf documentation
configure: WARNING: unwind.h:     section "Present But Cannot Be Compiled"
configure: WARNING: unwind.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for unwind.h... no
checking sched.h usability... no
checking sched.h presence... yes
configure: WARNING: sched.h: present but cannot be compiled
configure: WARNING: sched.h:     check for missing prerequisite headers?
configure: WARNING: sched.h: see the Autoconf documentation
configure: WARNING: sched.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sched.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for sched.h... no
checking conflict-signal.h usability... no
checking conflict-signal.h presence... no
checking for conflict-signal.h... no
checking sys/prctl.h usability... no
checking sys/prctl.h presence... no
checking for sys/prctl.h... no
checking linux/ptrace.h usability... no
checking linux/ptrace.h presence... no
checking for linux/ptrace.h... no
checking sys/syscall.h usability... no
checking sys/syscall.h presence... yes
configure: WARNING: sys/syscall.h: present but cannot be compiled
configure: WARNING: sys/syscall.h:     check for missing prerequisite headers?
configure: WARNING: sys/syscall.h: see the Autoconf documentation
configure: WARNING: sys/syscall.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/syscall.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for sys/syscall.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... yes
configure: WARNING: sys/socket.h: present but cannot be compiled
configure: WARNING: sys/socket.h:     check for missing prerequisite headers?
configure: WARNING: sys/socket.h: see the Autoconf documentation
configure: WARNING: sys/socket.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/socket.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for sys/socket.h... no
checking sys/wait.h usability... no
checking sys/wait.h presence... yes
configure: WARNING: sys/wait.h: present but cannot be compiled
configure: WARNING: sys/wait.h:     check for missing prerequisite headers?
configure: WARNING: sys/wait.h: see the Autoconf documentation
configure: WARNING: sys/wait.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/wait.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for sys/wait.h... no
checking poll.h usability... no
checking poll.h presence... yes
configure: WARNING: poll.h: present but cannot be compiled
configure: WARNING: poll.h:     check for missing prerequisite headers?
configure: WARNING: poll.h: see the Autoconf documentation
configure: WARNING: poll.h:     section "Present But Cannot Be Compiled"
configure: WARNING: poll.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for poll.h... no
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h:     check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h:     section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for fcntl.h... no
checking grp.h usability... no
checking grp.h presence... yes
configure: WARNING: grp.h: present but cannot be compiled
configure: WARNING: grp.h:     check for missing prerequisite headers?
configure: WARNING: grp.h: see the Autoconf documentation
configure: WARNING: grp.h:     section "Present But Cannot Be Compiled"
configure: WARNING: grp.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for grp.h... no
checking pwd.h usability... no
checking pwd.h presence... yes
configure: WARNING: pwd.h: present but cannot be compiled
configure: WARNING: pwd.h:     check for missing prerequisite headers?
configure: WARNING: pwd.h: see the Autoconf documentation
configure: WARNING: pwd.h:     section "Present But Cannot Be Compiled"
configure: WARNING: pwd.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for pwd.h... no
checking sys/resource.h usability... no
checking sys/resource.h presence... yes
configure: WARNING: sys/resource.h: present but cannot be compiled
configure: WARNING: sys/resource.h:     check for missing prerequisite headers?
configure: WARNING: sys/resource.h: see the Autoconf documentation
configure: WARNING: sys/resource.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/resource.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for sys/resource.h... no
checking valgrind.h usability... no
checking valgrind.h presence... no
checking for valgrind.h... no
checking sys/cdefs.h usability... no
checking sys/cdefs.h presence... yes
configure: WARNING: sys/cdefs.h: present but cannot be compiled
configure: WARNING: sys/cdefs.h:     check for missing prerequisite headers?
configure: WARNING: sys/cdefs.h: see the Autoconf documentation
configure: WARNING: sys/cdefs.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/cdefs.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for sys/cdefs.h... no
checking for features.h... (cached) no
checking whether cfree is declared... no
checking whether posix_memalign is declared... no
checking whether memalign is declared... no
checking whether valloc is declared... no
checking whether pvalloc is declared... no
checking if int32_t is the same type as intptr_t... no
checking ucontext.h usability... no
checking ucontext.h presence... no
checking for ucontext.h... no
checking sys/ucontext.h usability... no
checking sys/ucontext.h presence... yes
configure: WARNING: sys/ucontext.h: present but cannot be compiled
configure: WARNING: sys/ucontext.h:     check for missing prerequisite headers?
configure: WARNING: sys/ucontext.h: see the Autoconf documentation
configure: WARNING: sys/ucontext.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/ucontext.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to google-perftools@googlegroups.com ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for sys/ucontext.h... no
checking cygwin/signal.h usability... no
checking cygwin/signal.h presence... no
checking for cygwin/signal.h... no
checking how to access the program counter from a struct ucontext... configure: 
WARNING: Could not find the PC.  Will not try to compile libprofiler...
checking for backtrace in -lunwind... no
rm: fp.s: No such file or directory
checking if the compiler supports -Wno-unused-result... no
checking printf format code for printing a size_t and ssize_t... 
checking for __builtin_stack_pointer()... no
checking for __builtin_expect()... no
checking for __environ... no
checking for __thread... no
checking if __malloc_hook is declared volatile... no
checking if nanosleep requires any libraries... configure: error: cannot find 
the nanosleep function

my PC and software
$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

clang -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

clang++ -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

I want to apply gperftools to my IOS phone to manage memory, It's posible for 
now?

Original issue reported on code.google.com by boh...@126.com on 30 Jul 2015 at 8:03

GoogleCodeExporter commented 9 years ago
I have no idea if it will work on ios but it might with right flags (i.e. with 
--enable-minimal).

Issues you are seeing are likely due to some mistake in configure invocation. 
If you can attach config.log then there is chance that I might be able to help 
you.

Original comment by alkondratenko on 1 Aug 2015 at 6:11

GoogleCodeExporter commented 9 years ago
thank for review.
here is my config.log

Original comment by boh...@126.com on 3 Aug 2015 at 8:28

GoogleCodeExporter commented 9 years ago

Original comment by boh...@126.com on 3 Aug 2015 at 8:30

Attachments: