[PATCH] Freetype Directory Bug On zLinux
adam.farley at uk.ibm.com
Tue Jan 16 17:03:33 UTC 2018
>On Mon, 2018-01-15 at 20:21 +0100, John Paul Adrian Glaubitz wrote:
>> Hi Adam!
>> On 01/15/2018 06:15 PM, Adam Farley8 wrote:
>> > > Which I would expect to cover your case, unless there is a
>> > > mismatch
>> > > between s390 and s390x here. Is your OPENJDK_TARGET_CPU set to
>> > > s390 or
>> > > s390x in this case? If this discrepancy between arch names cannot
>> > > be
>> > > resolved, then a special case like the one you propose is needed.
>> > My IF statement checks if OPENJDK_TARGET_CPU = s390. I have to
>> > assume that
>> > means OPENJDK_TARGET_CPU is set to s390. Since the folder is s390x-
>> > linux-gnu,
>> > it's likely the extra x causing the problem.
>> I have just done a fresh clone of OpenJDK-11 from jdk/hs and
>> performed test
>> builds on Debian/s390x with the following configure lines:
>> CONF=linux-s390x-normal-server-release make clean ; CONF=linux-s390x-
>> normal-server-release MAKE_VERBOSE=y QUIETLY= LOG=debug sh
>> --with-jvm-variants=server --with-boot-jdk=/usr/lib/jvm/java-9-
>> openjdk-s390x/ --disable-precompiled-headers --disable-warnings-as-
>> errors && make JOBS=32
>> MAKE_VERBOSE=y QUIETLY= LOG=debug CONF=linux-s390x-normal-server-
>> CONF=linux-s390x-normal-zero-release MAKE_VERBOSE=y QUIETLY=
>> LOG=debug make clean CONF=linux-s390x-normal-zero-release ; sh
>> ./configure --with-jvm-variants=zero
>> --with-boot-jdk=/usr/lib/jvm/java-9-openjdk-s390x/ --disable-
>> precompiled-headers --disable-warnings-as-errors && make JOBS=32
>> MAKE_VERBOSE=y QUIETLY= LOG=debug
>> Both builds succeed without any issues, so I'm not sure there isn't
>> wrong with your build environment. For reference, Debian/s390x has
>> the freetype
>> runtime and development library components in /usr/lib/s390x-linux-
>> (sid_s390x-dchroot)glaubitz at zelenka:~/openjdk/hs$ dpkg -L
>> libfreetype6:s390x |grep s390 && dpkg -L libfreetype6-dev:s390x |grep
>> (sid_s390x-dchroot)glaubitz at zelenka:~/openjdk/hs$
>> Can you post your configure lines?
Though now the problem has suddenly vanished. I don't know why. :(
Will continue to poke at this.
>Adam mentioned in another thread that --disable-warnings-as-errors
>to configure makes the error go away.
And thank you for mentioning that. :)
>Configure already looks in:
>Which I would expect to cover your case, unless there is a mismatch
>between s390 and s390x here. Is your OPENJDK_TARGET_CPU set to s390 or
>s390x in this case? If this discrepancy between arch names cannot be
>resolved, then a special case like the one you propose is needed.
I have tried and tried, and cannot find this code line in the JDK,
anywhere. Nor can I find variations on it. The closest I can find is a
list of possible locations, but these are hard-coded (and don't have
OPENJDK_TARGET_CPU in their code), and none are s390 or s390x.
Please spell out exactly where this line is, as I have no idea.
Thanks everyone for your time. We'll get to the bottom of this! :)
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
More information about the build-dev