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

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 (last modified by johnny_sokko)

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) Haiku 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 - not very useful. 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. I think that this is quite "hacky" and cumbersome.

So, again, a "gcc-x86" package that works 'out-of-the-box' would be much appreciated :-)

Thank you!

(If there is a better way that I didn't realize, please excuse)

Change History (8)

comment:1 by johnny_sokko, 3 years ago

Description: modified (diff)

comment:2 by johnny_sokko, 3 years ago

Description: modified (diff)

comment:3 by johnny_sokko, 3 years ago

Description: modified (diff)

comment:4 by johnny_sokko, 3 years ago

Description: modified (diff)

comment:5 by johnny_sokko, 3 years ago

Description: modified (diff)

comment:6 by johnny_sokko, 3 years ago

Description: modified (diff)

comment:7 by johnny_sokko, 3 years ago

Description: modified (diff)

comment:8 by johnny_sokko, 3 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.