Bonjour
j'ai une vielle machine 32 bit sur laquelle je voudrais utiliser un exécutable Linux ; sur ma machine 64 bit , tout matche bien en utilisant la commande
gcc -I /usr/include/python3.11 -o hmk1b32 hmk1b.c -lm -lpython3.11
en 32 bit j'ai transformé et j'ai une erreur suivant sortie écran suivante :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| $ gcc -I /usr/include/python3.11 -o -m32 hmk1b32 hmk1b.c -lm -lpython3.11
hmk1b.c: In function ‘__Pyx_main’:
hmk1b.c:176317:9: warning: ‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations]
176317 | Py_SetProgramName(argv[0]);
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:94,
from hmk1b.c:6:
/usr/include/python3.11/pylifecycle.h:37:38: note: declared here
37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
| ^~~~~~~~~~~~~~~~~
hmk1b.c:176320:9: warning: ‘PySys_SetArgv’ is deprecated [-Wdeprecated-declarations]
176320 | PySys_SetArgv(argc, argv);
| ^~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:96:
/usr/include/python3.11/sysmodule.h:13:38: note: declared here
13 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
| ^~~~~~~~~~~~~
/usr/bin/ld*: mode d'émulation non reconnu*: 32
Émulations prises en charge*: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386pep i386pe
collect2: error: ld returned 1 exit status |
note :j'ai installé les complements requis à savoir : libc6-dev-i386-x32-cross , gcc-multilib , g++multilib sur mon Linux Mx
Toute suggestion sera la bienvenue ; j'ai essayé de remplacer m32 par melf_i386 sans succes
Partager