Re: OpenJDK 8 & GCC 5
James Cowgill <[email protected]>
| Newsgroups | gmane.linux.debian.ports.mips |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Tue, 2015-12-15 at 12:42 +0100, Aurelien Jarno wrote: > OpenJDK 8 doesn't compile with GCC 5 on mips, presumably due to the > switch to the FPXX ABI [1]: > > > /bin/bash ../../../../libtool --mode=compile mipsel-linux-gnu-gcc-5 -DHAVE_CONFIG_H -I. -I../../../../../jamvm/src/os/linux/mips -I../../../../src -I../../../../src -D_FORTIFY_SOURCE=2 -I../../../../src -g -fstack-protector-strong -Wformat -Werror=format-security -O3 -MT callNative.lo -MD -MP -MF .deps/callNative.Tpo -c -o callNative.lo ../../../../../jamvm/src/os/linux/mips/callNative.S > > libtool: compile: mipsel-linux-gnu-gcc-5 -DHAVE_CONFIG_H -I. -I../../../../../jamvm/src/os/linux/mips -I../../../../src -I../../../../src -D_FORTIFY_SOURCE=2 -I../../../../src -g -fstack-protector-strong -Wformat -Werror=format-security -O3 -MT callNative.lo -MD -MP -MF .deps/callNative.Tpo -c ../../../../../jamvm/src/os/linux/mips/callNative.S -fPIC -DPIC -o .libs/callNative.o > > ../../../../../jamvm/src/os/linux/mips/callNative.S: Assembler messages: > > ../../../../../jamvm/src/os/linux/mips/callNative.S:161: Error: float register should be even, was 1 > > Makefile:298: recipe for target 'callNative.lo' failed > > It is now built again with GCC 4.9, but we will eventually need to build > it with GCC 5. Therefore if someone has time to look at it, it would be > nice to provide patch. I've attached a completely and utterly untested patch which might work... James
jamvm-mips-gcc5.patch
(text/x-patch, 367 B)
diff -u -ur a/src/os/linux/mips/callNative.S b/src/os/linux/mips/callNative.S --- a/src/os/linux/mips/callNative.S 2012-05-17 22:01:47.000000000 +0100 +++ b/src/os/linux/mips/callNative.S 2015-12-15 19:46:03.679022719 +0000 @@ -157,8 +157,7 @@ ret_double: #ifdef __mips_hard_float - swc1 $f0,0($8) - swc1 $f1,4($8) + sdc1 $f0,0($8) addu $8,8 j return #endif
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABCgAGBQJWcG+YAAoJEMfxZ23qLQHva+kQAJOJhx9uh1uBwnVkGiCL91Wq /3PnZQ4K8ZHpKlEK38UVkrZE2SHvWlrKZ0XjtC7PbZYEVovJYEQEo75nLIb21GrS Suc+0/03qN45Elwpm+a0GKqarlDGDk0OsrwFsxk7a0FWC8kEL5XPkURTpg1DzNU8 BMY2kfTjJhVfb1PMTNQNnd6Cf5nlX6Om5qycMssVPurqfSq++cJKV8CoaBgdg63j EFqIJfNSTDUlmbni3Sn2GqNe+rTEzVXCJe9bGGU1crH4utB5Nf/sJ77+DinLFYf9 neQ7jcH9IcQBzLM0FaPDCmg47BevrwUAGqE2K4CFLjLWQ/7NcOWwxa5ZUu+91KNM ccmESwFDfKtwE8Q9lJ47G+r2kBkMGDmE8zIEh9i5myXa1CJLjLWPqbxQsPzZWIuf 4hH3G3MBqDzun3ONwbNMsbHi4WQDVWrnIJ5zvixcj/MXB1XSY4M/pYk3F2MPSgzH 3xTDdT5EAE7RhD9NDLJTI2GkJdLWhAJ4Fl/YYpolYR1KNuI1Duj25Ibk9jPk09rq 3O9pE/maOsTvIq9UYk1HRsnx0R2QHJ4luzDiF7OlwSzxk2sQIKlQykLQm8I0Q+3P 8hU7XoBajSlLsdyP6KwNybpT1A7DHb3f5pk2fcQGwmSJBIuu+rzatm+cLGX3Gibv B+erA3SBdgcvafnPwyik =8JGU -----END PGP SIGNATURE-----