You are not logged in.

#1 2016-04-26 15:52:52

twenty3andaspie
Member
Registered: 2016-03-08
Posts: 12

[RESOLVED] Makepkg was unable to build java8-openjdk

When I run

yaourt -Syua

I get the following output:

==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build java8-openjdk.
==> Restart building jdk8-openjdk-infinality ? [y/N]
==> ------------------------------------------------
==> y

==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> Y

==> WARNING: This PKGBUILD describes a split package.
==> Specific package options are unknown
==> java8-openjdk dependencies:
 - ccache (already installed) [makedepend]
 - cpio (already installed) [makedepend]
 - unzip (already installed) [makedepend]
 - zip (already installed) [makedepend]
 - libxrender (already installed) [makedepend]
 - libxtst (already installed) [makedepend]
 - fontconfig (already installed) [makedepend]
 - libcups (already installed) [makedepend]
 - alsa-lib (already installed) [makedepend]
 - fontconfig-infinality (already installed) [makedepend]


==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> Y

==> WARNING: This PKGBUILD describes a split package.
==> Specific package options are unknown
==> java8-openjdk dependencies:
 - ccache (already installed) [makedepend]
 - cpio (already installed) [makedepend]
 - unzip (already installed) [makedepend]
 - zip (already installed) [makedepend]
 - libxrender (already installed) [makedepend]
 - libxtst (already installed) [makedepend]
 - fontconfig (already installed) [makedepend]
 - libcups (already installed) [makedepend]
 - alsa-lib (already installed) [makedepend]
 - fontconfig-infinality (already installed) [makedepend]


==> Continue building jdk8-openjdk-infinality ? [Y/n]
==> -------------------------------------------------
==> 

==> Building and installing package
==> Making package: java8-openjdk 8.u92-1 (Tue Apr 26 08:43:12 PDT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found jdk8u-jdk8u92-b14.tar.gz
  -> Found corba-jdk8u92-b14.tar.gz
  -> Found hotspot-jdk8u92-b14.tar.gz
  -> Found jdk-jdk8u92-b14.tar.gz
  -> Found jaxws-jdk8u92-b14.tar.gz
  -> Found jaxp-jdk8u92-b14.tar.gzerrorw
  -> Found langtools-jdk8u92-b14.tar.gz
  -> Found nashorn-jdk8u92-b14.tar.gz
  -> Found 004_add-fontconfig.patch
  -> Found 005_enable-infinality.patch
==> Validating source files with sha256sums...
    jdk8u-jdk8u92-b14.tar.gz ... Passed
    corba-jdk8u92-b14.tar.gz ... Passed
    hotspot-jdk8u92-b14.tar.gz ... Passed
    jdk-jdk8u92-b14.tar.gz ... Passed
    jaxws-jdk8u92-b14.tar.gz ... Passed
    jaxp-jdk8u92-b14.tar.gz ... Passed
    langtools-jdk8u92-b14.tar.gz ... Passed
    nashorn-jdk8u92-b14.tar.gz ... Passed
    004_add-fontconfig.patch ... Passed
    005_enable-infinality.patch ... Passed
==> Extracting sources...
  -> Extracting jdk8u-jdk8u92-b14.tar.gz with bsdtar
  -> Extracting corba-jdk8u92-b14.tar.gz with bsdtar
  -> Extracting hotspot-jdk8u92-b14.tar.gz with bsdtar
  -> Extracting jdk-jdk8u92-b14.tar.gz with bsdtar
  -> Extracting jaxws-jdk8u92-b14.tar.gz with bsdtar
  -> Extracting jaxp-jdk8u92-b14.tar.gz with bsdtar
  -> Extracting langtools-jdk8u92-b14.tar.gz with bsdtar
  -> Extracting nashorn-jdk8u92-b14.tar.gz with bsdtar
==> Starting prepare()...
patching file make/lib/Awt2dLibraries.gmk
Hunk #1 succeeded at 921 (offset 97 lines).
patching file src/share/native/sun/font/freetypeScaler.c
Hunk #3 succeeded at 663 (offset -20 lines).
Hunk #4 succeeded at 819 (offset -20 lines).
Hunk #5 succeeded at 839 (offset -20 lines).
Hunk #6 succeeded at 866 (offset -20 lines).
Hunk #7 succeeded at 895 (offset -20 lines).
Hunk #8 succeeded at 1115 (offset -20 lines).
Hunk #9 succeeded at 1132 (offset -20 lines).
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Running generated-configure.sh
configure: Configuration created at Tue Apr 26 08:43:14 PDT 2016.
configure: configure script generated at timestamp 1449096260.
checking for basename... /usr/bin/basename
checking for bash... /usr/bin/bash
checking for cat... /usr/bin/cat
checking for chmod... /usr/bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /usr/bin/cp
checking for cpio... /usr/bin/cpio
checking for cut... /usr/bin/cut
checking for date... /usr/bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /usr/bin/echo
checking for expr... /usr/bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for ln... /usr/bin/ln
checking for ls... /usr/bin/ls
checking for mkdir... /usr/bin/mkdir
checking for mktemp... /usr/bin/mktemp
checking for mv... /usr/bin/mv
checking for printf... /usr/bin/printf
checking for rm... /usr/bin/rm
checking for sh... /usr/bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for tar... /usr/bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /usr/bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... gawk
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for a sed that does not truncate output... /usr/bin/sed
checking for nawk... no
checking for gawk... /usr/bin/gawk
checking for cygpath... no
checking for readlink... /usr/bin/readlink
checking for df... /usr/bin/df
checking for SetFile... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking openjdk-build os-cpu... linux-x86_64
checking openjdk-target os-cpu... linux-x86_64
checking compilation type... native
checking for presence of closed sources... no
checking if closed source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which interpreter of the JVM to build... template
checking which variants of the JVM to build... server
checking which debug level to use... release
checking what configuration name to use... linux-x86_64-normal-server-release
checking for apt-get... no
checking for yum... no
checking for port... no
checking for pkgutil... no
checking for pkgadd... no
checking for gmake... no
checking for make... /usr/bin/make
configure: Testing potential make at /usr/bin/make, found using make in PATH
configure: Resolving FOUND_MAKE (as /usr/bin/make) failed, using /usr/bin/make directly.
configure: Using GNU make 3.81 (or later) at /usr/bin/make (version: GNU Make 4.1)
checking if find supports -delete... yes
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for ldd... /usr/bin/ldd
checking for readelf... /usr/bin/readelf
checking for hg... /usr/bin/hg
checking for stat... /usr/bin/stat
checking for time... /usr/bin/time
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for 7z... 7z
checking for wget... wget
checking headful support... include support for both headful and headless
checking for javac... /usr/bin/javac
checking for java... /usr/bin/java
configure: Found potential Boot JDK using java(c) in PATH
checking for Boot JDK... /usr/lib/jvm/java-8-openjdk
checking Boot JDK version... openjdk version "1.8.0_77" OpenJDK Runtime Environment (build 1.8.0_77-b03) OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode) 
checking for java in Boot JDK... ok
checking for javac in Boot JDK... ok
checking for javah in Boot JDK... ok
checking for javap in Boot JDK... ok
checking for jar in Boot JDK... ok
checking for rmic in Boot JDK... ok
checking for native2ascii in Boot JDK... ok
checking if Boot JDK is 32 or 64 bits... 64
checking flags for boot jdk java command ...  
checking flags for boot jdk java command for big workloads...  -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for boot jdk java command for small workloads...  -XX:+UseSerialGC -Xms32M -Xmx512M
checking for jtreg... no
checking for gcc... /usr/bin/gcc
configure: Resolving CC (as /usr/bin/gcc) failed, using /usr/bin/gcc directly.
checking resolved symbolic links for CC... /usr/bin/gcc
checking if CC is disguised ccache... no, keeping CC
configure: Using gcc (GCC) C compiler version 5.3.0 (located at /usr/bin/gcc)
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking for g++... /usr/bin/g++
configure: Resolving CXX (as /usr/bin/g++) failed, using /usr/bin/g++ directly.
checking resolved symbolic links for CXX... /usr/bin/g++
checking if CXX is disguised ccache... no, keeping CXX
configure: Using g++ (GCC) C++ compiler version 5.3.0 (located at /usr/bin/g++)
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++ accepts -g... yes
checking for ar... ar
configure: Rewriting AR to "/usr/bin/ar"
checking how to run the C preprocessor... /usr/bin/gcc -E
configure: Resolving CPP (as /usr/bin/gcc) failed, using /usr/bin/gcc directly.
checking how to run the C++ preprocessor... /usr/bin/g++ -E
configure: Resolving CXXCPP (as /usr/bin/g++) failed, using /usr/bin/g++ directly.
checking for otool... no
checking for nm... nm
configure: Rewriting NM to "/usr/bin/nm"
checking for strip... strip
configure: Rewriting STRIP to "/usr/bin/strip"
checking for gobjcopy... no
checking for objcopy... objcopy
configure: Rewriting OBJCOPY to "/usr/bin/objcopy"
checking for gobjdump... no
checking for objdump... objdump
configure: Rewriting OBJDUMP to "/usr/bin/objdump"
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking size of int *... 8
checking for target address size... 64 bits
checking whether byte ordering is bigendian... no
configure: WARNING: Ignoring CFLAGS(-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong) found in environment. Use --with-extra-cflags
configure: WARNING: Ignoring CXXFLAGS(-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong) found in environment. Use --with-extra-cxxflags
configure: WARNING: Ignoring LDFLAGS(-Wl,-O1,--sort-common,--as-needed,-z,relro) found in environment. Use --with-extra-ldflags
checking if compiler supports "-m64"... yes
checking if compiler supports "-m64"... yes
checking for broken SuSE 'ld' which only understands anonymous version tags in executables... no
checking if we should generate debug symbols... true
checking if we should zip debug-info files... yes
checking what is not needed on Linux?... pulse
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for X11/extensions/shape.h... yes
checking for X11/extensions/Xrender.h... yes
checking for X11/extensions/XTest.h... yes
checking for X11/Intrinsic.h... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
checking for FREETYPE... yes
checking for freetype... yes (using pkg-config)
checking if we can compile and link with freetype... yes
checking if we should bundle freetype... no
checking for ALSA... yes
checking for main in -ljpeg... yes
checking for which giflib to use... bundled
checking for compress in -lz... yes
checking for which zlib to use... system
checking for cos in -lm... yes
checking for dlopen in -ldl... yes
checking if dynamic link of stdc++ is possible... yes
checking if static link of stdc++ is possible... yes
checking how to link with libstdc++... static
checking if elliptic curve crypto implementation is present... yes
checking for number of cores... 8
checking for memory size... 32068 MB
checking for appropriate number of jobs to run in parallel... 7
checking whether to use sjavac... no
checking that precompiled headers work... yes
checking for ccache... /usr/bin/ccache
checking if ccache supports precompiled headers... no, disabling ccache
checking if build directory is on local disk... yes
configure: creating /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/config.status
config.status: creating /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/spec.gmk
config.status: creating /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/hotspot-spec.gmk
config.status: creating /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/bootcycle-spec.gmk
config.status: creating /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/compare.sh
config.status: creating /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/spec.sh
config.status: creating /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/Makefile
config.status: creating /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/config.h
config.status: /tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release/config.h is unchanged

====================================================
A new configuration has been successfully created in
/tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/build/linux-x86_64-normal-server-release
using configure arguments '--prefix=/tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14/image --with-update-version=92 --with-build-number=b14 --with-milestone=fcs --enable-unlimited-crypto --with-zlib=system'.

Configuration summary:
* Debug level:    release
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64

Tools summary:
* Boot JDK:       openjdk version "1.8.0_77" OpenJDK Runtime Environment (build 1.8.0_77-b03) OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode)  (at /usr/lib/jvm/java-8-openjdk)
* C Compiler:     gcc (GCC) version 5.3.0 (at /usr/bin/gcc)
* C++ Compiler:   g++ (GCC) version 5.3.0 (at /usr/bin/g++)

Build performance summary:
* Cores to use:   7
* Memory limit:   32068 MB
* ccache status:  installed, but disabled (version older than 3.1.4)

WARNING: The result of this configuration has overridden an older
configuration. You *should* run 'make clean' to make sure you get a
proper build. Failure to do so might result in strange build problems.

Building OpenJDK for target 'default' in configuration 'linux-x86_64-normal-server-release'

## Starting langtools
Compiling 2 files for BUILD_TOOLS
warning: [path] bad path element "/home/nick/GNUstep/Library/Libraries/Java": no such file or directory
warning: [path] bad path element "/usr/lib/GNUstep/Libraries/Java": no such file or directory
error: warnings found and -Werror specified
1 error
2 warnings
make[1]: *** No rule to make target 'all', needed by 'default'.  Stop.
/tmp/yaourt-tmp-nick/aur-jdk8-openjdk-infinality/src/jdk8u-jdk8u92-b14//make/Main.gmk:83: recipe for target 'langtools-only' failed
make: *** [langtools-only] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build java8-openjdk.

I have tried removing the 'jdk7-openjdk' from the makedepends section as suggested here. A few observations:

  • The paths GNUstep/Library/Libraries/Java etc do not exist, but when it asks for me to update the PKGBUILD, they are not referenced anywhere.

  • ccache -V indicates I have version 3.2.5, yet it reports my version is < 3.1.4. Also I have run whereis ccache to check in case I had multiple instances installed just in case:

    ➜  ~ whereis ccache
    ccache: /usr/bin/ccache /usr/lib/ccache /usr/share/man/man1/ccache.1.gz

I'm stumped, please help.

Last edited by twenty3andaspie (2016-04-26 16:30:07)

Offline

#2 2016-04-26 15:58:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [RESOLVED] Makepkg was unable to build java8-openjdk

Why are you building this from source?

Online

#3 2016-04-26 16:02:27

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

Re: [RESOLVED] Makepkg was unable to build java8-openjdk

Moving to AUR issues (Yaourt)


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

Offline

#4 2016-04-26 16:08:19

twenty3andaspie
Member
Registered: 2016-03-08
Posts: 12

Re: [RESOLVED] Makepkg was unable to build java8-openjdk

Scimmia wrote:

Why are you building this from source?

Ok, I see your point. I tried installing the repo (pacman) versions of these packages instead, and it prompted me saying that it conflicts with the (-infinality) version of the package. From my understanding the (-infinality) version of the packages fix the ugly fonts problem for Java-based apps.

After I install the repo versions and try to install the infinality versions with yaourt, then it fails to build

fi
mkdir -p stamps
touch stamps/rt.stamp
mkdir -p stamps
touch stamps/cacao.stamp
mkdir -p /tmp/yaourt-tmp-nick/aur-jdk7-openjdk-infinality/src/icedtea-2.6.4/rewriter.build
/tmp/yaourt-tmp-nick/aur-jdk7-openjdk-infinality/src/icedtea-2.6.4/bootstrap/jdk1.6.0/bin/javac -g -encoding utf-8  -J-Xmx1024m -Xprefer:source -source 7 -target 7 \
 -d /tmp/yaourt-tmp-nick/aur-jdk7-openjdk-infinality/src/icedtea-2.6.4/rewriter.build ./rewriter/com/redhat/rewriter/ClassRewriter.java
make: /tmp/yaourt-tmp-nick/aur-jdk7-openjdk-infinality/src/icedtea-2.6.4/bootstrap/jdk1.6.0/bin/javac: Command not found
Makefile:2814: recipe for target 'stamps/rewriter.stamp' failed
make: *** [stamps/rewriter.stamp] Error 127
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build java7-openjdk.
==> Restart building jdk7-openjdk-infinality ? [y/N]

Offline

#5 2016-04-26 16:18:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [RESOLVED] Makepkg was unable to build java8-openjdk

So we are talking about an AUR package here. Does it build in a clean chroot? If not, complain to the maintainer.

Online

#6 2016-04-26 16:34:16

twenty3andaspie
Member
Registered: 2016-03-08
Posts: 12

Re: [RESOLVED] Makepkg was unable to build java8-openjdk

Makes sense. I have marked as RESOLVED and directed correspondence here: https://aur.archlinux.org/pkgbase/java8-openjdk

Offline

Board footer

Powered by FluxBB