Hi All,

>
>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:
>> 
>> Server:
>> 
>> CONF=linux-s390x-normal-server-release make clean ; CONF=linux-s390x-
>> normal-server-release MAKE_VERBOSE=y QUIETLY= LOG=debug sh
>> ./configure
>> --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-
>> release
>> 
>> Zero:
>> 
>> 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
>> CONF=linux-s390x-normal-zero-release
>> 
>> Both builds succeed without any issues, so I'm not sure there isn't
>> something
>> wrong with your build environment. For reference, Debian/s390x has
>> the freetype
>> runtime and development library components in /usr/lib/s390x-linux-
>> gnu:
>> 
>> (sid_s390x-dchroot)glaubitz@zelenka:~/openjdk/hs$ dpkg -L
>> libfreetype6:s390x |grep s390 && dpkg -L libfreetype6-dev:s390x |grep
>> s390
>> /usr/lib/s390x-linux-gnu
>> /usr/lib/s390x-linux-gnu/libfreetype.so.6.15.0
>> /usr/lib/s390x-linux-gnu/libfreetype.so.6
>> /usr/lib/s390x-linux-gnu
>> /usr/lib/s390x-linux-gnu/libfreetype.a
>> /usr/lib/s390x-linux-gnu/libfreetype.la
>> /usr/lib/s390x-linux-gnu/pkgconfig
>> /usr/lib/s390x-linux-gnu/pkgconfig/freetype2.pc
>> /usr/lib/s390x-linux-gnu/libfreetype.so
>> (sid_s390x-dchroot)glaubitz@zelenka:~/openjdk/hs$
>> 
>> Can you post your configure lines?

bash ./configure

Though now the problem has suddenly vanished. I don't know why. :(

Will continue to poke at this.

>
>FYI:
>
>Adam mentioned in another thread[1] that --disable-warnings-as-errors
>to configure makes the error go away.
>
>Thanks,
>Severin
>

And thank you for mentioning that. :)

>Hello Adam,

>Configure already looks in:

>$SYSROOT/usr/lib/$OPENJDK_TARGET_CPU-linux-gnu

>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.

>/Erik

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! :)

Best Regards

Adam Farley

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Reply via email to