You are not logged in.

#1 2014-04-15 11:27:37

eduardowoj
Member
Registered: 2014-01-14
Posts: 17

[SOLVED] Can't install gcc-ecj!

Sorry if I'm posting this in the wrong session, it seemed the most appropriated to me.

I need to install pdftk, and gcc-gcj is one of its dependencies. I tried to install pdftk through yaourt, but it failed after almost 30 minutes of compiling, so I decided to "go neanderthal" and install it almost by brute force, checking the aur web page for pdftk and downloading and installing the dependencies tarballs.

First, when I try to install gcc-ecj through AUR, I got a simple error message:

[eduardo@Tardis ~]$ cd aur-mirror/gcc-gcj
[eduardo@Tardis gcc-gcj]$ ls
PKGBUILD
[eduardo@Tardis gcc-gcj]$ makepkg -si
==> ERROR: install file (gcc-gcj.install) does not exist.

So I downloaded the tarball from this page (https://aur.archlinux.org/packages/gcc- … mments=all) and tried to install. It failed also, but it gave me a lot of output to pinpoint the problem. The output was:

[eduardo@Tardis gcc-gcj]$ makepkg -si
==> Making package: gcc-gcj 4.8.2-3 (Wed 16 Apr 08:18:14 BRT 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found gcc-4.8.2.tar.bz2
  -> Found native_freetype.patch
==> Validating source files with md5sums...
    gcc-4.8.2.tar.bz2 ... Passed
    native_freetype.patch ... Passed
==> Extracting sources...
  -> Extracting gcc-4.8.2.tar.bz2 with bsdtar
==> Starting prepare()...
patching file libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
patching file libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
==> Removing existing pkg/ directory...
==> Starting build()...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
checking for version 0.12 of ISL... yes
checking for version 0.17.0 of CLooG... no
checking for version 0.18.0 of CLooG... yes
The following languages will be built: c,c++,java,lto
*** This configuration is not supported in the following subdirectories:
     zlib gnattools target-libada target-libgfortran target-libgo target-libbacktrace target-libobjc
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for readelf... readelf
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... no
checking for gccgo... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... no
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objdump... no
checking for objdump... objdump
checking for ranlib... no
checking for ranlib... ranlib
checking for readelf... no
checking for readelf... readelf
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... host tool
checking where to find the target gccgo... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory '/home/eduardo/Documents/Programs and stuff/gcc-gcj/src/gcc-4.8.2/build'
/bin/sh: line 0: test: too many arguments
make[2]: Entering directory '/home/eduardo/Documents/Programs and stuff/gcc-gcj/src/gcc-4.8.2/build'
make[3]: Entering directory '/home/eduardo/Documents/Programs and stuff/gcc-gcj/src/gcc-4.8.2/build'
rm -f stage_current
make[3]: Leaving directory '/home/eduardo/Documents/Programs and stuff/gcc-gcj/src/gcc-4.8.2/build'
make[2]: Leaving directory '/home/eduardo/Documents/Programs and stuff/gcc-gcj/src/gcc-4.8.2/build'
make[2]: Entering directory '/home/eduardo/Documents/Programs and stuff/gcc-gcj/src/gcc-4.8.2/build'
Configuring stage 1 in ./intl
/bin/sh: /home/eduardo/Documents/Programs: No such file or directory
Makefile:5699: recipe for target 'configure-stage1-intl' failed
make[2]: *** [configure-stage1-intl] Error 127
make[2]: Leaving directory '/home/eduardo/Documents/Programs and stuff/gcc-gcj/src/gcc-4.8.2/build'
Makefile:20145: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/eduardo/Documents/Programs and stuff/gcc-gcj/src/gcc-4.8.2/build'
Makefile:885: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

What can I do?

Last edited by eduardowoj (2014-04-15 18:02:12)

Offline

#2 2014-04-15 16:15:50

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Can't install gcc-ecj!

The ggc-gcj PKGBUILD doesn't quote variables correctly, resulting in failure when directory names have spaces in them like on your system.

Look for lines like this :

make -j1 DESTDIR=${pkgdir} install-target-libjava

if you change all references to variables to something like this, it should work :
make -j1 DESTDIR="${pkgdir}" install-target-libjava


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2014-04-15 17:04:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [SOLVED] Can't install gcc-ecj!

I think Lone_wolf hit it on the head.  As a reference point, I started this compile about 30 minutes ago, and all is well so far, but my system does not have non-alpha characters in my build path.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#4 2014-04-15 18:01:56

eduardowoj
Member
Registered: 2014-01-14
Posts: 17

Re: [SOLVED] Can't install gcc-ecj!

Oh, it was just the space! It compiled on my computer, and after that I finally managed to install pdftk.

I didn't ever imagined a space could make so much mess!

Offline

Board footer

Powered by FluxBB