Re: RFR: 8349467: INIT_TARGETS tab completions on "make" lost with JDK-8348998

2025-04-04 Thread Thomas Stuefe
On Wed, 2 Apr 2025 20:38:48 GMT, Magnus Ihse Bursie wrote: > [JDK-8348998](https://bugs.openjdk.org/browse/JDK-8348998) broke tab > completion for all init targets, i.e. `print-modules print-targets > print-configuration print-tests reconfigure pre-compare-build > post-compare-build`, of which

Re: RFR: 8353449: [BACKOUT] One instance of STATIC_LIB_CFLAGS was missed in JDK-8345683

2025-04-04 Thread Magnus Ihse Bursie
On Tue, 1 Apr 2025 12:41:48 GMT, David Holmes wrote: > Revert "8353272: One instance of STATIC_LIB_CFLAGS was missed in JDK-8345683" > > This reverts commit cef5610b5d4f7c5c2ceda46995ef3a0d961294e5. > > This causes failures building the static libs on Windows and macOS. > > Thanks LGTM. Sorry

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v2]

2025-04-04 Thread Christoph Langer
On Fri, 4 Apr 2025 15:22:10 GMT, Severin Gehwolf wrote: >> For JEP 493-enabled builds there are no JMODs. Certain files come from the >> installed JDK image when a user creates a custom run-time from it. This is >> problematic for example for files that often come from a different package >> (

Re: RFR: 8304674: File java.c compile error with -fsanitize=address -O0 [v3]

2025-04-04 Thread Julian Waters
On Tue, 1 Apr 2025 12:07:09 GMT, SendaoYan wrote: >> Hi all, >> File src/java.base/share/native/libjli/java.c compile error: control reaches >> end of non-void function [-Werror=return-type] with gcc options >> -fsanitize=address -O0. The function int JavaMain(void* _args) in this file >> will

Re: RFR: 8352044: Add --with-import-jvms to configure

2025-04-04 Thread Magnus Ihse Bursie
On Mon, 17 Mar 2025 09:10:50 GMT, Alan Bateman wrote: > The discussion on jdk-dev was useful but I don't think adding > --with-import-jvms is the right direction. It's too fragile and loose to > import from a build created somewhere else. Why's that? It's more loose than just "importing" a jtr

Re: RFR: 8304674: File java.c compile error with -fsanitize=address -O0

2025-04-04 Thread SendaoYan
On Mon, 31 Mar 2025 12:57:38 GMT, Magnus Ihse Bursie wrote: > While I normally advocate using DISABLE_WARNING in makefiles instead of > pragmas, in this particular case I wonder if not a pragma in the `LEAVE` > macro would be better? PR has been changed to use `#pragma GCC diagnostic ignored "

Re: RFR: 8352064: AIX: now also able to build static-jdk image with a statically linked launcher [v3]

2025-04-04 Thread Joachim Kern
On Fri, 21 Mar 2025 10:33:10 GMT, Magnus Ihse Bursie wrote: >> Joachim Kern has updated the pull request incrementally with one additional >> commit since the last revision: >> >> added needed include > > make/StaticLibs.gmk line 117: > >> 115: OUTPUT_FILE := $(lib).exp, \ >> 116:

Re: RFR: 8348282: Add option for syntax highlighting in javadoc snippets

2025-04-04 Thread Erik Joelsson
On Thu, 3 Apr 2025 14:48:58 GMT, Hannes Wallnöfer wrote: > Please review a change to add a `javadoc` option to enable syntax > highlighting for code fragments in snippets and `` tags. The new > `--syntax-highlight` option uses the [highlight.js] JavaScript library and > supports Java, Propert

Re: RFR: 8352084: Add more test code in TestSetupAOT.java [v3]

2025-04-04 Thread Ioi Lam
On Mon, 17 Mar 2025 16:07:09 GMT, Leonid Mesnik wrote: >> Ioi Lam has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fixed windows path problem > > Marked as reviewed by lmesnik (Reviewer). Thanks @lmesnik @erikj79 @vnkozlov for the review

Re: RFR: 8352645: Add tool support to check order of includes

2025-04-04 Thread Johan Sjölen
On Sun, 23 Mar 2025 21:14:47 GMT, Doug Simon wrote: > This PR adds `bin/sort_includes.py`, a python3 script to check that blocks of > include statements in C++ files are sorted alphabetically and that there's at > least one blank line between user and sys includes (as per the [style > guide](h

Re: RFR: 8353449: [BACKOUT] One instance of STATIC_LIB_CFLAGS was missed in JDK-8345683

2025-04-04 Thread David Holmes
On Tue, 1 Apr 2025 12:41:48 GMT, David Holmes wrote: > Revert "8353272: One instance of STATIC_LIB_CFLAGS was missed in JDK-8345683" > > This reverts commit cef5610b5d4f7c5c2ceda46995ef3a0d961294e5. > > This causes failures building the static libs on Windows and macOS. > > Thanks Thanks for

Re: RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH

2025-04-04 Thread David Holmes
On Tue, 1 Apr 2025 09:13:45 GMT, Joachim Kern wrote: > In the JDK launcher, there is a codepath which would set/modify the > LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can > also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which > contains a li

RFR: 8353066: Properly detect Windows/aarch64 as build platform

2025-04-04 Thread Magnus Ihse Bursie
Configure does not properly detect Windows/aarch64 on Cygwin. One complicating factor here is that no native aarch64 version of Cygwin exists, so it is running x64 binaries in emulated mode. - Commit messages: - 8353066: Properly detect Windows/aarch64 as build platform Changes: h

Re: RFR: 8349075: Once again allow -compilejdk in JAVA_OPTIONS

2025-04-04 Thread Robbin Ehn
On Wed, 2 Apr 2025 17:57:06 GMT, Magnus Ihse Bursie wrote: > [JDK-8348905](https://bugs.openjdk.org/browse/JDK-8348905) added the > possibility to set `JDK_FOR_COMPILE` on the command line to pass the > `-compilejdk:` argument to jtreg. Unfortunately the way it did this meant > that -compilejd

Re: RFR: 8351277: Remove pipewire from AIX build [v2]

2025-04-04 Thread Alexander Zvegintsev
On Thu, 20 Mar 2025 22:19:47 GMT, Magnus Ihse Bursie wrote: >> src/java.desktop/unix/native/libawt_xawt/awt/screencast_pipewire.c line 1104: >> >>> 1102: Java_sun_awt_screencast_ScreencastHelper_closeSession(JNIEnv *env, >>> jclass cls) { >>> 1103: } >>> 1104: >> >> Suggestion: >> >> >> >>

RFR: 8315844: $LSB_RELEASE is not defined before use

2025-04-04 Thread Magnus Ihse Bursie
When running configure on WSL, the following error message is printed, instead of proper Linux environment info: /build/.configure-support/generated-configure.sh: line 13102: -d: command not found This is due to us calling `$LSB_RELEASE -d`, but LSB_RELEASE is not yet defined at that po

Re: RFR: 8349665: Make clean removes module-deps.gmk

2025-04-04 Thread Magnus Ihse Bursie
On Thu, 3 Apr 2025 09:18:07 GMT, Magnus Ihse Bursie wrote: > After [JDK-8292944](https://bugs.openjdk.org/browse/JDK-8292944), we only > generate module-deps.gmk once at the start of Init.gmk. This causes `make > clean ` to first generate and then remove module-deps.gmk > after which the rest

Re: RFR: 8353217: Build libsleef on macos-aarch64

2025-04-04 Thread Magnus Ihse Bursie
On Sat, 29 Mar 2025 17:41:29 GMT, Julian Waters wrote: >> Build and use SLEEF library as a backend implementation for Vector API >> trigonometric functions on macosx-aarch64 platform. >> >> It improves raw throughput and eliminates GC overhead of non-intrinsified >> Vector API operation. >> >

Re: RFR: 8304674: File java.c compile error with -fsanitize=address -O0 [v2]

2025-04-04 Thread SendaoYan
> Hi all, > File src/java.base/share/native/libjli/java.c compile error: control reaches > end of non-void function [-Werror=return-type] with gcc options > -fsanitize=address -O0. The function int JavaMain(void* _args) in this file > will execute return ret in LEAVE() macro, but gcc with -O0 is

Re: RFR: 8353217: Build libsleef on macos-aarch64

2025-04-04 Thread Vladimir Ivanov
On Mon, 31 Mar 2025 12:27:23 GMT, Magnus Ihse Bursie wrote: >> Build and use SLEEF library as a backend implementation for Vector API >> trigonometric functions on macosx-aarch64 platform. >> >> It improves raw throughput and eliminates GC overhead of non-intrinsified >> Vector API operation.

Re: RFR: 8353217: Build libsleef on macos-aarch64

2025-04-04 Thread Magnus Ihse Bursie
On Sat, 29 Mar 2025 17:46:43 GMT, Julian Waters wrote: > Is leaving the sources of sleef in share/native the right thing to do? No, it should move to the least common directory for all platforms where it is needed. In this case, it should move to `unix` instead of `share`. But code that were

RFR: 8301197: Make sure use of printf is correct and actually needed

2025-04-04 Thread Magnus Ihse Bursie
We have been sloppy in our use of `printf` in make code. Most of the time, we should really use `echo` instead. If we do need to use `printf`, we should never inline make or shell variables into the formatting string, since they may contain `%` which will be interpreted as formatting. Instead, w

Re: RFR: 8352506: Simplify make/test/JtregNativeHotspot.gmk

2025-04-04 Thread Magnus Ihse Bursie
On Thu, 20 Mar 2025 20:59:34 GMT, David Holmes wrote: >> The file to setup special arguments to native JTReg Hotspot tests is >> needlessly complicated. With some generalisation, we can make it much >> simpler. > > make/test/JtregNativeHotspot.gmk line 121: > >> 119: -I$(VM_TESTBASE_DIR)/n

Re: RFR: 8315844: $LSB_RELEASE is not defined before use

2025-04-04 Thread Magnus Ihse Bursie
On Thu, 3 Apr 2025 18:40:05 GMT, Magnus Ihse Bursie wrote: >> make/autoconf/basic_tools.m4 line 109: >> >>> 107: UTIL_LOOKUP_PROGS(WHOAMI, whoami) >>> 108: >>> 109: # Tools only needed on some platforms >> >> Comment still relevant? Or is it needed on all platforms? > > No, so I removed it

Re: RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH [v2]

2025-04-04 Thread Jaikiran Pai
On Thu, 3 Apr 2025 13:09:10 GMT, Joachim Kern wrote: >> In the JDK launcher, there is a codepath which would set/modify the >> LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can >> also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which >> contains

Re: RFR: 8353009: Document target selection flag for Windows AArch64 builds [v2]

2025-04-04 Thread Saint Wesonga
> The target selection configuration flag for Windows AArch64 should be added > to the build documentation for improved discoverability and completeness. Saint Wesonga has updated the pull request incrementally with one additional commit since the last revision: Clarify that instructions are

RFR: 8304674: File java.c compile error with -fsanitize=address -O0

2025-04-04 Thread SendaoYan
Hi all, File src/java.base/share/native/libjli/java.c compile error: control reaches end of non-void function [-Werror=return-type] with gcc options -fsanitize=address -O0. The function int JavaMain(void* _args) in this file will execute return ret in LEAVE() macro, but gcc with -O0 is not smart

Re: RFR: 8353573: System giflib not found by configure if it's not in system directories

2025-04-04 Thread duke
On Thu, 3 Apr 2025 08:04:50 GMT, snake66 wrote: > The configure script is not able to pick up the giflib installed via system > packages if it's not located in the system include and lib directories. Since > giflib does not provide a pkgconfig, arguments to specify the location of the > includ

Re: RFR: 8353066: Properly detect Windows/aarch64 as build platform

2025-04-04 Thread christian
On Wed, 2 Apr 2025 23:25:28 GMT, Magnus Ihse Bursie wrote: > Configure does not properly detect Windows/aarch64 on Cygwin. One > complicating factor here is that no native aarch64 version of Cygwin exists, > so it is running x64 binaries in emulated mode. Marked as reviewed by skateb...@github

Re: RFR: 8353580: libjpeg is not found if not installed in system directories

2025-04-04 Thread duke
On Thu, 3 Apr 2025 07:59:26 GMT, snake66 wrote: > The autoconf scrips fail to find libjpeg on systems where it's not installed > in the default system include and library directories. It should check for > the pkgconfig in these cases. > > This work is sponsored by The FreeBSD Foundation @sna

Re: RFR: 8353009: Document target selection flag for Windows AArch64 builds [v3]

2025-04-04 Thread Magnus Ihse Bursie
On Mon, 31 Mar 2025 18:11:27 GMT, Saint Wesonga wrote: >> The target selection configuration flag for Windows AArch64 should be added >> to the build documentation for improved discoverability and completeness. > > Saint Wesonga has updated the pull request incrementally with one additional > c

RFR: 8300339: Run jtreg in the work dir

2025-04-04 Thread Magnus Ihse Bursie
We had a test setup failure in our distributed test system where the process running jtreg crashed. This caused the hs_err file to end up in the root of the source tree. Dropping crash files in the source tree is bad practice and makes it harder to find such files. We should change the current w

Re: RFR: 8353573: System giflib not found by configure if it's not in system directories

2025-04-04 Thread Harald Eilertsen
On Fri, Apr 04, 2025 at 07:02:48AM +, Erik Joelsson wrote: > On Thu, 3 Apr 2025 08:04:50 GMT, snake66 wrote: > > > The configure script is not able to pick up the giflib installed via system > > packages if it's not located in the system include and lib directories. > > Since giflib does not

Re: javac stack overflow on loongson3 with zero variant

2025-04-04 Thread Bingwu Zhang
On Sunday, March 30, 2025 2:58:30 PM China Standard Time Bingwu Zhang wrote: > I have spent a whole weekend on bisecting, due to the poor performance of > the loongson3 processors and some recent network issues of the AOSC's build > servers (where I do the bisect). Current progress is ~16 commits/4

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493 [v2]

2025-04-04 Thread Severin Gehwolf
On Fri, 4 Apr 2025 15:22:10 GMT, Severin Gehwolf wrote: >> For JEP 493-enabled builds there are no JMODs. Certain files come from the >> installed JDK image when a user creates a custom run-time from it. This is >> problematic for example for files that often come from a different package >> (

Integrated: 8353066: Properly detect Windows/aarch64 as build platform

2025-04-04 Thread Magnus Ihse Bursie
On Wed, 2 Apr 2025 23:25:28 GMT, Magnus Ihse Bursie wrote: > Configure does not properly detect Windows/aarch64 on Cygwin. One > complicating factor here is that no native aarch64 version of Cygwin exists, > so it is running x64 binaries in emulated mode. This pull request has now been integra

RFR: 8349665: Make clean removes module-deps.gmk

2025-04-04 Thread Magnus Ihse Bursie
After [JDK-8292944](https://bugs.openjdk.org/browse/JDK-8292944), we only generate module-deps.gmk once at the start of Init.gmk. This causes `make clean ` to first generate and then remove module-deps.gmk after which the rest of the build proceeds without a module-deps.gmk, causing problems wi

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493

2025-04-04 Thread Severin Gehwolf
On Fri, 4 Apr 2025 07:55:20 GMT, Alan Bateman wrote: >>> Part of me is concerned that the hidden option is a bit of an attractive >>> nuisance. What would you think about just having a fixed list in a >>> properties file in the repo, thus a resource in the jlink module. This >>> would avoid th

Re: RFR: 8301197: Make sure use of printf is correct and actually needed

2025-04-04 Thread Magnus Ihse Bursie
On Fri, 4 Apr 2025 13:53:57 GMT, Erik Joelsson wrote: >> I'm not sure I agree. Why would: >> >> $$(ECHO) -n '$$($1_OVERVIEW_TEXT)' >> >> be better than >> >> $$(PRINTF) "%s" '$$($1_OVERVIEW_TEXT)' >> >> ? >> >> We're kind of squabbling over details here, and it really doesn't matter as >>

Re: RFR: 8301197: Make sure use of printf is correct and actually needed [v3]

2025-04-04 Thread Magnus Ihse Bursie
> We have been sloppy in our use of `printf` in make code. Most of the time, we > should really use `echo` instead. If we do need to use `printf`, we should > never inline make or shell variables into the formatting string, since they > may contain `%` which will be interpreted as formatting. In

Re: RFR: 8353009: Document target selection flag for Windows AArch64 builds [v3]

2025-04-04 Thread Matthias Baesken
On Mon, 31 Mar 2025 18:11:27 GMT, Saint Wesonga wrote: >> The target selection configuration flag for Windows AArch64 should be added >> to the build documentation for improved discoverability and completeness. > > Saint Wesonga has updated the pull request incrementally with one additional > c

Re: RFR: 8352693: Use a simpler console reader instead of JLine for System.console() [v3]

2025-04-04 Thread Magnus Ihse Bursie
On Thu, 3 Apr 2025 18:12:54 GMT, Jan Lahoda wrote: >> The `java.io.Console` has several backends: a simple on in `java.base`, a >> more convenient one in `jdk.internal.le` (with line-reading based on JLine) >> and one for JShell. >> >> The backend based on JLine is proving to be a somewhat pro

Re: RFR: 8301197: Make sure use of printf is correct and actually needed [v2]

2025-04-04 Thread Magnus Ihse Bursie
> We have been sloppy in our use of `printf` in make code. Most of the time, we > should really use `echo` instead. If we do need to use `printf`, we should > never inline make or shell variables into the formatting string, since they > may contain `%` which will be interpreted as formatting. In

Re: RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace [v3]

2025-04-04 Thread Magnus Ihse Bursie
On Tue, 11 Mar 2025 09:12:45 GMT, David Linus Briemann wrote: >> Add an .editorconfig to define indentation, trim trailing whitespace and >> open curly brace position for C++ and Java. >> This allows various editors to easily infer basics of the coding style. > > David Linus Briemann has updated

RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace

2025-04-04 Thread Magnus Ihse Bursie
Alternative to https://github.com/openjdk/jdk/pull/23693 for implementing JDK-8311227. This `.editorconfig` file is a 1-to-1 conversion of the checks done by jcheck into .editorconfig format. I believe that is a better way to introduce an `.editorconfig` file into the existing JDK project. ---

Integrated: 8349467: INIT_TARGETS tab completions on "make" lost with JDK-8348998

2025-04-04 Thread Magnus Ihse Bursie
On Wed, 2 Apr 2025 20:38:48 GMT, Magnus Ihse Bursie wrote: > [JDK-8348998](https://bugs.openjdk.org/browse/JDK-8348998) broke tab > completion for all init targets, i.e. `print-modules print-targets > print-configuration print-tests reconfigure pre-compare-build > post-compare-build`, of which

Re: RFR: 8301197: Make sure use of printf is correct and actually needed

2025-04-04 Thread Erik Joelsson
On Fri, 4 Apr 2025 13:41:17 GMT, Magnus Ihse Bursie wrote: >> I wasn't aware of that feature in `echo`, but I agree that if we are using >> printf just to omit the line break, then `echo -n` seems like a better >> choice. > > I'm not sure I agree. Why would: > > $$(ECHO) -n '$$($1_OVERVIEW_TEX

Integrated: 8340341: Abort in configure when using Xcode 16.0 or 16.1

2025-04-04 Thread Magnus Ihse Bursie
On Thu, 3 Apr 2025 09:44:02 GMT, Magnus Ihse Bursie wrote: > The JDK mainline build when using XCode 16 or 16.1 fails with: > > > * For target > buildtools_create_symbols_javac__the.COMPILE_CREATE_SYMBOLS_batch: > Exception in thread "main" java.lang.ClassFormatError: StackMapTable format > e

Integrated: 8350774: Generated test- targets broken after JDK-8348998

2025-04-04 Thread Magnus Ihse Bursie
On Wed, 2 Apr 2025 20:24:12 GMT, Magnus Ihse Bursie wrote: > Unfortunately, JDK-8348998 broke the generation of the "test-" > group of targets. > > Or, rather, it breaks the first time you run it in a new configuration. The > problem is that we need to populate the find-test.gmk cache before c

Re: RFR: 8301197: Make sure use of printf is correct and actually needed

2025-04-04 Thread Magnus Ihse Bursie
On Fri, 4 Apr 2025 07:17:16 GMT, Erik Joelsson wrote: >> `echo -n` ? > > I wasn't aware of that feature in `echo`, but I agree that if we are using > printf just to omit the line break, then `echo -n` seems like a better choice. I'm not sure I agree. Why would: $$(ECHO) -n '$$($1_OVERVIEW_TEXT

Re: RFR: 8301197: Make sure use of printf is correct and actually needed

2025-04-04 Thread Magnus Ihse Bursie
On Fri, 4 Apr 2025 02:35:07 GMT, David Holmes wrote: >> We have been sloppy in our use of `printf` in make code. Most of the time, >> we should really use `echo` instead. If we do need to use `printf`, we >> should never inline make or shell variables into the formatting string, >> since they

Re: RFR: 8353066: Properly detect Windows/aarch64 as build platform

2025-04-04 Thread Magnus Ihse Bursie
On Fri, 4 Apr 2025 09:14:12 GMT, christian wrote: > Have you made it work with WSL2? made the configure work, but the build ran > into issues. WSL2 has been more problematic to get to work with the OpenJDK build than WSL1. Don't be fooled by the "version" numbers, WSL1 is a completely differen

Integrated: 8315844: $LSB_RELEASE is not defined before use

2025-04-04 Thread Magnus Ihse Bursie
On Thu, 3 Apr 2025 10:04:59 GMT, Magnus Ihse Bursie wrote: > When running configure on WSL, the following error message is printed, > instead of proper Linux environment info: > > > /build/.configure-support/generated-configure.sh: line 13102: -d: command > not found > > > This is due

Re: RFR: 8353066: Properly detect Windows/aarch64 as build platform

2025-04-04 Thread christian
On Thu, 3 Apr 2025 21:41:21 GMT, Phil Race wrote: > works for me on Windows 11 aarch64 generated the right configure and the > build seems to be doing aarch64 things. same here. backported it locally to 21u and it works there, too. thx Have you made it work with WSL2? made the configure work

RFR: 8353709: Debug symbols bundle should contain full debug files when building --with-external-symbols-in-bundles=public

2025-04-04 Thread Christoph Langer
Currently, when building with `--with-external-symbols-in-bundles=public`, the debug symbols bundle contains the stripped pdb files. It should better have the full pdb files since stripped pdbs are in the runtime image already. - Commit messages: - JDK-8353709 Changes: https://git

Re: RFR: 8353066: Properly detect Windows/aarch64 as build platform

2025-04-04 Thread Erik Joelsson
On Wed, 2 Apr 2025 23:25:28 GMT, Magnus Ihse Bursie wrote: > Configure does not properly detect Windows/aarch64 on Cygwin. One > complicating factor here is that no native aarch64 version of Cygwin exists, > so it is running x64 binaries in emulated mode. Marked as reviewed by erikj (Reviewer)

Re: RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace [v3]

2025-04-04 Thread Martin Doerr
On Tue, 11 Mar 2025 09:12:45 GMT, David Linus Briemann wrote: >> Add an .editorconfig to define indentation, trim trailing whitespace and >> open curly brace position for C++ and Java. >> This allows various editors to easily infer basics of the coding style. > > David Linus Briemann has updated

Re: RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH [v3]

2025-04-04 Thread Joachim Kern
> In the JDK launcher, there is a codepath which would set/modify the > LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can > also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which > contains a libjvm.so. > > The LD_LIBRARY_PATH is set to $JVMPATH:$J

Re: RFR: 8353709: Debug symbols bundle should contain full debug files when building --with-external-symbols-in-bundles=public

2025-04-04 Thread Erik Joelsson
On Fri, 4 Apr 2025 08:55:40 GMT, Christoph Langer wrote: > > Is the symbols bundle currently containing just the stripped pdbs, or both > > the full and the stripped pdbs? > > Currently the bundle only contains the stripped pdb files. > > This is because during preparation of the bundle files

Re: RFR: 8353709: Debug symbols bundle should contain full debug files when building --with-external-symbols-in-bundles=public

2025-04-04 Thread Erik Joelsson
On Fri, 4 Apr 2025 07:48:37 GMT, Christoph Langer wrote: > Currently, when building with `--with-external-symbols-in-bundles=public`, > the debug symbols bundle contains the stripped pdb files. It should better > have the full pdb files since stripped pdbs are in the runtime image already. Mar

Re: RFR: 8353580: libjpeg is not found if not installed in system directories

2025-04-04 Thread Erik Joelsson
On Thu, 3 Apr 2025 07:59:26 GMT, snake66 wrote: > The autoconf scrips fail to find libjpeg on systems where it's not installed > in the default system include and library directories. It should check for > the pkgconfig in these cases. > > This work is sponsored by The FreeBSD Foundation Mark

Re: RFR: 8353709: Debug symbols bundle should contain full debug files when building --with-external-symbols-in-bundles=public

2025-04-04 Thread Christoph Langer
On Fri, 4 Apr 2025 08:28:28 GMT, Erik Joelsson wrote: > Is the symbols bundle currently containing just the stripped pdbs, or both > the full and the stripped pdbs? Currently the bundle only contains the stripped pdb files. This is because during preparation of the bundle files we rename the

Re: RFR: 8315844: $LSB_RELEASE is not defined before use

2025-04-04 Thread Daniel Jeliński
On Thu, 3 Apr 2025 10:04:59 GMT, Magnus Ihse Bursie wrote: > When running configure on WSL, the following error message is printed, > instead of proper Linux environment info: > > > /build/.configure-support/generated-configure.sh: line 13102: -d: command > not found > > > This is due

Re: RFR: 8353580: libjpeg is not found if not installed in system directories

2025-04-04 Thread Harald Eilertsen
On Fri, Apr 04, 2025 at 06:56:53AM +, Erik Joelsson wrote: > On Thu, 3 Apr 2025 07:59:26 GMT, snake66 wrote: > > > The autoconf scrips fail to find libjpeg on systems where it's not > > installed in the default system include and library directories. It should > > check for the pkgconfig in

Re: RFR: 8353709: Debug symbols bundle should contain full debug files when building --with-external-symbols-in-bundles=public

2025-04-04 Thread Erik Joelsson
On Fri, 4 Apr 2025 07:48:37 GMT, Christoph Langer wrote: > Currently, when building with `--with-external-symbols-in-bundles=public`, > the debug symbols bundle contains the stripped pdb files. It should better > have the full pdb files since stripped pdbs are in the runtime image already. Is

Re: RFR: 8351842: Windows specific issues in combination of JEP 493 and --with-external-symbols-in-bundles=public [v2]

2025-04-04 Thread Christoph Langer
> Alternative approach to #24012 > > This keeps the current handling of *.pdb vs *.stripped.pdb which allows > debugging at the cost of a little hack in jlink. Maybe the code in jlink can > be improved, e.g. make it more conditional. > > I'm running this through our testing still to see whether

Re: RFR: 8350774: Generated test- targets broken after JDK-8348998

2025-04-04 Thread Erik Joelsson
On Wed, 2 Apr 2025 20:24:12 GMT, Magnus Ihse Bursie wrote: > Unfortunately, JDK-8348998 broke the generation of the "test-" > group of targets. > > Or, rather, it breaks the first time you run it in a new configuration. The > problem is that we need to populate the find-test.gmk cache before c

Re: RFR: 8301197: Make sure use of printf is correct and actually needed

2025-04-04 Thread Erik Joelsson
On Fri, 4 Apr 2025 02:23:23 GMT, David Holmes wrote: >> That would add an extra \n at the end. Maybe it does not matter so much, but >> I did not want to change anything. > > `echo -n` ? I wasn't aware of that feature in `echo`, but I agree that if we are using printf just to omit the line bre

Re: RFR: 8353573: System giflib not found by configure if it's not in system directories

2025-04-04 Thread Erik Joelsson
On Thu, 3 Apr 2025 08:04:50 GMT, snake66 wrote: > The configure script is not able to pick up the giflib installed via system > packages if it's not located in the system include and lib directories. Since > giflib does not provide a pkgconfig, arguments to specify the location of the > includ

Re: RFR: 8340341: Abort in configure when using Xcode 16.0 or 16.1

2025-04-04 Thread Erik Joelsson
On Thu, 3 Apr 2025 09:44:02 GMT, Magnus Ihse Bursie wrote: > The JDK mainline build when using XCode 16 or 16.1 fails with: > > > * For target > buildtools_create_symbols_javac__the.COMPILE_CREATE_SYMBOLS_batch: > Exception in thread "main" java.lang.ClassFormatError: StackMapTable format > e