[cfe-dev] Errors compiling libc++
Howard Hinnant
hhinnant at apple.com
Thu May 19 19:11:50 PDT 2011
On May 19, 2011, at 9:09 PM, Ron Santos wrote:
> Folks,
> I just checked out libc++ revision 131708 a few minutes and tried to build with clang 3.0.
>
> $ clang++ -v
> clang version 3.0 (trunk 131637)
> Target: x86_64-apple-darwin10.7.0
> Thread model: posix
>
> I downloaded the helper libs and exported TRIPLE. I get the errors below. Am I doing something wrong? Is this expected? Thanks for your help. I want to play around with some C++0x features so I decided to use clang and libc++.
>
> - ron
>
> $ ./buildit
> + for FILE in '../src/*.cpp'
> + clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/algorithm.cpp
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:130:
> In file included from ../include/ios:216:
> ../include/__locale:197:5: error: exception specification of overriding function is more lax than base version
> ~collate();
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> ../include/__locale:208:18: error: exception specification of overriding function is more lax than base version
> collate<_CharT>::~collate()
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:130:
> ../include/ios:591:13: error: exception specification of overriding function is more lax than base version
> virtual ~basic_ios();
> ^
> ../include/ios:295:13: note: overridden virtual function is here
> virtual ~ios_base();
> ^
> ../include/ios:649:29: error: exception specification of overriding function is more lax than base version
> basic_ios<_CharT, _Traits>::~basic_ios()
> ^
> ../include/ios:295:13: note: overridden virtual function is here
> virtual ~ios_base();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:132:
> ../include/locale:710:5: error: exception specification of overriding function is more lax than base version
> ~num_get() {}
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:132:
> ../include/locale:1457:5: error: exception specification of overriding function is more lax than base version
> ~num_put() {}
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:132:
> ../include/locale:1885:5: error: exception specification of overriding function is more lax than base version
> ~time_get() {}
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:132:
> ../include/locale:2550:5: error: exception specification of overriding function is more lax than base version
> ~time_put() {}
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:132:
> ../include/locale:2684:5: error: exception specification of overriding function is more lax than base version
> ~moneypunct() {}
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:132:
> ../include/locale:2855:5: error: exception specification of overriding function is more lax than base version
> ~money_get() {}
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:132:
> ../include/locale:3386:5: error: exception specification of overriding function is more lax than base version
> ~money_put() {}
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> In file included from ../src/algorithm.cpp:11:
> In file included from ../include/random:1645:
> In file included from ../include/istream:156:
> In file included from ../include/ostream:132:
> ../include/locale:3551:5: error: exception specification of overriding function is more lax than base version
> ~messages() {}
> ^
> ../include/__locale:100:13: note: overridden virtual function is here
> virtual ~facet();
> ^
> 12 errors generated.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
This is a known problem with tip-of-trunk:
http://llvm.org/bugs/show_bug.cgi?id=9941
Howard
More information about the cfe-dev
mailing list