Hello Erik, thank you for your reply. 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 my configuration is: '--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=https://ubuntu.com/ --with-vendor-bug-url=https://bugs.launchpad.net/ubuntu/+source/openjdk-lts --with-vendor-vm-bug-url= https://bugs.launchpad.net/ubuntu/+source/openjdk-lts --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'.
On Mon, Aug 28, 2023 at 3:51 PM <erik.joels...@oracle.com> wrote: > Hello Mykhaylo Lodygin, > > What you describe sounds strange. If you successfully built the JDK and > ran tests, then nothing should be rebuilt when trying to run tests again. > > What operating system are you running this on? > > Which JDK src did you clone? > > What was your original configure command line? > > /Erik > > On 8/28/23 04:54, Mykhaylo Lodygin wrote: > > Hello colleagues, > > I've build JDK locally successfully, but got several tests "FAILED". > > Tried to run one of the failing test separately with "make test > > TEST="<path_to_test>". > > Were unable to do so due to build error - the compiler was unfamiliar > > to include path to winscard.h, fixed with configuration option: > > bash configure --with-extra-cflags="-I/usr/include/PCSC" > > next error was incapability of linker to link with libjpeg - fixed with > > adding --with-libjpeg=system to configure. > > the issue was solved, but a new one was added with missing libgif. > > I was curious and tried a test that "Passed", thinking that "failure" > > could had happen due to inability to build the test. Tried > > sun/util/calendar/zi/Beyond2037.java but got a very similar error of > > inability to link with liblcms2-2. > > I'm flabbergasted, hence my questions are: does "make test" target is > > expected to rebuild JDK's code? does my approach of adding options to > > configure script is proper one? How come a test could be "Passed" > > while running it separately results in inability to build the test? > > Thank you. > > Mykhaylo Lodygin >