Skip to contentSkip to conversation

Trying to build icedtea7 fails currently

meta-java Sebastian Andrzej Siewior 2 participants 2 messages Jun 12, 2015 – Jul 7, 2015

lore
Share & tools
lore
#0 lore raw

building icedtea7-native fails currently if the host runs linux v4.0+. Duh. I tried to add a patch to "openjdk-7-release-03b147.inc" but it didn't get applied…

Upstream fixed it
https://bugs.openjdk.java.net/browse/JDK-8074312
https://bugs.openjdk.java.net/secure/attachment/25832/JDK-8074312-hotspot.patch

I workaround it with linux64 --uname-2.6. It helped but failed later with various errors such as:

| collect2: error: ld returned 1 exit status
| /home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/ jdk/make/common/internal/NativeCompileRules.gmk:74: recipe for target '/home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x8 6_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build-boot/tmp/sun/sun.awt/headless/obj64/awt_Font.o' failed
| make[6]: *** [/home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build /openjdk.build-boot/tmp/sun/sun.awt/headless/obj64/awt_Font.o] Error 1
| make[6]: *** Waiting for unfinished jobs....
| jdk/make/sun/headless/../../../src/solaris/native/sun/awt/fontpath.c:910: undefined reference to `FcFontSetDestroy'
| /home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/ jdk/make/sun/headless/../../../src/solaris/native/sun/awt/fontpath.c:878: undefined reference to `FcPatternDestroy'
| /tmp/cczs6cdu.o: In function `Java_sun_font_FontConfigManager_getFontConfigVersion':
| /home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/ jdk/make/sun/headless/../../../src/solaris/native/sun/awt/fontpath.c:740: undefined reference to `FcGetVersion'
| collect2: error: ld returned 1 exit status

Does someone have an idea?

Sebastian

#1 lore raw
Quoted 20 lines · Sebastian Andrzej Siewior

building icedtea7-native fails currently if the host runs linux v4.0+. Duh. I tried to add a patch to "openjdk-7-release-03b147.inc" but it didn't get applied…

Upstream fixed it
https://bugs.openjdk.java.net/browse/JDK-8074312
https://bugs.openjdk.java.net/secure/attachment/25832/JDK-8074312-hotspot.patch

I workaround it with linux64 --uname-2.6. It helped but failed later with various errors such as:

| collect2: error: ld returned 1 exit status
| /home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/ jdk/make/common/internal/NativeCompileRules.gmk:74: recipe for target '/home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x8 6_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build-boot/tmp/sun/sun.awt/headless/obj64/awt_Font.o' failed
| make[6]: *** [/home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build /openjdk.build-boot/tmp/sun/sun.awt/headless/obj64/awt_Font.o] Error 1
| make[6]: *** Waiting for unfinished jobs....
| jdk/make/sun/headless/../../../src/solaris/native/sun/awt/fontpath.c:910: undefined reference to `FcFontSetDestroy'
| /home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/ jdk/make/sun/headless/../../../src/solaris/native/sun/awt/fontpath.c:878: undefined reference to `FcPatternDestroy'
| /tmp/cczs6cdu.o: In function `Java_sun_font_FontConfigManager_getFontConfigVersion':
| /home/angstrom-distribution/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/ jdk/make/sun/headless/../../../src/solaris/native/sun/awt/fontpath.c:740: undefined reference to `FcGetVersion'
| collect2: error: ld returned 1 exit status
Quoted 1 line

Does someone have an idea?

The patch needs to be ported or icedtea to be upgraded; Can you take a look at this?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750