Cheers,
I want to avoid problems with compiling my code on amd64
, yet I don't have a 64-bit CPU available and have no hopes of getting upgrade to my machine any time soon. I have no dreams of testing the code (although that should theoretically be possible using qemu-system
) but I'd like to at least compile the code using gcc -m64
.
Basic idea works:
CFLAGS=-m64 CXXFLAGS=-m64 ./configure --host x86_64-debian-linux
However, the code depends on some libraries which I typically install from Debian packages, such as libsdl1.2-dev
, libgmp3-dev
and such. Obviously, getting 64-bit versions of packages installed alongside of 32-bit versions is not a one-liner.
What would be your practices for installing the 64-bit packages? Where would you put them, how would you get them there and how would you use them?
To repeat, I don't have 64-bit CPU and cannot afford getting a new machine.
I have already set up amd64-libs-dev
to give some basic push to gcc's -m64
.
Attempted so far:
- Setting up a 64-bit chroot jail with
debootstrap
in order to simplify installation of 64-bit development packages for libraries. Failed since finishing the setup (and installing anything afterwards!) requires 64-bit CPU. - Installing
gcc-multilib
andg++-multilib
. This appears to do nothing beside depending onlibc6-dev-amd64
which I already installed throughamd64-libs-dev
.