Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579886 - dev-java/icedtea-3.0.0 OpenJDK configuration script CHOST issues.
Summary: dev-java/icedtea-3.0.0 OpenJDK configuration script CHOST issues.
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-14 00:19 UTC by Aric Belsito
Modified: 2016-06-25 20:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix toolchain misdetection (icedtea8-gcc-triples.patch,824 bytes, patch)
2016-06-13 21:05 UTC, Aric Belsito
Details | Diff
Patch that replaces the old autoconf-config.guess/sub with the contents of sys-devel/gnuconfig-20160402 (icedtea8-new-gnuconfig.patch,50.89 KB, patch)
2016-06-13 21:07 UTC, Aric Belsito
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aric Belsito 2016-04-14 00:19:47 UTC
I am unable to build icedtea-3.0.0 because the compilation fails in the configure stage for OpenJDK.

(Note, I'm building this on MUSL, but have been previously able to build IcedTea by using a patch set)

First of all, configuration fails at:
checking build system type... Invalid Configuration `x86_64-gentoo-linux-musl': machine `x86_64-gentoo-linux' not recognized.

This is fixable by replacing autoconf-config.guess and autoconf-config.sub in openjdk/common/autoconf/build-aux (these versions of config.guess and config.sub are many years out of date.)

Then, configuration fails once again at:
checking for x86_64-gentoo-linux-musl-gcc... /usr/bin/x86_64-gentoo-linux-musl-gcc
configure: Resolving CC (as /usr/bin/x86_64-gentoo-linux-musl-gcc) failed, using /usr/bin/x86_64-gentoo-linux-musl-gcc directly.
checking resolved symbolic links for CC... no symlink
configure: The C compiler (located as /usr/bin/x86_64-gentoo-linux-musl-gcc) does not seem to be the recommended GCC compiler.
configure: The result from running with --version was: "x86_64-gentoo-linux-musl-gcc (Gentoo Hardened 5.3.0 p1.0, pie-0.6.5) 5.3.0"
configure: The C compiler (located as /usr/bin/x86_64-gentoo-linux-musl-gcc) does not seem to be the Clang compiler either.
configure: The result from running with --version was: "x86_64-gentoo-linux-musl-gcc (Gentoo Hardened 5.3.0 p1.0, pie-0.6.5) 5.3.0"
configure: error: GCC or Clang compiler is required. Try setting --with-tools-dir.

Apparently toolchain.m4 believes that the the information gcc prints will always begin with "gcc".

After changing these bits, configure and build continues as expected.
Comment 1 Aric Belsito 2016-06-13 21:05:45 UTC
Created attachment 437446 [details, diff]
Patch to fix toolchain misdetection
Comment 2 Aric Belsito 2016-06-13 21:07:06 UTC
Created attachment 437448 [details, diff]
Patch that replaces the old autoconf-config.guess/sub with the contents of sys-devel/gnuconfig-20160402