Package: gcc-12-multilib-i686-linux-gnu Version: 12.2.0-14cross1 Severity: normal
At this moment it is not possible to use cross-toolchains to build 32-bit software with using `gcc -m32`. For example the following simple code fails to be compiled if libc6-dev-i386 and gcc-multilib are not installed. Installing gcc-multilib conflicts with installtion of all the cross-toolchains (including, but not limited to gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf), which I use for the dailyjob. It would be really nice to be able to use i686-cross toolchain to be used for `gcc -m32` support. [For the reference: the need for gcc -m32 comes from the need to build luajit for arm, which requires the several host tools to be compiled with the same pointer size as the target pointer size.] ===== CUT test.c ====== #include <sys/types.h> #include <errno.h> int main(void) { return 0; } ===== CUT test.c ====== -- With best wishes Dmitry -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.1.0-5-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gcc-12-multilib-i686-linux-gnu depends on: ii gcc-12-i686-linux-gnu 12.2.0-14cross1 ii gcc-12-i686-linux-gnu-base 12.2.0-14cross1 ii lib64gcc-12-dev-i386-cross 12.2.0-14cross1 ii libc6-dev-amd64-i386-cross 2.36-8cross1 ii libc6-dev-x32-i386-cross 2.36-8cross1 ii libx32gcc-12-dev-i386-cross 12.2.0-14cross1 gcc-12-multilib-i686-linux-gnu recommends no packages. gcc-12-multilib-i686-linux-gnu suggests no packages. -- no debconf information