Bonjour,

Guy fleury <[email protected]> skribis:

> How can i built binarie for 32 bits i am on 64 bits.
> with gcc i get:
> ---------------------------------------------------------
> guy@guixSd ~/tuto/c$ gcc -m32 -o hello hello.c
> In file included from /home/guy/.guix-profile/include/features.h:452,
>                  from
> /home/guy/.guix-profile/include/bits/libc-header-start.h:33,
>                  from /home/guy/.guix-profile/include/stdio.h:27,
>                  from hello.c:1:
> /home/guy/.guix-profile/include/gnu/stubs.h:7:11: erreur fatale:
> gnu/stubs-32.h : Aucun fichier ou dossier de ce type
>  # include <gnu/stubs-32.h>
>            ^~~~~~~~~~~~~~~~
> compilation terminée.
> -------------------------------------------------------------------------------------------------------
>
> which package to download?

Our GCC toolchain does not support ‘-m32’.  Instead, to build a 32-bit
program on a 64-bit machine, you would do something like:

  guix environment --ad-hoc gcc-toolchain -s i686-linux --pure

HTH!

Ludo’.

Reply via email to