-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
25.0.1
-
x86_64
-
linux
ADDITIONAL SYSTEM INFORMATION :
Current Gentoo Linux, current openjdk https://packages.gentoo.org/packages/dev-java/openjdk
A DESCRIPTION OF THE PROBLEM :
Long time ago, compilation with (or without ccache) was working well on Gentoo.
One day, the following bug came: https://bugs.openjdk.org/browse/JDK-8148351
Followed by this commit: https://github.com/openjdk/jdk/commit/4260fd470cc1bb55bc0ebd33592f362dd763e262#diff-4f8a45ad4fc9bd09408dbc6b7acf70cdf32c871bd09240867fa3aecb36e1d68bR445 (see bottom of the page)
Since, then there is a new test:
# We can't handle ccache by gcc wrappers, since we need to know if we're
# using ccache. Instead ccache usage must be controlled by a configure option.
COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"`
if test "x$COMPILER_BASENAME" = "xccache"; then
AC_MSG_NOTICE([Please use --enable-ccache instead of providing a wrapped compiler.])
AC_MSG_ERROR([$TEST_COMPILER is a symbolic link to ccache. This is not supported.])
fi
fi
who breaks any attempt to compile openjdk (see actual result).
Gentoo bug: https://bugs.gentoo.org/677876
Some people (like me) are using this patch for years without any issue: https://bugs.gentoo.org/attachment.cgi?id=757227
It works with or without ccache.
ccache is wrapped. So it does not seem to be an issue (anymore?). And that test may (perhaps) be removed.
Kind regards
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
First install ccache:
# emerge -1 ccache
Then, try to install openjdk:
# FEATURES='ccache' emerge -1av openjdk
To ask Gentoo (its package manager Portage) to compile openjdk with ccache
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Compilation work and ccache used
ACTUAL -
configure: Using default toolchain gcc (GNU Compiler Collection)
checking for x86_64-pc-linux-gnu-gcc... /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
checking resolved symbolic links for CC... /usr/bin/ccache
configure: Please use --enable-ccache instead of providing a wrapped compiler.
configure: error: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc is a symbolic link to ccache. This is not supported.
configure exiting with result code 1
Current Gentoo Linux, current openjdk https://packages.gentoo.org/packages/dev-java/openjdk
A DESCRIPTION OF THE PROBLEM :
Long time ago, compilation with (or without ccache) was working well on Gentoo.
One day, the following bug came: https://bugs.openjdk.org/browse/JDK-8148351
Followed by this commit: https://github.com/openjdk/jdk/commit/4260fd470cc1bb55bc0ebd33592f362dd763e262#diff-4f8a45ad4fc9bd09408dbc6b7acf70cdf32c871bd09240867fa3aecb36e1d68bR445 (see bottom of the page)
Since, then there is a new test:
# We can't handle ccache by gcc wrappers, since we need to know if we're
# using ccache. Instead ccache usage must be controlled by a configure option.
COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"`
if test "x$COMPILER_BASENAME" = "xccache"; then
AC_MSG_NOTICE([Please use --enable-ccache instead of providing a wrapped compiler.])
AC_MSG_ERROR([$TEST_COMPILER is a symbolic link to ccache. This is not supported.])
fi
fi
who breaks any attempt to compile openjdk (see actual result).
Gentoo bug: https://bugs.gentoo.org/677876
Some people (like me) are using this patch for years without any issue: https://bugs.gentoo.org/attachment.cgi?id=757227
It works with or without ccache.
ccache is wrapped. So it does not seem to be an issue (anymore?). And that test may (perhaps) be removed.
Kind regards
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
First install ccache:
# emerge -1 ccache
Then, try to install openjdk:
# FEATURES='ccache' emerge -1av openjdk
To ask Gentoo (its package manager Portage) to compile openjdk with ccache
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Compilation work and ccache used
ACTUAL -
configure: Using default toolchain gcc (GNU Compiler Collection)
checking for x86_64-pc-linux-gnu-gcc... /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
checking resolved symbolic links for CC... /usr/bin/ccache
configure: Please use --enable-ccache instead of providing a wrapped compiler.
configure: error: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc is a symbolic link to ccache. This is not supported.
configure exiting with result code 1
- caused by
-
JDK-8148351 Only display resolved symlink for compiler, do not change path
-
- Resolved
-