<div dir="ltr"><div>Hello Erik, thank you for your reply.</div><div>I'm trying to build JDK-11 for ubuntu 18.04LTS, got sources by applying "apt sources openjdk-11-jdk" command, hence it is canonical's repo</div><div>my configuration is:</div><div>'--with-jvm-variants=server --with-boot-jdk=/usr/lib/jvm/java-11-openjdk-amd64 --disable-precompiled-headers --with-jvm-features=zgc,shenandoahgc --with-extra-cflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/openjdk-lts-11.0.19+7=. -fstack-protector-strong -Wformat -fno-stack-protector -Wno-deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2' --with-extra-cxxflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/openjdk-lts-11.0.19+7=. -fstack-protector-strong -Wformat -fno-stack-protector -Wno-deprecated-declarations -Wno-deprecated-declarations' --with-extra-ldflags='-Xlinker -z -Xlinker relro -Xlinker -Bsymbolic-functions' --disable-ccache --with-jtreg=/usr --with-vendor-name=Ubuntu --with-vendor-url=<a href="https://ubuntu.com/">https://ubuntu.com/</a> --with-vendor-bug-url=<a href="https://bugs.launchpad.net/ubuntu/+source/openjdk-lts">https://bugs.launchpad.net/ubuntu/+source/openjdk-lts</a> --with-vendor-vm-bug-url=<a href="https://bugs.launchpad.net/ubuntu/+source/openjdk-lts">https://bugs.launchpad.net/ubuntu/+source/openjdk-lts</a> --with-version-pre= --with-version-build=7 --with-version-opt='post-Ubuntu-0ubuntu1~18.04.1' --with-copyright-year=2023 --with-debug-level=release --with-native-debug-symbols=external --enable-unlimited-crypto --with-zlib=system --with-giflib=system --with-libpng=system --with-libjpeg=system --with-lcms=system --with-pcsclite=system --disable-warnings-as-errors --disable-javac-server --with-harfbuzz=system --with-stdc++lib=dynamic --with-num-cores=4'. <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 28, 2023 at 3:51 PM <<a href="mailto:erik.joelsson@oracle.com" target="_blank">erik.joelsson@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Mykhaylo Lodygin,<br>
<br>
What you describe sounds strange. If you successfully built the JDK and <br>
ran tests, then nothing should be rebuilt when trying to run tests again.<br>
<br>
What operating system are you running this on?<br>
<br>
Which JDK src did you clone?<br>
<br>
What was your original configure command line?<br>
<br>
/Erik<br>
<br>
On 8/28/23 04:54, Mykhaylo Lodygin wrote:<br>
> Hello colleagues,<br>
> I've build JDK locally successfully, but got several tests "FAILED".<br>
> Tried to run one of the failing test separately with "make test <br>
> TEST="<path_to_test>".<br>
> Were unable to do so due to build error - the compiler was unfamiliar <br>
> to include path to winscard.h, fixed with configuration option:<br>
> bash configure --with-extra-cflags="-I/usr/include/PCSC"<br>
> next error was incapability of linker to link with libjpeg - fixed with<br>
> adding --with-libjpeg=system to configure.<br>
> the issue was solved, but a new one was added with missing libgif.<br>
> I was curious and tried a test that "Passed", thinking that "failure" <br>
> could had happen due to inability to build the test. Tried <br>
> sun/util/calendar/zi/Beyond2037.java but got a very similar error of <br>
> inability to link with liblcms2-2.<br>
> I'm flabbergasted, hence my questions are: does "make test" target is <br>
> expected to rebuild JDK's code? does my approach of adding options to <br>
> configure script is proper one? How come a test could be "Passed" <br>
> while running it separately results in inability to build the test?<br>
> Thank you.<br>
> Mykhaylo Lodygin<br>
</blockquote></div>