This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch java-team
in repository guix.

The following commit(s) were added to refs/heads/java-team by this push:
     new 51b5e763cbb gnu: icedtea-7: Build with gcc-14.
51b5e763cbb is described below

commit 51b5e763cbb52c73708f9d6a8c0317471bd78e0f
Author: Yelninei <[email protected]>
AuthorDate: Fri Sep 4 12:36:17 2026 +0000

    gnu: icedtea-7: Build with gcc-14.
    
    Really fixes guix/guix#703.
    
    Suggested by stikonas on irc.
    
    * gnu/packages/java.scm (icedtea-7)[native-inputs]: Remove gcc-13.
    [#:phases]: Add 'reduce-optimizations phase.
    (icedtea-8): Remove 'reduce-optimizations.
    
    Change-Id: Ie6af2ca1628a8390470c2cb24c4434da4f61f93a
    Signed-off-by: Julien Lepiller <[email protected]>
---
 gnu/packages/java.scm | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 3fed350ae40..87bb6669833 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -399,6 +399,10 @@ CurrencyData.properties"
                 (setenv "ALT_FREETYPE_LIB_PATH"
                         (string-append #$(this-package-input "freetype")
                                        "/lib"))))
+            (add-before 'build 'reduce-optimizations
+              (lambda _
+                ;; Needed for gcc-14
+                (setenv "EXTRA_CFLAGS" "-O1")))
             (add-before 'build 'disable-os-version-check
               ;; allow build on linux major version change
               (lambda _
@@ -598,14 +602,7 @@ CurrencyData.properties"
                                 (string-append #$output:jdk
                                                "/jre/lib/security"))))))))
       (native-inputs
-       ;; XXX: Compiling with gcc-14 will encounter the following error:
-       ;; BUILD FAILED:
-       ;; 
/tmp/guix-build-icedtea-2.6.13.drv-0/icedtea-2.6.13/openjdk/langtools/
-       ;; make/build.xml:452: The following error occurred while executing this
-       ;; line:
-       ;; java.lang.AbstractMethodError: 
java.lang.Throwable.toString()Ljava/lang/String;
-       `(("gcc" ,gcc-13)
-         ("openjdk-src"
+       `(("openjdk-src"
           ,(drop "openjdk"
                  "0l34ikyf62hbzlf9032alzkkqvf7bpmckz4gvirvph755w7gka8l"))
          ("corba-drop"
@@ -770,6 +767,7 @@ IcedTea build harness.")
               (delete 'patch-patches)
               (delete 'patch-bitrot)
               (delete 'use-classpath)
+              (delete 'reduce-optimizations)
               (replace 'build
                 (lambda* (#:key (make-flags '()) #:allow-other-keys)
                   ;; Prevent passing -j (parallel-job-count) to make, which

Reply via email to