Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL::Parallel_tag not compatible with CGAL::Triangulation_vertex_base_with_info_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL::Parallel_tag not compatible with CGAL::Triangulation_vertex_base_with_info_3


Chronological Thread 
  • From: Adam Getchell <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL::Parallel_tag not compatible with CGAL::Triangulation_vertex_base_with_info_3
  • Date: Mon, 2 Feb 2015 01:16:13 -0800

Hi Marc,

I think you may be onto something. I don't believe my old CMakeLists.txt actually compiled TBB into my main executable. Here's my new CMakeLists, does that look correct?

https://github.com/acgetchell/CDT-plusplus/blob/parallel/CMakeLists.txt

I'm still getting similar errors:

┌─[adam][Hapkido][±][parallel ][~/CDT-plusplus]

└─▪ ./build.sh

-- The C compiler identification is AppleClang 6.0.0.6000056

-- The CXX compiler identification is AppleClang 6.0.0.6000056

-- Check for working C compiler using: Ninja

-- Check for working C compiler using: Ninja -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler using: Ninja

-- Check for working CXX compiler using: Ninja -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Build type: Release

-- USING CXXFLAGS = ' -O3 -DNDEBUG'

-- USING EXEFLAGS = ' -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib '

-- Targetting Ninja

-- Using /usr/bin/c++ compiler.

-- DARWIN_VERSION=14

-- Mac Leopard detected

-- Requested component: Core

-- Requested component: MPFR

-- Requested component: GMP

-- Found Eigen3: /usr/local/include/eigen3 (found suitable version "3.2.3", minimum required is "3.1.0") 

-- Found Intel TBB

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/adam/CDT-plusplus/build

[12/12] Linking CXX executable unittests

FAILED: : && /usr/bin/c++   -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib CMakeFiles/unittests.dir/unittests/main.cpp.o CMakeFiles/unittests.dir/unittests/PointTest.cpp.o CMakeFiles/unittests.dir/unittests/S3BulkActionTest.cpp.o CMakeFiles/unittests.dir/unittests/S3ErgodicMovesTest.cpp.o CMakeFiles/unittests.dir/unittests/S3TetrahedronTest.cpp.o CMakeFiles/unittests.dir/unittests/SdTriangulationTest.cpp.o CMakeFiles/unittests.dir/unittests/SphereTest.cpp.o CMakeFiles/unittests.dir/unittests/Triangulated2SphereTest.cpp.o  -o unittests -L/usr/local/Cellar/cgal/4.5.1/lib  -L/Users/adam/gmock-1.7.0/lib/.libs  -L/Users/adam/gmock-1.7.0/gtest/lib/.libs /usr/local/lib/libmpfr.dylib /usr/local/lib/libgmp.dylib /usr/local/Cellar/cgal/4.5.1/lib/libCGAL_Core.dylib /usr/local/Cellar/cgal/4.5.1/lib/libCGAL.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_system-mt.dylib -lgmock -lgtest -lpthread -Wl,-rpath,/usr/local/Cellar/cgal/4.5.1/lib -Wl,-rpath,/Users/adam/gmock-1.7.0/lib/.libs -Wl,-rpath,/Users/adam/gmock-1.7.0/gtest/lib/.libs && :

Undefined symbols for architecture x86_64:

  "tbb::queuing_mutex::scoped_lock::acquire(tbb::queuing_mutex&)", referenced from:

      CGAL::Concurrent_compact_container<CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_vertex_base_3<CGAL::Epick, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Parallel_tag> > > >, tbb::scalable_allocator<CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_vertex_base_3<CGAL::Epick, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Parallel_tag> > > > > >::allocate_new_block(CGAL::Free_list<CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_vertex_base_3<CGAL::Epick, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Parallel_tag> > > >*, unsigned long, CGAL::Concurrent_compact_container<CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_vertex_base_3<CGAL::Epick, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Parallel_tag> > > >, tbb::scalable_allocator<CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_vertex_base_3<CGAL::Epick, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Triangulation_cell_base_with_info_3<unsigned int, CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Parallel_tag> > > > > > >*) in S3BulkActionTest.cpp.o



Full error stack here (starting at line 1516:

https://travis-ci.org/acgetchell/CDT-plusplus/builds/49156665

On Mon, Feb 2, 2015 at 12:53 AM, Adam Getchell <> wrote:
Hmmm. It's found here:

┌─[adam][Hapkido][±][parallel ][~/CDT-plusplus]

└─▪ ./build.sh

-- The C compiler identification is AppleClang 6.0.0.6000056

-- The CXX compiler identification is AppleClang 6.0.0.6000056

-- Check for working C compiler using: Ninja

-- Check for working C compiler using: Ninja -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler using: Ninja

-- Check for working CXX compiler using: Ninja -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Build type: Release

-- USING CXXFLAGS = ' -O3 -DNDEBUG'

-- USING EXEFLAGS = ' -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib '

-- Targetting Ninja

-- Using /usr/bin/c++ compiler.

-- DARWIN_VERSION=14

-- Mac Leopard detected

-- Requested component: Core

-- Requested component: MPFR

-- Requested component: GMP

-- Found Eigen3: /usr/local/include/eigen3 (found suitable version "3.2.3", minimum required is "3.1.0") 

-- Found Intel TBB

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/adam/CDT-plusplus/build

[11/12] Linking CXX executable cdt


I enabled it in my CMakeLists.txt:


# Experimental TBB support

  # TBB 4.3 compatibility fixed in CGAL 4.5.1

  find_package( TBB QUIET)

  if (TBB_FOUND)

    include( ${TBB_USE_FILE})


    list(APPEND CGAL_3RD_PARTY_LIBRARIES ${TBB_LIBRARIES})


  endif()


I didn't notice the examples including anything TBB specific, did I miss something?


On Mon, Feb 2, 2015 at 12:14 AM, Marc Glisse <> wrote:
On Sun, 1 Feb 2015, Adam Getchell wrote:

FAILED: : && /usr/bin/c++   -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.fram
ework/Versions/A/Libraries/libGL.dylib CMakeFiles/cdt.dir/src/cdt.cpp.o CMakeFiles/cdt.dir/src/docopt/docopt.cpp.o  -o cdt
-L/usr/local/Cellar/cgal/4.5.1/lib /usr/local/lib/libmpfr.dylib /usr/local/lib/libgmp.dylib
/usr/local/Cellar/cgal/4.5.1/lib/libCGAL_Core.dylib /usr/local/Cellar/cgal/4.5.1/lib/libCGAL.dylib
/usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_system-mt.dylib /usr/local/Cellar/cgal/4.5.1/lib/libCGAL_Core.dylib
/usr/local/Cellar/cgal/4.5.1/lib/libCGAL.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_system-mt.dylib
-Wl,-rpath,/usr/local/Cellar/cgal/4.5.1/lib && :

I don't see any mention of TBB on this line...

--
Marc Glisse

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





--
Adam Getchell
"Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu



--
Adam Getchell
"Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu



Archive powered by MHonArc 2.6.18.

Top of Page