Summary: | sys-devel/gcc-5.4.0-r3 USE=gcj with sys-libs/glibc-2.26 - In file included from ../../../gcc-6.4.0/libjava/prims.cc:26:0: ../../../gcc-6.4.0/libjava/prims.cc: In function 'void _Jv_catch_fpe(int, siginfo_t*, void*)': ./include/java-signal.h:32:26: error: | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mads <mads> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | atoth, mads |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | masked in 17.0 profiles | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 628768 | ||
Attachments: |
struct-ucontext-libjava.patch
gcc6_nopie_oldergcc2.patch |
Description
Mads
2017-11-30 10:39:10 UTC
I was hoping to get a gcj compiler to work to build pdftk (which I suspect is the only reason anyone is looking at this bug). I tried building gcc-4.9.4 in the hopes that it would work, but it has the exact same issue, so anyone else in the same boat can skip trying that. Created attachment 514032 [details, diff]
struct-ucontext-libjava.patch
NixOS fix adapted to gentoo sys-devel/gcc-5.4.0
Created attachment 514034 [details, diff]
gcc6_nopie_oldergcc2.patch
I'm not sure if this one is needed for everone...
(In reply to Preston Crow from comment #1) > I was hoping to get a gcj compiler to work to build pdftk (which I suspect > is the only reason anyone is looking at this bug). I tried building > gcc-4.9.4 in the hopes that it would work, but it has the exact same issue, > so anyone else in the same boat can skip trying that. pdftk: exactly. Give the patches I attached a try. How good it would be to make pdftk compatible with gcc-6/7! Debian's and Arch's pdftk-2.02 depends on gcc-6. I think we should move forward and apply a treatment on pdftk. The ucontext patch looks good. This is what I have crafted myself individually and seems to get the job done.
> How good it would be to make pdftk compatible with gcc-6/7!
Might be possible for GCC 6, but definitely not GCC 7. GCC dropped support for GCJ in version 7 completely - and as far as I remember partly in 6 already. There probably is a reason why gcj cannot be enabled in Gentoo's GCC 6 package - even though it still seems to work on Debian and Arch, as you already said. Probably not without some heavy patching, though, which the maintainer(s) probably didn't want to go through just for one package.
Neither of these distributions feature gcj for GCC 7, though. That's pretty much the end of it - and by extension will be the end of pdftk, unless it is made compatible with other java compilers.
(In reply to Mihai Moldovan from comment #5) > The ucontext patch looks good. This is what I have crafted myself > individually and seems to get the job done. > > > How good it would be to make pdftk compatible with gcc-6/7! > > Might be possible for GCC 6, but definitely not GCC 7. GCC dropped support > for GCJ in version 7 completely - and as far as I remember partly in 6 > already. There probably is a reason why gcj cannot be enabled in Gentoo's > GCC 6 package - even though it still seems to work on Debian and Arch, as > you already said. Probably not without some heavy patching, though, which > the maintainer(s) probably didn't want to go through just for one package. > > Neither of these distributions feature gcj for GCC 7, though. That's pretty > much the end of it - and by extension will be the end of pdftk, unless it is > made compatible with other java compilers. According to funtoo bug: https://forums.funtoo.org/topic/247-gcc-with-gcj-for-pdftk-and-impressive/ https://bugs.funtoo.org/browse/FL-970 "This support (gcc gcj) scheduled for removal from gcc upstream too. We will look what possible to do with pdftk." They propose mcpdf as a replacement: https://issues.sonatype.org/browse/OSSRH-8759 https://github.com/m-click/mcpdf But there are complaining about mcpdf... My other option for pdf manipulation is qpdf, but I still like pdftk... (In reply to Mihai Moldovan from comment #5) > The ucontext patch looks good. This is what I have crafted myself > individually and seems to get the job done. > > > How good it would be to make pdftk compatible with gcc-6/7! > > Might be possible for GCC 6, but definitely not GCC 7. GCC dropped support > for GCJ in version 7 completely - and as far as I remember partly in 6 > already. There probably is a reason why gcj cannot be enabled in Gentoo's > GCC 6 package - even though it still seems to work on Debian and Arch, as > you already said. Probably not without some heavy patching, though, which > the maintainer(s) probably didn't want to go through just for one package. > > Neither of these distributions feature gcj for GCC 7, though. That's pretty > much the end of it - and by extension will be the end of pdftk, unless it is > made compatible with other java compilers. So far I have experienced no problems compiling gcc, pdftk, or anything else after manually unmasking the gcj use flag on =sys-devel/gcc-6.4.0, without performing any other intervention. Was fixed in bug #629502 gcc should be able to build libjava at least for sys-devel/gcc/gcc-4.9.4.ebuild sys-devel/gcc/gcc-5.4.0-r4.ebuild sys-devel/gcc/gcc-6.4.0-r1.ebuild *** This bug has been marked as a duplicate of bug 629502 *** (In reply to Nick from comment #7) > (In reply to Mihai Moldovan from comment #5) > > The ucontext patch looks good. This is what I have crafted myself > > individually and seems to get the job done. > > > > > How good it would be to make pdftk compatible with gcc-6/7! > > > > Might be possible for GCC 6, but definitely not GCC 7. GCC dropped support > > for GCJ in version 7 completely - and as far as I remember partly in 6 > > already. There probably is a reason why gcj cannot be enabled in Gentoo's > > GCC 6 package - even though it still seems to work on Debian and Arch, as > > you already said. Probably not without some heavy patching, though, which > > the maintainer(s) probably didn't want to go through just for one package. > > > > Neither of these distributions feature gcj for GCC 7, though. That's pretty > > much the end of it - and by extension will be the end of pdftk, unless it is > > made compatible with other java compilers. > > So far I have experienced no problems compiling gcc, pdftk, or anything else > after manually unmasking the gcj use flag on =sys-devel/gcc-6.4.0, without > performing any other intervention. I've learned something new today - again, thanks! |