-
Sub-task
-
Resolution: Fixed
-
P2
-
25
Creating support/native/jdk.hotspot.agent/libsaproc/static/libsaproc.a from 8 file(s)
[2025-04-01T11:59:35,850Z] /System/Volumes/Data/mesos/work_dir/slaves/e06a84a2-297b-45cc-807a-21ee0dbfa509-S725/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5b246f25-c982-4b2b-9512-c08c0f1652d9/runs/aa7f3ce3-5be7-4fdb-87d1-e5c593e0316f/workspace/open/src/jdk.jpackage/share/native/common/tstrings.cpp:60:58: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
[2025-04-01T11:59:35,850Z] ret = vsnprintf(&*fmtout.begin(), fmtout.size(), format, args);
[2025-04-01T11:59:35,850Z] ^~~~~~
[2025-04-01T11:59:35,890Z] 1 error generated.
I suspect a warning flag is now being applied where before it was not.
Only seems to affect macOS and Windows
Windows failure is different:
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(562): error C2220: the following warning is treated as an error
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(555): note: while compiling class template member function 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::flush(void)'
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\gtest\1140_1~1.0\gtest-~1.gz\google~1.0\googlemock\src/gmock-spec-builders.cc(525): note: see the first reference to 'std::basic_ostream<char,std::char_traits<char>>::flush' in 'testing::`anonymous-namespace'::MockObjectRegistry::~MockObjectRegistry'
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(671): note: see reference to class template instantiation 'std::basic_ostream<char,std::char_traits<char>>' being compiled
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(562): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
[2025-04-01T12:06:41,900Z] lib/CompileGtest.gmk:52: recipe for target '/cygdrive/c/sb/prod/1743508873/workspace/build/windows-x64/hotspot/variant-server/libjvm/libgtest/objs/static/gmock-all.obj' failed
[2025-04-01T12:06:41,900Z] make[3]: *** [/cygdrive/c/sb/prod/1743508873/workspace/build/windows-x64/hotspot/variant-server/libjvm/libgtest/objs/static/gmock-all.obj] Error 1
[2025-04-01T12:06:41,900Z] make[3]: *** Waiting for unfinished jobs....
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(544): error C2220: the following warning is treated as an error
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(536): note: while compiling class template member function 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::write(const _Elem *,std::streamsize)'
[2025-04-01T12:06:43,603Z] with
[2025-04-01T12:06:43,603Z] [
[2025-04-01T12:06:43,603Z] _Elem=char
[2025-04-01T12:06:43,603Z] ]
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\gtest\1140_1~1.0\gtest-~1.gz\google~1.0\googletest\src/gtest.cc(4159): note: see the first reference to 'std::basic_ostream<char,std::char_traits<char>>::write' in 'testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection'
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(671): note: see reference to class template instantiation 'std::basic_ostream<char,std::char_traits<char>>' being compiled
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(544): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
[2025-04-01T12:06:43,603Z] lib/CompileGtest.gmk:52: recipe for target '/cygdrive/c/sb/prod/1743508873/workspace/build/windows-x64/hotspot/variant-server/libjvm/libgtest/objs/static/gtest-all.obj' failed
[2025-04-01T11:59:35,850Z] /System/Volumes/Data/mesos/work_dir/slaves/e06a84a2-297b-45cc-807a-21ee0dbfa509-S725/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5b246f25-c982-4b2b-9512-c08c0f1652d9/runs/aa7f3ce3-5be7-4fdb-87d1-e5c593e0316f/workspace/open/src/jdk.jpackage/share/native/common/tstrings.cpp:60:58: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
[2025-04-01T11:59:35,850Z] ret = vsnprintf(&*fmtout.begin(), fmtout.size(), format, args);
[2025-04-01T11:59:35,850Z] ^~~~~~
[2025-04-01T11:59:35,890Z] 1 error generated.
I suspect a warning flag is now being applied where before it was not.
Only seems to affect macOS and Windows
Windows failure is different:
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(562): error C2220: the following warning is treated as an error
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(555): note: while compiling class template member function 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::flush(void)'
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\gtest\1140_1~1.0\gtest-~1.gz\google~1.0\googlemock\src/gmock-spec-builders.cc(525): note: see the first reference to 'std::basic_ostream<char,std::char_traits<char>>::flush' in 'testing::`anonymous-namespace'::MockObjectRegistry::~MockObjectRegistry'
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(671): note: see reference to class template instantiation 'std::basic_ostream<char,std::char_traits<char>>' being compiled
[2025-04-01T12:06:41,884Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(562): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
[2025-04-01T12:06:41,900Z] lib/CompileGtest.gmk:52: recipe for target '/cygdrive/c/sb/prod/1743508873/workspace/build/windows-x64/hotspot/variant-server/libjvm/libgtest/objs/static/gmock-all.obj' failed
[2025-04-01T12:06:41,900Z] make[3]: *** [/cygdrive/c/sb/prod/1743508873/workspace/build/windows-x64/hotspot/variant-server/libjvm/libgtest/objs/static/gmock-all.obj] Error 1
[2025-04-01T12:06:41,900Z] make[3]: *** Waiting for unfinished jobs....
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(544): error C2220: the following warning is treated as an error
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(536): note: while compiling class template member function 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::write(const _Elem *,std::streamsize)'
[2025-04-01T12:06:43,603Z] with
[2025-04-01T12:06:43,603Z] [
[2025-04-01T12:06:43,603Z] _Elem=char
[2025-04-01T12:06:43,603Z] ]
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\gtest\1140_1~1.0\gtest-~1.gz\google~1.0\googletest\src/gtest.cc(4159): note: see the first reference to 'std::basic_ostream<char,std::char_traits<char>>::write' in 'testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection'
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(671): note: see reference to class template instantiation 'std::basic_ostream<char,std::char_traits<char>>' being compiled
[2025-04-01T12:06:43,603Z] c:\ade\mesos\work_dir\jib-ma~1\install\jpg\infra\buildd~1\devkit~1\vs2022~1.0\devkit~1.gz\VC\include\ostream(544): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
[2025-04-01T12:06:43,603Z] lib/CompileGtest.gmk:52: recipe for target '/cygdrive/c/sb/prod/1743508873/workspace/build/windows-x64/hotspot/variant-server/libjvm/libgtest/objs/static/gtest-all.obj' failed
- caused by
-
JDK-8353272 One instance of STATIC_LIB_CFLAGS was missed in JDK-8345683
-
- Closed
-
- relates to
-
JDK-8353458 Don't pass -Wno-format-nonliteral to CFLAGS
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/a1ab1d8d
-
Review(master) openjdk/jdk/24356