t2sde icon indicating copy to clipboard operation
t2sde copied to clipboard

Package gcj from gcc java fame

Open rxrbln opened this issue 1 year ago • 6 comments

The once Jave to native gcj gcc compiler was removed from gcc. It is at time nice to have in certain situations, so it would be nice to have a gcj t2 package of the last stable version of gcc in t2.

rxrbln avatar Mar 07 '23 21:03 rxrbln

you mean gjc-9.3.0 (for gcc-9.3.0 in v9.0 source mirror?

paulwratt avatar Oct 12 '23 20:10 paulwratt

I think more like "GCJ was removed from the GCC trunk on September 30, 2016. Announcement of its removal was made with the release of the GCC 7.1, which does not contain it. GCJ remains part of GCC 6." -Wikipedia and downloaded straight from the gcc mirrors.

rxrbln avatar Oct 12 '23 21:10 rxrbln

Thanks for clarifying that. I have GCC6 compiled binaries from Jessie that still work on Buster today (without recompiling), so I for one would be happy having a complete set of v6 GCC compilers - would it be worth trying v7.0 (rhetorical question, for future readers)

paulwratt avatar Oct 13 '23 00:10 paulwratt

do i see that correctly, that it is for bootstrapping java.

iirc ... gcj-6 is required for ecj.jar plus jamvm to build 1.5 compatible classpath and iterate thru al the java versions

terefang avatar Mar 18 '24 15:03 terefang

not necessary for bootstrapping another Java, but still supporting the previous GCC based fallback of compiling Java to native executables. Decade ago gcj just built as part of gcc until they removed it some decade ago.

rxrbln avatar Mar 18 '24 15:03 rxrbln

i am currently on a journey to bootstrap java ... so i can already say that gcc6 (musl-static) builds from gcc13 ... have not had the time to try building gcj6 with it.

terefang avatar Mar 18 '24 15:03 terefang