help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need help with gcc -m32


From: Guy fleury
Subject: Re: need help with gcc -m32
Date: Mon, 8 Apr 2019 15:45:19 +0200

Merci beaucoup!

Le 8 avr. 2019 12:33, "Ludovic Courtès" <address@hidden> a écrit :
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’.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]