[openib-general] configure: error: C compiler cannot create executables
Or Gerlitz
ogerlitz at voltaire.com
Tue Oct 24 05:44:29 PDT 2006
Michael S. Tsirkin wrote:
> Quoting vishal <vishal at endace.com>:
>> Thread model: posix
>> gcc version 4.1.0 (SUSE Linux)
>> configure:2471: $? = 0
>> configure:2473: gcc -V </dev/null >&5
>> gcc: '-V' option must have argument
>> configure:2476: $? = 1
>> configure:2499: checking for C compiler default output file name
>> configure:2502: gcc -m32 -g -O2 -I../libibverbs/include -m32 -g -O2
>> -L/usr/lib conftest.c >&5
>> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../libc.so when searching for -lc
>> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../libc.a when searching for -lc
>> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
>> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libc.a when searching for -lc
>> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: cannot find -lc
>
> Look at the compiler command line - it tries to create a 32 bit executable
> and does not find the C library for that.
> You should have 32 bit devel packages installed.
Michael, Cool, thanks for pointing this out, for me it (installing the
glibc 32bit devel rpm) solved this problem.
Or.
More information about the general
mailing list