[CMake] Specify 32-bit compilation to Clang
Nils Gladitz
nilsgladitz at gmail.com
Tue Jan 20 10:58:10 EST 2015
On 01/20/2015 04:48 PM, Robert Dailey wrote:
> On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz <nilsgladitz at gmail.com> wrote:
>> On 19.01.2015 21:08, Robert Dailey wrote:
>>>
>>> I have done this and it fails while linking the test program during
>>> configuration:
>>>
>>> /usr/bin/ld: cannot find crtbegin.o: no such file or directory
>>> /usr/bin/ld: cannot find -lgcc
>>> /usr/bin/ld: cannot find -lgcc_s
>>>
>>> Any ideas?
>>>
>>
>> Try installing the g++-multilib package.
>
> Installed this as you instructed, deleted CMakeCache.txt and re-ran
> generation. Got the errors below:
>
>
> /usr/bin/ld: skipping incompatible
> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/libgcc.a when searching for -lgcc
From the diagnostic it looks like clang shares gcc 4.8's libraries.
Is the system wide default gcc 4.8 as well?
e.g. does "gcc --version" report 4.8.x?
If it isn't installing g++-4.8-multilib might help (If 4.8 is the
default g++-multilib will already have installed it).
Nils
More information about the CMake
mailing list