Mario, On Friday 27 June 2008 15:05, Mario Valle wrote: > 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. Ok, I see. You are running in gcc, i386 without any -march= compiler flag. So gcc assumes that you want to compile for a plain old i386 (read this does not even mean an i486). In this case gcc is limited to an instruction set where no such atomic operations are available. In fact you could not even programm a mutex with that i386 instruction set, as well as you could not build any SMP machine using an i386.
In this case, when we cannot assume any atomic operations. So we need to use the previous mutex based behaviour. But for that, the old mechnisms are still there. You need to ensure that refcounting works in a threadsafe way using either the OSG_THREAD_SAFE_REF_UNREF environment variable or by calling osg::Referenced::setThreadSafeReferenceCounting(true); before *any* concurrently used osg::Referenced object is created. Alternatively you can uncomment that ENFORCE_THREADSAFE define in src/osg/Referenced.cpp that does change the default behaviour of referenced. > As soon as the build finishes, I will report back to you. Are you running with the environment variable OSG_THREAD_SAFE_REF_UNREF set or unset? Greetings MAthias -- Dr. Mathias Fröhlich, science + computing ag, Software Solutions Hagellocher Weg 71-75, D-72070 Tuebingen, Germany Phone: +49 7071 9457-268, Fax: +49 7071 9457-511 -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Florian Geyer, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Prof. Dr. Hanns Ruder Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

