Модераторы: Daevaorn
  

Поиск:

Ответ в темуСоздание новой темы Создание опроса
> Сборка tcmalloc 
:(
    Опции темы
Randajad
Дата 18.3.2012, 18:22 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 295
Регистрация: 15.3.2012

Репутация: 8
Всего: 8



Доброго времени суток! Кто собирал сие на гцц под вяндой? Студийным компилятором собралось хорошо, гцц не хочет ни в какую. config.h правил, все-равно туевы хучи ерроров лезут. По-моему там сделали директивы препроцессора так, чтобы собиралось только под студией. :(
С уважением.
PM MAIL   Вверх
boostcoder
Дата 18.3.2012, 19:43 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


pattern`щик
****


Профиль
Группа: Завсегдатай
Сообщений: 5458
Регистрация: 1.4.2010

Репутация: 49
Всего: 110



> ../src dir/configure --prefix=$PREFIX && make && make install

PM WWW   Вверх
Randajad
Дата 18.3.2012, 19:52 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 295
Регистрация: 15.3.2012

Репутация: 8
Всего: 8



Это все хорошо, но под вяндой надо.
PM MAIL   Вверх
boostcoder
Дата 18.3.2012, 19:57 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


pattern`щик
****


Профиль
Группа: Завсегдатай
Сообщений: 5458
Регистрация: 1.4.2010

Репутация: 49
Всего: 110



msys

PM WWW   Вверх
Randajad
Дата 18.3.2012, 20:23 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 295
Регистрация: 15.3.2012

Репутация: 8
Всего: 8



Точно! Забыл эту замечательную штуку.
Вот только история та же самая.

Код

lib/gcc/i686-pc-mingw32/4.7.0/../../../../i686-pc-mingw32/include/pthread.h:184:18: error: conflicting declaration 'typedef unsigned int pthread_key_t'

lib/gcc/i686-pc-mingw32/4.7.0/../../../../i686-pc-mingw32/include/winnt.h:1860:21: error: 'void MemoryBarrier()' previously defined here
make: *** [libtcmalloc_minimal_internal_la-internal_logging.lo] Error 1


+100500 других ошибок.
А афтар сам собирать пробовал?
PM MAIL   Вверх
boostcoder
Дата 18.3.2012, 22:29 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


pattern`щик
****


Профиль
Группа: Завсегдатай
Сообщений: 5458
Регистрация: 1.4.2010

Репутация: 49
Всего: 110



покажи что в тех строках.


Цитата(Randajad @  18.3.2012,  20:23 Найти цитируемый пост)
А афтар сам собирать пробовал?

а афтар заявил поддержку MinGW?
PM WWW   Вверх
Randajad
Дата 24.3.2012, 21:23 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 295
Регистрация: 15.3.2012

Репутация: 8
Всего: 8



Да, там есть #ifdef __MINGW32__

#if !(defined(_MSC_VER) && _MSC_VER >= 1400)
inline void MemoryBarrier() {
  Atomic32 value = 0;
  base::subtle::NoBarrier_AtomicExchange(&value, 0);
                        // actually acts as a barrier in thisd implementation
}
#endif
Видимо, GCC его тоже не имело и tcmalloc тестился на старых GCC.

А конфликты с pthread получаются из-за:

// Some mingw distributions have a pthreads wrapper, but it doesn't
// work as well as native windows spinlocks (at least for us).  So
// pretend the pthreads wrapper doesn't exist, even when it does.
#undef HAVE_PTHREAD



Это сообщение отредактировал(а) Randajad - 24.3.2012, 21:36
PM MAIL   Вверх
boostcoder
Дата 24.3.2012, 22:10 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


pattern`щик
****


Профиль
Группа: Завсегдатай
Сообщений: 5458
Регистрация: 1.4.2010

Репутация: 49
Всего: 110



...не прошло и пол года...

Цитата(Randajad @  24.3.2012,  21:23 Найти цитируемый пост)
NoBarrier_AtomicExchange

покажи реализацию.

у tcmalloc есть возможность просмотра исходников онлайн? ссылку дай.

Это сообщение отредактировал(а) boostcoder - 24.3.2012, 22:33
PM WWW   Вверх
Randajad
Дата 24.3.2012, 23:08 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 295
Регистрация: 15.3.2012

Репутация: 8
Всего: 8



http://code.google.com/p/gperftools/
Там только архивчик.
PM MAIL   Вверх
boostcoder
Дата 24.3.2012, 23:14 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


pattern`щик
****


Профиль
Группа: Завсегдатай
Сообщений: 5458
Регистрация: 1.4.2010

Репутация: 49
Всего: 110



PM WWW   Вверх
Randajad
Дата 24.3.2012, 23:24 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 295
Регистрация: 15.3.2012

Репутация: 8
Всего: 8



Код

$ make
Makefile:2935: warning: overriding commands for target `debugallocation_test.sh.exe'
Makefile:2932: warning: ignoring old commands for target `debugallocation_test.sh.exe'
Makefile:2953: warning: overriding commands for target `heap-checker_debug_unittest.sh.exe'
Makefile:2950: warning: ignoring old commands for target `heap-checker_debug_unittest.sh.exe'
Makefile:2968: warning: overriding commands for target `heap-profiler_debug_unittest.sh.exe'
Makefile:2965: warning: ignoring old commands for target `heap-profiler_debug_unittest.sh.exe'
Makefile:2998: warning: overriding commands for target `maybe_threads_unittest.sh.exe'
Makefile:2995: warning: ignoring old commands for target `maybe_threads_unittest.sh.exe'
Makefile:3058: warning: overriding commands for target `sampling_debug_test.sh.exe'
Makefile:3055: warning: ignoring old commands for target `sampling_debug_test.sh.exe'
/bin/sh ./libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -DNO_TCMALLOC_SAMPLES  -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK  -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -mmmx -Wno-unused-result   -fno-exceptions -g -O2 -MT libtcmalloc_minimal_internal_la-common.lo -MD -MP -MF .deps/libtcmalloc_minimal_internal_la-common.Tpo -c -o libtcmalloc_minimal_internal_la-common.lo `test -f 'src/common.cc' || echo './'`src/common.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -mmmx -Wno-unused-result -fno-exceptions -g -O2 -MT libtcmalloc_minimal_internal_la-common.lo -MD -MP -MF .deps/libtcmalloc_minimal_internal_la-common.Tpo -c src/common.cc  -DDLL_EXPORT -DPIC -o .libs/libtcmalloc_minimal_internal_la-common.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -mmmx -Wno-unused-result -fno-exceptions -g -O2 -MT libtcmalloc_minimal_internal_la-common.lo -MD -MP -MF .deps/libtcmalloc_minimal_internal_la-common.Tpo -c src/common.cc -o libtcmalloc_minimal_internal_la-common.o >/dev/null 2>&1
mv -f .deps/libtcmalloc_minimal_internal_la-common.Tpo .deps/libtcmalloc_minimal_internal_la-common.Plo
/bin/sh ./libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src -DNO_TCMALLOC_SAMPLES  -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK  -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -mmmx -Wno-unused-result   -fno-exceptions -g -O2 -MT libtcmalloc_minimal_internal_la-internal_logging.lo -MD -MP -MF .deps/libtcmalloc_minimal_internal_la-internal_logging.Tpo -c -o libtcmalloc_minimal_internal_la-internal_logging.lo `test -f 'src/internal_logging.cc' || echo './'`src/internal_logging.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -mmmx -Wno-unused-result -fno-exceptions -g -O2 -MT libtcmalloc_minimal_internal_la-internal_logging.lo -MD -MP -MF .deps/libtcmalloc_minimal_internal_la-internal_logging.Tpo -c src/internal_logging.cc  -DDLL_EXPORT -DPIC -o .libs/libtcmalloc_minimal_internal_la-internal_logging.o
In file included from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/i686-pc-mingw32/bits/gthr-default.h:41:0,
                 from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/i686-pc-mingw32/bits/gthr.h:170,
                 from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/ext/atomicity.h:34,
                 from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h:41,
                 from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/string:54,
                 from ./src/gperftools/malloc_extension.h:52,
                 from src/internal_logging.cc:43:
gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../i686-pc-mingw32/include/pthread.h:184:18: error: conflicting declaration 'typedef unsigned int pthread_key_t'
./src/windows/port.h:122:15: error: 'pthread_key_t' has a previous declaration as 'typedef DWORD pthread_key_t'
gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../i686-pc-mingw32/include/pthread.h:198:19: error: conflicting declaration 'typedef uintptr_t pthread_t'
./src/windows/port.h:121:15: error: 'pthread_t' has a previous declaration as 'typedef DWORD pthread_t'
gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../i686-pc-mingw32/include/pthread.h:245:36: error: new declaration 'int sched_yield()'
./src/windows/port.h:169:13: error: ambiguates old declaration 'void sched_yield()'
./src/windows/port.h:126:18: error: previous declaration of 'pthread_t pthread_self()' with 'C++' linkage
gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../i686-pc-mingw32/include/pthread.h:297:43: error: conflicts with new declaration with 'C' linkage
gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../i686-pc-mingw32/include/pthread.h:300:66: error: new declaration 'int pthread_equal(pthread_t, pthread_t)'
./src/windows/port.h:131:13: error: ambiguates old declaration 'bool pthread_equal(pthread_t, pthread_t)'
In file included from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/i686-pc-mingw32/bits/gthr.h:170:0,
                 from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/ext/atomicity.h:34,
                 from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/bits/basic_string.h:41,
                 from gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/string:54,
                 from ./src/gperftools/malloc_extension.h:52,
                 from src/internal_logging.cc:43:
gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/i686-pc-mingw32/bits/gthr-default.h: In function 'int __gthread_yield()':
gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../include/c++/4.6.3/i686-pc-mingw32/bits/gthr-default.h:693:33: error: void value not ignored as it ought to be
In file included from ./src/base/atomicops.h:99:0,
                 from src/base/spinlock.h:47,
                 from src/internal_logging.cc:45:
./src/base/atomicops-internals-windows.h: In function 'void MemoryBarrier()':
./src/base/atomicops-internals-windows.h:160:13: error: redefinition of 'void MemoryBarrier()'
gcc\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../i686-pc-mingw32/include/winnt.h:1864:21: error: 'void MemoryBarrier()' previously defined here
make: *** [libtcmalloc_minimal_internal_la-internal_logging.lo] Error 1


PM MAIL   Вверх
boostcoder
Дата 24.3.2012, 23:33 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


pattern`щик
****


Профиль
Группа: Завсегдатай
Сообщений: 5458
Регистрация: 1.4.2010

Репутация: 49
Всего: 110



покажи лог выполнения configure и указываемые ему флаги, и в каталоге в котором конфигурируешь покажи содержимое config.log

PM WWW   Вверх
Randajad
Дата 25.3.2012, 11:03 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 295
Регистрация: 15.3.2012

Репутация: 8
Всего: 8



В сообщение не влезло.
http://pastebin.com/Fr447Ma3

http://pastebin.com/9Y7Fcwn4
PM MAIL   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
Правила форума "С++:Общие вопросы"
Earnest Daevaorn

Добро пожаловать!

  • Черновик стандарта C++ (за октябрь 2005) можно скачать с этого сайта. Прямая ссылка на файл черновика(4.4мб).
  • Черновик стандарта C (за сентябрь 2005) можно скачать с этого сайта. Прямая ссылка на файл черновика (3.4мб).
  • Прежде чем задать вопрос, прочтите это и/или это!
  • Здесь хранится весь мировой запас ссылок на документы, связанные с C++ :)
  • Не брезгуйте пользоваться тегами [code=cpp][/code].
  • Пожалуйста, не просите написать за вас программы в этом разделе - для этого существует "Центр Помощи".
  • C++ FAQ

Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, Earnest Daevaorn

 
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | C/C++: Общие вопросы | Следующая тема »


 




[ Время генерации скрипта: 0.0557 ]   [ Использовано запросов: 22 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.