Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3710)

Issue 1164043: [PATCH] Make libc++ compile on linux (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by Jeffrey Yasskin
Modified:
13 years, 11 months ago
Reviewers:
cfe-dev
Base URL:
http://llvm.org/svn/llvm-project/libcxx/trunk/
Visibility:
Public.

Description

I'm working on Ubuntu Hardy. Your mileage may vary on other platforms. :) Everything compiles with this patch. The link currently fails with: + g++ algorithm.o bind.o chrono.o condition_variable.o exception.o hash.o ios.o iostream.o locale.o memory.o mutex.o new.o random.o stdexcept.o strstream.o system_error.o thread.o typeinfo.o utility.o valarray.o -fPIC -o libc++.so.1.0 -shared -nodefaultlibs -Wl,-soname,libc++.so.1 -lstdc++ -lc exception.o:(.data.rel.ro._ZTISt13bad_exception[typeinfo for std::bad_exception]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' ios.o:(.data.rel.ro._ZTINSt3__119__iostream_categoryE[typeinfo for std::__1::__iostream_category]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' ios.o:(.data.rel.ro._ZTINSt3__19basic_iosIwNS_11char_traitsIwEEEE[typeinfo for std::__1::basic_ios<wchar_t, std::__1::char_traits<wchar_t> >]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' ios.o:(.data.rel.ro._ZTINSt3__19basic_iosIcNS_11char_traitsIcEEEE[typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' ios.o:(.data.rel.ro._ZTINSt3__18ios_base7failureE[typeinfo for std::__1::ios_base::failure]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' iostream.o:(.data.rel.ro._ZTINSt3__110__stdinbufIcEE[typeinfo for std::__1::__stdinbuf<char>]+0x0): more undefined references to `vtable for __cxxabiv1::__si_class_type_info' follow /usr/bin/ld: libc++.so.1.0: hidden symbol `vtable for __cxxabiv1::__si_class_type_info' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status None of the tests have been tested.

Patch Set 1 #

Patch Set 2 : Progress #

Patch Set 3 : Everything compiles; link fails #

Patch Set 4 : s/OSAtomic/__sync/g #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -118 lines) Patch
M include/__config View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M include/__locale View 2 3 4 chunks +18 lines, -0 lines 0 comments Download
M include/algorithm View 2 3 1 chunk +1 line, -5 lines 0 comments Download
M include/cstddef View 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M include/iosfwd View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M include/locale View 2 3 12 chunks +129 lines, -17 lines 0 comments Download
M include/string View 2 3 1 chunk +1 line, -0 lines 0 comments Download
M include/thread View 2 3 2 chunks +4 lines, -1 line 0 comments Download
M lib/buildit View 1 2 3 2 chunks +36 lines, -17 lines 0 comments Download
M src/chrono.cpp View 1 2 3 3 chunks +23 lines, -0 lines 0 comments Download
M src/exception.cpp View 3 2 chunks +5 lines, -3 lines 0 comments Download
M src/ios.cpp View 2 3 1 chunk +5 lines, -1 line 0 comments Download
M src/locale.cpp View 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M src/memory.cpp View 2 3 3 chunks +7 lines, -46 lines 0 comments Download
M src/mutex.cpp View 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/new.cpp View 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/stdexcept.cpp View 2 3 4 chunks +4 lines, -5 lines 0 comments Download
M src/system_error.cpp View 2 3 2 chunks +15 lines, -9 lines 0 comments Download
M src/thread.cpp View 2 3 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 4
Jeffrey Yasskin
Let me know what you think.
13 years, 11 months ago (2010-05-19 21:29:19 UTC) #1
clattner_apple.com
On May 19, 2010, at 2:29 PM, jyasskin@gmail.com wrote: > Reviewers: cfe-dev_cs.uiuc.edu, > > Message: ...
13 years, 11 months ago (2010-05-20 05:23:59 UTC) #2
Jeffrey Yasskin (google)
On Wed, May 19, 2010 at 10:23 PM, Chris Lattner <clattner@apple.com> wrote: > > On ...
13 years, 11 months ago (2010-05-23 07:00:10 UTC) #3
hhinnant_apple.com
13 years, 11 months ago (2010-05-24 17:52:54 UTC) #4
On May 23, 2010, at 2:59 AM, Jeffrey Yasskin wrote:

> On Wed, May 19, 2010 at 10:23 PM, Chris Lattner <clattner@apple.com> wrote:
>> 
>> On May 19, 2010, at 2:29 PM, jyasskin@gmail.com wrote:
>> 
>>> Reviewers: cfe-dev_cs.uiuc.edu,
>>> 
>>> Message:
>>> Let me know what you think.
>> 
>> For the atomics, would it be possible to use the builtins for them instead of
the OSAtomic* and inline asm.
> 
> Done.

Thanks much Jeffrey.  This is checked in now.  I did a little bit of
modification with the <locale> __nolocale_* functions.

-Howard

Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b