[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need help with gcc -m32
From: |
Ludovic Courtès |
Subject: |
Re: need help with gcc -m32 |
Date: |
Mon, 08 Apr 2019 12:33:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Bonjour,
Guy fleury <address@hidden> skribis:
> How can i built binarie for 32 bits i am on 64 bits.
> with gcc i get:
> ---------------------------------------------------------
> address@hidden ~/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’.