Subject: CGAL users discussion list
List archive
- From: Oren Shpigel <>
- To:
- Subject: Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++
- Date: Tue, 31 Jan 2017 15:44:56 +0000
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:DK6EWhTU2DJXwJD+58pm/tNlbNpsv+yvbD5Q0YIujvd0So/mwa69bR2N2/xhgRfzUJnB7Loc0qyN4vymBzFLvsfJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanb75/KBq7oR/Qu8QWjodvKKI8wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9Drx2hqR5wzY7abo+WKfRwYL/ScMgASmZdRMtcTTBNDp++YoYJEuEPPfxYr474p1YWtBW+HxejBOXywTFVhn/2xaw60+s/HgHCwQctGNUOsG7Ko9XzL6oTUee1zafJzDrZYf5ZxC3x55TPchAkuPyBW697f8TWyUkqDQzFj1OQpJTkPzOTzOQNsnKU4/BuVeK1k2InrwVxoiaqxss2jYnJnI0Vx1bZ/it62IY4PcO0RFJ/bNK+E5ZdtzuWO5VrTs4sWW1luDo2x7sbspChZicK0o4oxxvHZvyHbYeI5hXjWf6UIThihXJlfKuzhwix8US80+H8WMm53EpQoipKldnMsX8N1xjN5cSdVvR9+UKh1S6O1wDV9O5EPVg5mbTHJ5Ml2LI9lZoevV7dEiPrlkj6lq+belk89uit8evnY7HmppGGN49zjwHzKqMumtahDuQ+KQUPX2+b+Oq91bL580D2Xa9GgeExkqncqJzaP9gUpralAw9J1YYu8wqwDzi839QchHUIMVNFeAmbgIj0IFHOO+v1Dey/glSpiDdk3erKPrznApXXL3jMiq3tfbhn6x0U9Qwo0NoK545IEqpTZ7XoS0rpvZrZCAU4Okq62aH8GdBl38QfX2yIRaSWOaeXvV6T7f80OLqwY9oetz/5bvQk/PXzlmQRmFkHfKDv04FERmq/G6FBOUifKUHsmtYOHGNC6g0kQerCmVqdQzcIazC5WKdqtWJzM56vEYqWHtPlu7eGxiruRpA=
Thanks for the reply!
I'm using CGAL 4.8, not 4.9 yet. Can this be the issue?
Also, I checked your command on my environment and it returned empty:
# nm -D /usr/lib/x86_64-linux-gnu/libc++.so.1|grep _ZNSt3__113basic_istreamIcNS_11char_traitsIcEEErsEPFRS3_S4_E
I compiled the libc++ from here: http://libcxx.llvm.org/docs/BuildingLibcxx.html, but used tag RELEASE_380 instead of trunk.
Where's your libc++ from? Different version/form?
Thanks,
Oren
On Tue, 31 Jan 2017, Oren Shpigel wrote:
> Hi again,
> I tried compiling everything again with the correct flags, and I still get
> this error when linking my code to CGAL:
>
> # clang++-3.8 -o build/release/my_output_file -stdlib=libc++
> -lc++ my_code_stuff -lCGAL -lCGAL_Core -lprofiler -ltcmalloc -lgtest
Better put -lc++ much later in the command line, but clang already adds
one anyway.
> -lpthread -lboost_date_time -lboost_filesystem -lcurl -ljson -lz
> -lboost_system -lprotobuf -lglog -lgflags -lblas -llapack
> //usr/local/lib/libCGAL.so: undefined reference to
> `std::__1::basic_istream<char, std::__1::char_traits<char>
>> ::operator>>(std::__1::basic_istream<char, std::__1::char_traits<char> >&
> (*)(std::__1::basic_istream<char, std::__1::char_traits<char> >&))'
> //usr/local/lib/libCGAL.so: undefined reference to
> `std::__1::basic_istream<char, std::__1::char_traits<char>
>> ::operator>>(std::__1::basic_istream<char, std::__1::char_traits<char> >&
> (*)(std::__1::basic_istream<char, std::__1::char_traits<char> >&))'
>
> When checking my CGAL's dependencies it looks good, no libstdc++ anywhere:
> # ldd -r /usr/local/lib/libCGAL.so
> linux-vdso.so.1 => (0x00007fff3f2ae000)
> libmpfr.so.4 => /usr/local/lib/libmpfr.so.4 (0x00007f77e491f000)
> libgmp.so.10 => /usr/local/lib/libgmp.so.10 (0x00007f77e46a9000)
> libboost_thread.so.1.55.0 => /usr/local/lib/libboost_thread.so.1.55.0
> (0x00007f77e448f000)
> libboost_system.so.1.55.0 => /usr/local/lib/libboost_system.so.1.55.0
> (0x00007f77e428b000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007f77e406d000)
> libc++.so.1 => /usr/lib/libc++.so.1 (0x00007f77e3d15000)
> libc++abi.so.1 => /usr/lib/libc++abi.so.1 (0x00007f77e3aa0000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f77e379a000)
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f77e3584000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f77e31bf000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f77e4da6000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f77e2fb7000)
> undefined symbol:
> _ZNSt3__113basic_istreamIcNS_11char_traitsIcEEErsEPFRS3_S4_E
> (/usr/local/lib/libCGAL.so)
>
> But again, also ldd says this same undefined symbol:
> # c++filt _ZNSt3__113basic_istreamIcNS_11char_traitsIcEEErsEPFRS3_S4_E
> std::__1::basic_istream<char, std::__1::char_traits<char>
>> ::operator>>(std::__1::basic_istream<char, std::__1::char_traits<char> >&
> (*)(std::__1::basic_istream<char, std::__1::char_traits<char> >&))
nm -D /usr/lib/x86_64-linux-gnu/libc++.so.1|grep _ZNSt3__113basic_istreamIcNS_11char_traitsIcEEErsEPFRS3_S4_E
000000000009f784 W _ZNSt3__113basic_istreamIcNS_11char_traitsIcEEErsEPFRS3_S4_E
This symbol is provided by libc++ here...
> Anyone has any idea about why it's missing? Or what is using it?
> Has anyone ever compiled CGAL 4.8 with clang 3.8 and libc++?
Just tried CGAL-4.9 with CXX='clang++-3.8 -stdlib=libc++' and it is
working fine. I expect the issue is with your installation of clang or
libc++, not with CGAL.
--
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
- [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/29/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/29/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Pádraig Ó Conbhuí, 01/30/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Pádraig Ó Conbhuí, 01/30/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/29/2017
Archive powered by MHonArc 2.6.18.