cuitao2046 / gperftools

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

Cygwin Win7 x64 build #605

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run ./configure
2. Run make

What is the expected output? What do you see instead?

I get the following errors:

src/maybe_threads.cc: In function 'int 
perftools_pthread_key_create(__pthread_key_t**, void (*)(void*))':
src/maybe_threads.cc:80:38: warning: cast to pointer from integer of different 
size [-Wint-to-pointer-cast]
     *key = (pthread_key_t)(next_key++);
                                      ^
src/maybe_threads.cc: In function 'void* 
perftools_pthread_getspecific(pthread_key_t)':
src/maybe_threads.cc:89:49: error: cast from 'pthread_key_t {aka 
__pthread_key_t*}' to 'int' loses precision [-fpermissive]
     return perftools_pthread_specific_vals[(int)key];
                                                 ^
src/maybe_threads.cc: In function 'int 
perftools_pthread_setspecific(pthread_key_t, void*)':
src/maybe_threads.cc:97:42: error: cast from 'pthread_key_t {aka 
__pthread_key_t*}' to 'int' loses precision [-fpermissive]
     perftools_pthread_specific_vals[(int)key] = val;
                                          ^
Makefile:4263: recipe for target 
'libtcmalloc_minimal_internal_la-maybe_threads.lo' failed
make: *** [libtcmalloc_minimal_internal_la-maybe_threads.lo] Error 1

What version of the product are you using? On what operating system?

This is from the latest (2.1) code. As I mentioned, I am building in a Cygwin 
environment on Windows 7 x64

Please provide any additional information below.

Original issue reported on code.google.com by andrew.c...@gmail.com on 11 Feb 2014 at 7:30

GoogleCodeExporter commented 9 years ago
I have not specifically fixed anything in Cygwin support, but we had some fixes 
in this area of code. May I ask you to try snapshot of current master? tar.gz 
is here: https://docs.google.com/file/d/0B6NtGsLhIcf7S3I4M0NkYjg4dHM/edit?pli=1

Original comment by alkondratenko on 13 Feb 2014 at 3:39

GoogleCodeExporter commented 9 years ago
Latest master contains probable fix for this particular compilation failure 
you're having. Consider testing it please.

Also please note that I haven't tested with Cygwin myself and it's possible 
that some other compilation error might cause build to fail.

Original comment by alkondratenko on 17 Feb 2014 at 4:01

GoogleCodeExporter commented 9 years ago
Testing now. Will let you know the result. Thanks for the quick turnaround on 
this!

Original comment by andrew.c...@gmail.com on 17 Feb 2014 at 7:44