• building individual test issue

    From Mykhaylo Lodygin@21:1/5 to All on Mon Aug 28 14:00:02 2023
    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

    <div dir="ltr"><div>Hello colleagues, <br></div><div>I&#39;ve build JDK locally successfully, but got several tests &quot;FAILED&quot;.</div><div>Tried to run one of the failing test separately with &quot;make test TEST=&quot;&lt;path_to_test&gt;&quot;.</
    <div>Were
    unable to do so due to build error - the compiler was unfamiliar to
    include path to winscard.h, fixed with configuration option:</div><div>bash configure --with-extra-cflags=&quot;-I/usr/include/PCSC&quot;</div><div>next error was incapability of  linker to link with libjpeg - fixed with</div><div>adding --with-libjpeg=
    system to configure. <br></div><div>the issue was solved,  but a new one was added with missing libgif.</div><div>I
    was curious and tried a test that &quot;Passed&quot;, thinking that &quot;failure&quot;
    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.</div><div>I&#39;m
    flabbergasted, hence my questions are: does &quot;make test&quot; target is expected to rebuild JDK&#39;s code? does my approach of adding options to configure script is proper one? How come a test could be &quot;Passed&quot; while
    running it separately results in inability to build the test?</div><div>Thank you.<font color="#888888"><br></font></div><font color="#888888"><div>Mykhaylo Lodygin</div></font></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vladimir Petko@21:1/5 to mlodygin@cloudlinux.com on Mon Aug 28 22:10:01 2023
    Hi,

    Debian/Ubuntu version applies some patches to the source tree, so if
    you are trying to build OpenJDK package using make command directly,
    you might want to run `quilt push -a` and configure using `configure`
    arguments from `debian/rules`, e.g. --with-pcsclite=system, because
    psclite is stripped from the original tarball.

    Best Regards,
    Vladimir.


    On Mon, Aug 28, 2023 at 11:58 PM Mykhaylo Lodygin
    <mlodygin@cloudlinux.com> 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)