Package Details: gcc-gcj 6.3.1-2

Git Clone URL: (read-only)
Package Base: gcc-gcj
Description: The GNU Compiler for Java
Upstream URL:
Licenses: GPL, LGPL
Submitter: Allan
Maintainer: valandil
Last Packager: valandil
Votes: 244
Popularity: 0.920552
First Submitted: 2009-05-08 17:48
Last Updated: 2017-01-14 15:55

Pinned Comments

valandil commented on 2016-05-11 14:02

This package, gcc-gcj, is a subset of the GNU Compiler Collection, specifically the Java compiler part. In Arch Linux, it is mostly used to compile pdftk, a very nifty command-line PDF tool.

When reporting any build issue, please provide your current version of gcc and any error message.

It is *very* long to compile and takes up a lot of disk space while doing so. Do not use AUR helpers to compile this thing, you'll probably end up filling your /tmp partition and crash the compilation process. Download the PKGBUILD (either with yaourt -G gcc-gcj, with the helper of your choice or even manually) and run makepkg.

If you do not want to compile this and only need it for pdftk, consider using pdftk-bin. As its name indicates, it is a precompiled version of pdftk and depends only on libgcj, also precompiled.

Latest Comments

rabarrett commented on 2017-03-31 17:45

Yes, valandil. Thank you. I just caught that myself. Feel free to delete this comment if you don't think it will help others.

I was only using gcc-gcj for pdftk. After reading the comments here (and regularly running into long compilations that failed) I decided to try the advice of just using pdftk-bin.

However installing it fails because when I say "Y" to removing gcc-gcj, I'm told that gcc-gcj cannot be removed because it would "break dependency 'gcc-gcj".

If I try to just remove gcc-gcj directly with "pacman -R gcc-gcj" I get the same response. This seems illogical since gcc-gcj should not have itself as a dependency. (The same also happens if I use "pacman -Rs".

So at present, I can't update gcc-gcj nor can I remove it to use something else.

I've tried to troubleshoot the gcc-gcj update issue in the past, but never was able to resolve it (despite multiple attempts and multiple posts on the arch linux forums.

valandil commented on 2017-03-31 17:38

@rabarett I think you misread the error message. When I try to uninstall gcc-gcj, I get

valandil ~ $ yaourt -R gcc-gcj
[sudo] password for valandil:
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: pdftk: removing gcc-gcj breaks dependency 'gcc-gcj'

Which makes sense, because pdftk depends on gcc-gcj. What you wanna do is run

valandil ~ $ yaourt -Rcs gcc-gcj
checking dependencies...

Packages (2) pdftk-2.02-11 gcc-gcj-6.3.1-2

Total Removed Size: 97.08 MiB

:: Do you want to remove these packages? [Y/n]

and then install pdftk-bin with pacman -S pdftk-bin.


valandil commented on 2017-01-14 23:23

@cfr42 Somebody flagged the package out of date saying that the integrity check failed. I assumed that the SHA sums were wrong and blindly pushed a new update after running updpkgsums. My bad.

I won't downgrade the package, as people who already upgraded would have to recompile again.

cfr42 commented on 2017-01-14 22:54

Today I got an update for this package. The only difference between the new package build and yesterday's is that the release number is now 2 rather than 1. Is this a mistake? If not, it seems egregious, especially given the length of time it takes to build this. Now I'm going to keep getting messages saying this is outdated unless I rebuild just to change the version number of the package, which is ridiculous.

valandil commented on 2017-01-11 14:27

@bidulock Oh, I hadn't checked that yet. I had deferred this until the gcc update.

I don't change anything then in the next update :)

bidulock commented on 2017-01-09 20:07

flex, bison and pkg-config are in 'base-devel'. You need to load base-devel to build anything on AUR. It is normal practice to not include 'depdends' on packages in 'base' and to not include 'makedepends' on packages in 'base-devel'. So, why do they need to be added as dependencies?

valandil commented on 2017-01-09 16:17

@afwlehmann Thanks, I will do that in the next update to gcc.

afwlehmann commented on 2017-01-09 09:58

Please add missing dependencies to `flex`, `pkg-config` and `bison` (not sure about `bison`, but 100% about `flex` and `pkg-config`).

valandil commented on 2016-10-31 15:19

@Alad Please provide your gcc version.

Alad commented on 2016-10-31 11:23

Doesn't build:

./.libs/ undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:9535: jv-convert] Error 1
make[3]: *** Waiting for unfinished jobs....
./.libs/ undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:9482: gcj-dbtool] Error 1
/home/archie/.cache/aursync/gcc-gcj/src/gcc-c2103c17ed399b38670fbcdb8c0d5bd750a9e754/build/x86_64-pc-linux-gnu/libjava/.libs/ undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:9496: gij] Error 1

All comments