6-6-6 / spark-overlay

11 stars 6 forks source link

Failed to compile kotlin-stdlib #18

Open terroo opened 2 years ago

terroo commented 2 years ago

sudo emerge --oneshot dev-java/kotlin-stdlib dev-java/kotlin-reflect

These are the packages that would be merged, in order:

Calculating dependencies... done! [ebuild N ] dev-java/kotlin-protobuf-lite-2.6.1 USE="-doc -source" [ebuild N ] dev-java/javax-inject-1-r4 USE="-doc -source" [ebuild N ] virtual/kotlin-1.6 [ebuild N ] dev-java/kotlin-annotations-jvm-1.6.10 USE="-binary -source -test" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-builtins-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-stdlib-1.6.10 USE="-binary -source -test" KOTLIN_SINGLE_TARGET="kotlin1-6" [uninstall ] dev-java/kotlin-stdlib-bootstrap-1.6.10 [blocks b ] dev-java/kotlin-stdlib:1.6 ("dev-java/kotlin-stdlib:1.6" is soft blocking dev-java/kotlin-stdlib-bootstrap-1.6.10) [ebuild N ] dev-java/kotlin-core-util-runtime-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-metadata-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-compiler-common-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-metadata-jvm-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-deserialization-common-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-compiler-common-jvm-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-descriptors-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-deserialization-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-deserialization-common-jvm-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-descriptors-jvm-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-core-descriptors-runtime-1.6.10 USE="-source" KOTLIN_SINGLE_TARGET="kotlin1-6" [ebuild N ] dev-java/kotlin-reflect-1.6.10 USE="-binary -source -test" KOTLIN_SINGLE_TARGET="kotlin1-6" [uninstall ] dev-java/kotlin-reflect-bootstrap-1.6.10 [blocks b ] dev-java/kotlin-reflect:1.6 ("dev-java/kotlin-reflect:1.6" is soft blocking dev-java/kotlin-reflect-bootstrap-1.6.10)

Would you like to merge these packages? [Yes/No] y

Verifying ebuild manifests Emerging (1 of 18) dev-java/kotlin-protobuf-lite-2.6.1::spark-overlay Emerging (2 of 18) dev-java/javax-inject-1-r4::gentoo Installing (2 of 18) dev-java/javax-inject-1-r4::gentoo Installing (1 of 18) dev-java/kotlin-protobuf-lite-2.6.1::spark-overlay Emerging (3 of 18) virtual/kotlin-1.6::spark-overlay Installing (3 of 18) virtual/kotlin-1.6::spark-overlay Emerging (4 of 18) dev-java/kotlin-annotations-jvm-1.6.10::spark-overlay Installing (4 of 18) dev-java/kotlin-annotations-jvm-1.6.10::spark-overlay Emerging (5 of 18) dev-java/kotlin-core-builtins-1.6.10::spark-overlay Installing (5 of 18) dev-java/kotlin-core-builtins-1.6.10::spark-overlay Emerging (6 of 18) dev-java/kotlin-stdlib-1.6.10::spark-overlay Failed to emerge dev-java/kotlin-stdlib-1.6.10, Log file: '/var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/temp/build.log' Jobs: 5 of 18 complete, 1 failed Load avg: 5.94, 4.94, 3.04

  • Package: dev-java/kotlin-stdlib-1.6.10
  • Repository: spark-overlay
  • Maintainer: liaoyuan@gmail.com
  • USE: abi_x86_64 amd64 elibc_glibc kernel_linux kotlin_single_target_kotlin1-6 userland_GNU
  • FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
  • Using: openjdk-bin-17
  • Using Kotlin compiler package: kotlin-bin-1.6 Unpacking source... Unpacking kotlin-1.6.10.tar.gz to /var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/work Unpacking /usr/share/kotlin-core-builtins-1.6/lib/kotlin-core-builtins.jar to /var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/work Source unpacked in /var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/work Preparing source in /var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/work/kotlin-1.6.10 ... Source prepared. Configuring source in /var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/work/kotlin-1.6.10 ... Source configured. Compiling source in /var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/work/kotlin-1.6.10 ...
  • Compiling ... libraries/stdlib/jvm/src/kotlin/coroutines/jvm/internal/boxing.kt:28:70: warning: 'constructor Short(kotlin.Short)' is deprecated. Deprecated in Java internal fun boxShort(primitive: Short): java.lang.Short = java.lang.Short(primitive) ^ libraries/stdlib/jvm/src/kotlin/coroutines/jvm/internal/boxing.kt:32:68: warning: 'constructor Integer(Int)' is deprecated. Deprecated in Java internal fun boxInt(primitive: Int): java.lang.Integer = java.lang.Integer(primitive) ^ libraries/stdlib/jvm/src/kotlin/coroutines/jvm/internal/boxing.kt:36:67: warning: 'constructor Long(kotlin.Long)' is deprecated. Deprecated in Java internal fun boxLong(primitive: Long): java.lang.Long = java.lang.Long(primitive) ^ libraries/stdlib/jvm/src/kotlin/coroutines/jvm/internal/boxing.kt:40:70: warning: 'constructor Float(kotlin.Float)' is deprecated. Deprecated in Java internal fun boxFloat(primitive: Float): java.lang.Float = java.lang.Float(primitive) ^ libraries/stdlib/jvm/src/kotlin/coroutines/jvm/internal/boxing.kt:44:73: warning: 'constructor Double(kotlin.Double)' is deprecated. Deprecated in Java internal fun boxDouble(primitive: Double): java.lang.Double = java.lang.Double(primitive) ^ libraries/stdlib/jvm/src/kotlin/coroutines/jvm/internal/boxing.kt:48:72: warning: 'constructor Character(Char)' is deprecated. Deprecated in Java internal fun boxChar(primitive: Char): java.lang.Character = java.lang.Character(primitive) ^ libraries/stdlib/jvm/src/kotlin/internal/PlatformImplementations.kt:54:130: warning: 'newInstance(): T!' is deprecated. Deprecated in Java return@run castToBaseType(Class.forName("kotlin.internal.jdk8.JDK8PlatformImplementations").newInstance()) ^ libraries/stdlib/jvm/src/kotlin/internal/PlatformImplementations.kt:57:125: warning: 'newInstance(): T!' is deprecated. Deprecated in Java return@run castToBaseType(Class.forName("kotlin.internal.JRE8PlatformImplementations").newInstance()) ^ libraries/stdlib/jvm/src/kotlin/internal/PlatformImplementations.kt:63:130: warning: 'newInstance(): T!' is deprecated. Deprecated in Java return@run castToBaseType(Class.forName("kotlin.internal.jdk7.JDK7PlatformImplementations").newInstance()) ^ libraries/stdlib/jvm/src/kotlin/internal/PlatformImplementations.kt:66:125: warning: 'newInstance(): T!' is deprecated. Deprecated in Java return@run castToBaseType(Class.forName("kotlin.internal.JRE7PlatformImplementations").newInstance()) ^ libraries/stdlib/src/kotlin/text/Strings.kt:296:32: warning: extension is shadowed by a member: public open fun isEmpty(): Boolean public inline fun CharSequence.isEmpty(): Boolean = length == 0 ^
  • Compiling Java sources ... warning: [options] bootstrap class path not set in conjunction with -source 6 error: Source option 6 is no longer supported. Use 7 or later. error: Target option 6 is no longer supported. Use 7 or later.
  • ERROR: dev-java/kotlin-stdlib-1.6.10::spark-overlay failed (compile phase):
  • Failed to compile Java sources
  • Call stack:
  • ebuild.sh, line 122: Called src_compile
  • environment, line 2808: Called kotlin-libs_src_compile
  • environment, line 2454: Called kotlin-utils_src_compile
  • environment, line 2698: Called die
  • The specific snippet of code:
  • $(java-pkg_get-javac) -d "${KOTLIN_UTILS_CLASSES}" -classpath "${java_classpath}" -encoding "${JAVA_ENCODING}" ${KOTLIN_JAVA_WANT_SOURCE_TARGET:+-source "${KOTLIN_JAVA_WANT_SOURCE_TARGET}"} ${KOTLIN_JAVA_WANT_SOURCE_TARGET:+-target "${KOTLIN_JAVA_WANT_SOURCE_TARGET}"} "${KOTLIN_JAVAC_ARGS[@]}" "@${java_sources}" || die "Failed to compile Java sources";
  • If you need support, post the output of emerge --info '=dev-java/kotlin-stdlib-1.6.10::spark-overlay',
  • the complete build log and the output of emerge -pqv '=dev-java/kotlin-stdlib-1.6.10::spark-overlay'. !!! When you file a bug report, please include the following information: GENTOO_VM=openjdk-bin-17 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-17.0.3_p7" JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="" and of course, the output of emerge --info =kotlin-stdlib-1.6.10
  • The complete build log is located at '/var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/temp/build.log'.
  • The ebuild environment file is located at '/var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/temp/environment'.
  • Working directory: '/var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/work/kotlin-1.6.10'
  • S: '/var/tmp/portage/dev-java/kotlin-stdlib-1.6.10/work/kotlin-1.6.10'
6-6-6 commented 2 years ago

Hi, I have just tried

emerge -a1v dev-java/kotlin-stdlib-bootstrap:1.6 dev-java/kotlin-reflect-bootstrap:1.6
emerge -a1v kotlin-bin:1.6
emerge -1 dev-java/kotlin-stdlib:1.6 dev-java/kotlin-reflect:1.6

without failure.

I used

 * Using: openjdk-bin-11
 * Using Kotlin compiler package: kotlin-bin-1.6

to compile dev-java/kotlin-stdlib.

Could you please try it again (with jdk:11, I suppose)?

If you still encounter the same problem, could you please provide the output of emerge --info '=dev-java/kotlin-stdlib-1.6.10::spark-overlay' and so on for us to reproduce the bug?