Just done a svn co in an empty dir
Can you please start a build from scratch in an empty directory and tell me if
this still does not work?
Done ccmake .
then cmake --debug-trycompile
You may start cmake with --debug-trycompile and provide the output of
<builddir>/CMakeFiles/CMakeError.log.
Log attached.
As soon as the build finishes, I will report back to you.
GReetings and thanks
Ciao!
mario
MAthias
--
Ing. Mario Valle
Data Analysis and Visualization Services | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS) | Tel: +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
Determining if the function pthread_create exists in the pthreads failed with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o
/usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
/usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -fPIC "CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o" -o cmTryCompileExec -rdynamic -lpthreads
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec] Error 1
gmake[1]: Leaving directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
Determining if the Q_WS_MAC exist failed with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o -c /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: 'Q_WS_MAC' undeclared (first use in this function)
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o] Error 1
gmake[1]: Leaving directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
File /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>
void cmakeRequireSymbol(int dummy,...){(void)dummy;}
int main()
{
#ifndef Q_WS_MAC
cmakeRequireSymbol(0,&Q_WS_MAC);
#endif
return 0;
}
Determining if the Q_WS_WIN exist failed with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o -c /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: 'Q_WS_WIN' undeclared (first use in this function)
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o] Error 1
gmake[1]: Leaving directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
File /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>
void cmakeRequireSymbol(int dummy,...){(void)dummy;}
int main()
{
#ifndef Q_WS_WIN
cmakeRequireSymbol(0,&Q_WS_WIN);
#endif
return 0;
}
Performing C++ SOURCE FILE Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS failed with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.o
/usr/bin/c++ -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS -o CMakeFiles/cmTryCompileExec.dir/src.o -c /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec
/usr/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
/usr/bin/c++ -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS -fPIC "CMakeFiles/cmTryCompileExec.dir/src.o" -o cmTryCompileExec -rdynamic
CMakeFiles/cmTryCompileExec.dir/src.o: In function `main':
src.cxx:(.text+0x43): undefined reference to `__sync_bool_compare_and_swap_4'
src.cxx:(.text+0x6e): undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec] Error 1
gmake[1]: Leaving directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
Return value:
Source file was:
#include <cstdlib>
int main()
{
unsigned value = 0;
void* ptr = &value;
__sync_add_and_fetch(&value, 1);
__sync_synchronize();
__sync_sub_and_fetch(&value, 1);
if (!__sync_bool_compare_and_swap(&value, 0, 1))
return EXIT_FAILURE;
if (!__sync_bool_compare_and_swap(&ptr, ptr, ptr))
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
Performing C++ SOURCE FILE Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS failed with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.o
/usr/bin/c++ -D_OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS -o CMakeFiles/cmTryCompileExec.dir/src.o -c /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx: In function 'int main(int, const char**)':
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:8: error: '__add_and_fetch' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:9: error: '__synchronize' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:10: error: '__sub_and_fetch' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:11: error: '__compare_and_swap' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:14: error: '__compare_and_swap' was not declared in this scope
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.o] Error 1
gmake[1]: Leaving directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
Return value:
Source file was:
#include <stdlib.h>
int main(int, const char**)
{
unsigned value = 0;
void* ptr = &value;
__add_and_fetch(&value, 1);
__synchronize(value);
__sub_and_fetch(&value, 1);
if (!__compare_and_swap(&value, 0, 1))
return EXIT_FAILURE;
if (!__compare_and_swap((unsigned long*)&ptr, (unsigned long)ptr, (unsigned long)ptr))
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
Performing C++ SOURCE FILE Test _OPENTHREADS_ATOMIC_USE_SUN failed with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.o
/usr/bin/c++ -D_OPENTHREADS_ATOMIC_USE_SUN -o CMakeFiles/cmTryCompileExec.dir/src.o -c /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:2:20: error: atomic.h: No such file or directory
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx: In function 'int main(int, const char**)':
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:7: error: 'uint_t' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:7: error: expected `;' before 'value'
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:8: error: 'value' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:9: error: 'atomic_inc_uint_nv' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:10: error: 'membar_consumer' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:11: error: 'atomic_dec_uint_nv' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:12: error: 'atomic_cas_uint' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:15: error: 'atomic_cas_ptr' was not declared in this scope
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.o] Error 1
gmake[1]: Leaving directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
Return value:
Source file was:
#include <atomic.h>
#include <cstdlib>
int main(int, const char**)
{
uint_t value = 0;
void* ptr = &value;
atomic_inc_uint_nv(&value);
membar_consumer();
atomic_dec_uint_nv(&value);
if (0 != atomic_cas_uint(&value, 0, 1))
return EXIT_FAILURE;
if (ptr != atomic_cas_ptr(&ptr, ptr, ptr))
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
Performing C++ SOURCE FILE Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED failed with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.o
/usr/bin/c++ -D_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED -o CMakeFiles/cmTryCompileExec.dir/src.o -c /local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:2:21: error: windows.h: No such file or directory
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx: In function 'int main(int, const char**)':
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:11: error: 'InterlockedIncrement' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:12: error: 'InterlockedDecrement' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:14: error: 'InterlockedCompareExchange' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:17: error: 'PVOID' was not declared in this scope
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:17: error: expected `)' before 'volatile'
/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/src.cxx:18: error: expected `)' before ';' token
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.o] Error 1
gmake[1]: Leaving directory `/local/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
Return value:
Source file was:
#include <windows.h>
#include <cstdlib>
int main(int, const char**)
{
volatile long value = 0;
long data = 0;
long* volatile ptr = &data;
InterlockedIncrement(&value);
InterlockedDecrement(&value);
if (0 != InterlockedCompareExchange(&value, 1, 0))
return EXIT_FAILURE;
if (ptr != InterlockedCompareExchangePointer((PVOID volatile*)&ptr, (PVOID)ptr, (PVOID)ptr))
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org