[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

g++-4.8 multiarch/multilib



This may be related to Bug#712044, and may reflect my ignorance with
the issue. I am trying to have a C/C++ development system that can
compile both 32 and 64-bit binaries based purely on multiarch, without
the need for packages like g++-4.8-multilib or libc6-i386 etc. which
duplicate the contents of the i386 architecture packages. On an amd64
system, with g++-4.8 this almost work, in fact all I had to do is to
install the needed *-dev:i386 packages and create a symlink:

# ls -al /usr/lib/gcc/x86_64-linux-gnu/4.8/32
lrwxrwxrwx 1 root root 24 Jul  8 18:54
/usr/lib/gcc/x86_64-linux-gnu/4.8/32 -> ../../i486-linux-gnu/4.8

After this, g++ -m32 seem to work. I wonder if there was some way to
make this setup more official.

I assume this would also work for older gcc versions, however it is
currently blocked by a dependency of libstdc++6-4.7-dev:i386 on
g++-4.7:i386 which of course is not co-installable with g++-4.7:amd64.
I don't really know why this dependency is needed, maybe it's really a
bug that should be opened against libstdc++6-4.7-dev?

Thanks,
 -Zoltan


Reply to: