Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - gcc-gcj

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: gcc-gcj 6.3.1-2

Git Clone URL: https://aur-dev.archlinux.org/gcc-gcj.git (read-only)
Package Base: gcc-gcj
Description: The GNU Compiler for Java
Upstream URL: http://gcc.gnu.org
Licenses: GPL, LGPL
Submitter: Allan
Maintainer: valandil
Last Packager: valandil
Votes: 243
Popularity: 3.271133
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

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 ... Next › Last »

haawda commented on 2015-10-11 12:00

Compiles and installs fine here. The directory should be .../gcc-gcj/pkg/gcc-gcj/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/ or the like, so it seems something went wrong with the detection of your architecture.

kopiersperre commented on 2015-10-11 10:33

Compiling works, but installing fails:

install: target '.../gcc-gcj/pkg/gcc-gcj/usr/lib/gcc//5.2.0/' is not a directory: No such file or directory

valandil commented on 2015-09-26 13:53

Could not reproduce. Compiles with isl-0.14.1 that is downloaded with this package.

sagittarius commented on 2015-09-26 12:45

To be able to compile gcc-gcj, I had to uninstall pdtk and to install aur/isl 0.15-1.

valandil commented on 2015-09-15 17:40

I'm on vacation. Be back in two weeks. In theeantime, verify that you have enough space in /tmp (my German is rusty). Build manually with yaourt -G gcc-gcj and makepkg.

jro commented on 2015-09-14 21:16

Build fails reproducibly:

g++ -c -DIN_GCC_FRONTEND -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace -I/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build/./isl/include -I/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/isl/include -D_FORTIFY_SOURCE=2 -O2 -o cc1-checksum.o -MT cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo cc1-checksum.c
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-O1,--sort-common,--as-needed,-z,relro -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-array-notation.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o \
cc1-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build/./isl/.libs -lisl -lmpc -lmpfr -lgmp -lz
collect2: Fehler: ld gab 1 als Ende-Status zurück
../../gcc/c/Make-lang.in:71: die Regel für Ziel „cc1“ scheiterte
make[3]: *** [cc1] Fehler 1
make[3]: Verzeichnis „/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build/gcc“ wird verlassen
Makefile:4373: die Regel für Ziel „all-stage1-gcc“ scheiterte
make[2]: *** [all-stage1-gcc] Fehler 2
make[2]: Verzeichnis „/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build“ wird verlassen
Makefile:21779: die Regel für Ziel „stage1-bubble“ scheiterte
make[1]: *** [stage1-bubble] Fehler 2
make[1]: Verzeichnis „/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build“ wird verlassen
Makefile:904: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2

valandil commented on 2015-08-27 14:21

You'll have to uninstall pdftk before updating gcc-gcj. Sorry, that's my bad.

Pietro_Pizzi commented on 2015-08-27 08:19

I have a problem. I would do a system upgrade but i get (after successful building):

error: failed to prepare transaction (could not satisfy dependencies)
:: pdftk: requires gcc-gcj=5.1.0
==> WARNING: Your packages are saved in /tmp/yaourt-tmp-pietro

So i tried installing pdftk first but:

pdftk.cc:33:21: fatal error: gcj/cni.h: No such file or directory
compilation terminated.
Makefile.Base:46: recipe for target 'pdftk.o' failed
make: *** [pdftk.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build pdftk.

What should i do?

Pietro_Pizzi commented on 2015-08-27 08:18

I have a problem. When i would do an system upgrade i get (after successful building):

error: failed to prepare transaction (could not satisfy dependencies)
:: pdftk: requires gcc-gcj=5.1.0
==> WARNING: Your packages are saved in /tmp/yaourt-tmp-pietro

So i tried installing pdftk first but:

pdftk.cc:33:21: fatal error: gcj/cni.h: No such file or directory
compilation terminated.
Makefile.Base:46: recipe for target 'pdftk.o' failed
make: *** [pdftk.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build pdftk.

What should i do?

valandil commented on 2015-07-23 20:06

I've had linking issues in the past when trying to compile pdftk with mismatched version of gcc and gcc-gcj. Will try again a little bit later.