[Users] configure: error: C compiler cannot create executables

Michal Suchánek msuchanek at suse.de
Wed Oct 3 18:23:12 CEST 2018


On Wed, 3 Oct 2018 18:55:57 +0300
Removed GDPR <removed-gdpr at example.com> wrote:

> On Wed, 3 Oct 2018 17:34:14 +0200 Olaf Hering wrote:
> 
> > Most likely caused by the lack of '-m32' in CFLAGS.
> > Once that is fixed, run 'sudo zypper in
> > glibc-devel-32bit'  
> 
> I installed it but the message persists.
> Any other ideas?

pentium-m is 32bit and your compiler is 64bit, apparently.

gcc-4.8 -O2 -pipe -march=pentium-m -mtune=pentium-m  ../hello_world.c 
../hello_world.c:1:0: error: CPU you selected does not support x86-64
instruction set #include <stdio.h>
 ^
../hello_world.c:1:0: error: CPU you selected does not support x86-64
instruction set

-> missing -m32 flag

gcc-4.8 -O2 -pipe -march=pentium-m -mtune=pentium-m
-m32 ../hello_world.c In file included
from /usr/include/features.h:389:0, from /usr/include/stdio.h:27,
                 from ../hello_world.c:1:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such
file or directory # include <gnu/stubs-32.h>
                           ^
-> missing glibc-devel-32bit

HTH

Michal



More information about the Users mailing list