[cfe-commits] [clang] bug + patch: Failed to find -lstdc++ in Ubuntu 11.04 x86

Eli Friedman eli.friedman at gmail.com
Fri Sep 16 14:06:22 PDT 2011


r139941.

-Eli

2011/9/16 Stepan Dyatkovskiy <STPWORLD at yandex.ru>:
> Hi Eli,
> Please find the fixed patch.
>
> Regards,
> Stepan
>
> 16.09.2011, 22:42, "Eli Friedman" <eli.friedman at gmail.com>:
>> There are multiple 80-column violations in the patch; please fix.
>> Otherwise, looks okay.
>>
>> -Eli
>>
>> On Thu, Sep 15, 2011 at 11:20 AM, Stepan Dyatkovskiy <STPWORLD at yandex.ru> wrote:
>>
>>>  ping...
>>>  Regards,
>>>  Stepan
>>>  14.09.2011, 11:41, "Anders Johnsen" <skabet at gmail.com>:
>>>
>>>  Hi,
>>>
>>>  I see this error as well.
>>>
>>>  - Anders
>>>
>>>  Sent from my HTC Desire S
>>>
>>>  On Sep 14, 2011 7:49 AM, "Stepan Dyatkovskiy" <STPWORLD at narod.ru> wrote:
>>>>  ping...
>>>>
>>>>  Stepan.
>>>>
>>>>  13.09.2011, 11:35, "Stepan Dyatkovskiy" <STPWORLD at yandex.ru>:
>>>>>  Hello everybody. I have Ubuntu 11.04 x86 (not _64) installed on my Dell
>>>>>  n5010 laptop. And I found that clang++ fails to compile ".cpp" files with
>>>>>  next bucket of errors:
>>>>>
>>>>>  /usr/bin/ld: cannot find crtbegin.o: No such file or directory
>>>>>  /usr/bin/ld: cannot find -lstdc++
>>>>>  /usr/bin/ld: cannot find -lgcc_s
>>>>>  /usr/bin/ld: cannot find -lgcc
>>>>>  clang: error: linker command failed with exit code 1 (use -v to see
>>>>>  invocation)
>>>>>
>>>>>  The reason of this error is..
>>>>>
>>>>>  Most of linux systems places c++ libs in directory like this:
>>>>>  /usr/lib/gcc/<triple>/<version>
>>>>>  e.g.:
>>>>>  /usr/lib/gcc/i686-linux-gnu/4.5.2
>>>>>
>>>>>  But Ubuntu 11.04 has very specific paths of c++ libs:
>>>>>  /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/<version>
>>>>>
>>>>>  And of course this path was not taken into account in current clang
>>>>>  implementation.
>>>>>  Please find attached patch that fixes this error for review. If it will
>>>>>  failed to download - let me know.
>>>>>
>>>>>  Regards,
>>>>>  Stepan.
>>>>>
>>>>>  _______________________________________________
>>>>>  cfe-commits mailing list
>>>>>  cfe-commits at cs.uiuc.edu
>>>>>  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>>>  _______________________________________________
>>>>  cfe-commits mailing list
>>>>  cfe-commits at cs.uiuc.edu
>>>>  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>>  _______________________________________________
>>>  cfe-commits mailing list
>>>  cfe-commits at cs.uiuc.edu
>>>  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list