Opened 3 years ago
Last modified 3 years ago
#17724 new enhancement
Please provide 32-Bit cross-compiler (gcc-x86) on the 64-Bit (x64) platform — at Initial Version
Reported by: | johnny_sokko | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Build System | Version: | R1/beta3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86-64 |
Description
Hello,
it would be really helpful, if there were binary packages to install the 32-Bit cross-compiler (gcc-x86) on the 64-Bit (x64) platform via pkgman
, so that software developers can easily build 32-Bit binaries on the 64-Bit system and don't have to keep a separate 32-Bit system around.
On Linux systems (e.g. Debian), we can simply install package "crossbuild-essential-i386" on the x64 system, via APT package manager, in order to get the fully working i686-linux-gnu-gcc
cross-compiler.
TTBOMK, on Haiku, the only way to get the gcc-x86
corss-compiler on the 64-Bit system is by checking out "buildtools" from the Git and building it with the following command:
./configure --cross-tools-source ../buildtools --build-cross-tools x86
...but this takes several hours to complete. And, even more important, it ends up with a compiler that is missing the required header files and libraries. Only way to get the compiler working for me was by copying the header files and libraries over from a 32-Bit Haiku system and manually setting the --sysroot
when calling the compiler.
Thank you!