Re: Creating sparc64 installation images
On 12/25/2015 08:08 PM, John Paul Adrian Glaubitz wrote:
> Any suggestions?
Alright, apparently, it has to be -m32. I also had to add "-mcpu=v8"
and set gcc to gcc-4.9 as well as add -I/usr/include/sparc64-linux-gnu
to CFLAGS and manually copy stubs-32.h into this directory.
Using gcc-4.9 and the manual copying of stubs-32.h were necessary
because gcc-multilib is currently half broken on Debian sparc64
and hence things like stubs-32.h and libgcc.a are missing for
gcc-5 on sparc64.
Complete changes are:
* New upstream release.
* debian/control:
- Add sparc64 to the list of architectures.
- Add libc6-dev-sparc, lib32gcc-4.9-dev and gcc-4.9 to B-D.
* debian/rules:
- Set CC to "gcc-4.9 -m32 -mcpu=v8".
* New debian/patches/sparc64-build-fixes.patch:
- Add -I/usr/include/sparc64-linux-gnu to CFLAGS.
Just uploaded silo for sparc64 to unreleased.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: