Re: RFR: 8352284: EXTRA_CFLAGS incorrectly applied to BUILD_LIBJVM src/hotspot C++ source files [v2]

2025-03-22 Thread Patrick Zhang
> Building jdk with `--with-extra-cflags='-Wno-incompatible-pointer-types'` > triggers 1000+ warning messages like `cc1plus: warning: command-line option > ‘-Wno-incompatible-pointer-types’ is valid for C/ObjC but not for C++`. > > The root cause is that `JVM_CFLAGS ` which contains both `EXTRA

Re: RFR: 8352481: Extra a.out generated after configure with clang

2025-03-22 Thread SendaoYan
On Sat, 22 Mar 2025 03:43:58 GMT, SendaoYan wrote: >> Hi all, >> >> There is an extra a.out file generated located in repository root directory >> after execute the configure command with llvm/clang compiler sometimes, not >> always. The a.out was generate by `$LINKER -Wl,-v 2>&1 | $HEAD -n 1`

Re: RFR: 8352284: EXTRA_CFLAGS incorrectly applied to BUILD_LIBJVM src/hotspot C++ source files [v2]

2025-03-22 Thread Patrick Zhang
On Thu, 20 Mar 2025 16:59:20 GMT, Erik Joelsson wrote: > Given that we are currently going with that choice, I think the correct fix > is indeed to just remove `EXTRA_CFLAGS` from `JVM_CFLAGS`. Thanks for your kindly advise @erikj79, I updated it accordingly. - PR Comment: https:/