daverigby / gperftools

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

MinGW link error - object name conflicts: libs/libtcmalloc_minimal_internal.lax/libwindows.a #633

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. `sh configure`
2. change MemoryBarrier function in src/base/atomicops-internals-*.h to 
MemoryBarrier2, to avoid collision with MinGW.
3. `make`

What is the expected output? What do you see instead?
Expected to compile without problems.

Output:
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -DNO_TCMALLOC_SAMPLES 
-DNO_HEAP_CHECK  -DNDEBUG -Wall
 -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-b
uiltin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign 
-fno-builtin-posix_memal
ign -fno-builtin-valloc -fno-builtin-pvalloc -mmmx -fno-omit-frame-pointer 
-Wno-unused-result   -fno
-exceptions -g -O2  -no-undefined   -o libtcmalloc_minimal_internal.la  
libtcmalloc_minimal_internal
_la-common.lo libtcmalloc_minimal_internal_la-internal_logging.lo  
libtcmalloc_minimal_internal_la-m
emfs_malloc.lo libtcmalloc_minimal_internal_la-central_freelist.lo 
libtcmalloc_minimal_internal_la-p
age_heap.lo libtcmalloc_minimal_internal_la-sampler.lo 
libtcmalloc_minimal_internal_la-span.lo libtc
malloc_minimal_internal_la-stack_trace_table.lo 
libtcmalloc_minimal_internal_la-static_vars.lo libtc
malloc_minimal_internal_la-symbolize.lo 
libtcmalloc_minimal_internal_la-thread_cache.lo libtcmalloc_
minimal_internal_la-malloc_hook.lo 
libtcmalloc_minimal_internal_la-malloc_extension.lo      libwindo
ws.la libspinlock.la libsysinfo.la liblogging.la
libtool: link: (cd .libs/libtcmalloc_minimal_internal.lax/libwindows.a && ar x 
"/c/Users/Amit/Deskto
p/gperftools-2.2.1/./.libs/libwindows.a")
libtool: link: object name conflicts in archive: 
.libs/libtcmalloc_minimal_internal.lax/libwindows.a
//c/Users/Amit/Desktop/gperftools-2.2.1/./.libs/libwindows.a
make: *** [libtcmalloc_minimal_internal.la] Error 1

What version of the product are you using? On what operating system?
Windows 7, MinGW g++ 4.8.1, gperftools 2.2.1

Please provide any additional information below.

Original issue reported on code.google.com by amit.la...@mail.huji.ac.il on 2 Jul 2014 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by alkondratenko on 29 Nov 2014 at 10:46