What is the xawt sizer wrapper, really?

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Jun 19 12:17:14 UTC 2012


On 19/06/12 12:18, David Holmes wrote:
> On 19/06/2012 7:48 PM, Maurizio Cimadamore wrote:
>> On 14/06/12 13:14, David Holmes wrote:
>>> On 14/06/2012 10:10 PM, Magnus Ihse Bursie wrote:
>>>> On 2012-06-14 13:52, David Holmes wrote:
>>>>> As I understand this, sizers is to X11 Java code what the
>>>>> UnixConstants program is to the filesystem code. It has to determine
>>>>> various sizes of native data structures used by X11 so that those
>>>>> values can be handled correctly in the Java code (storing pointer and
>>>>> offsets in Java code to pass ot native). Unlike the UnixConstants
>>>>> these values only seem to differ between 32-bit and 64-bit, not 
>>>>> across
>>>>> different OS
>>>>
>>>> To me it sounds like two checked in files, sizes-32.data and
>>>> sizes-64.data, or whatever the names should be. And perhaps a 
>>>> script to
>>>> re-generate those if the need should ever arise. But that need not be
>>>> run as part of the build process.
>>>>
>>>> Anyone against such a solution?
>>>
>>> That's something for Artem and other AWT folk to consider.
>>>
>>> As I said we manage to work with this for cross-compiling by simply
>>> building and running on the build host to get the data for the target
>>> (which as far as I know is not OS specific - but I don't have absolute
>>> confirmation on that). The only glitch we had was that when we started
>>> cross-compiling on 64-bit linux it generated 64-bit data for a 32-bit
>>> target (oops!) - but that was easily fixed.
>>>
>>> David
>> I'm getting a build failure that might be related to this - I'm getting
>> this in JPRT only on Solaris-x64:
>>
>> solaris_x64_5.10-product (details from log file)
>> /net/backpack.us.oracle.com/archives/jprt/2012/06/2012-06-19-085801.maurizio.tl/logs/solaris_x64_5.10-product.log 
>>
>> http://bus2001067.us.oracle.com/archives/2012/06/2012-06-19-085801.maurizio.tl//logs/solaris_x64_5.10-product.log 
>>
>>>  XColor.red    8
>>>  XColor.green    10
>>>  XColor.blue    12
>>>  XColor.flags    14
>>>  XColor.pad    15
>>>  XColor    16
>>>  XTextProperty.value    0
>>>  XTextProperty.encoding    8
>>>  XTextProperty.format    16
>>>  XTextProperty.nitems    24
>>>  XTextProperty    32
>> make[4]: *** 
>> [/tmp/jprt/P1/085801.maurizio/s/build/solaris-amd64/gensrc/sun/awt/X11/generator/sizes.64] 
>> Error 1
>>
>>
>> I got this when I submitted a control JPRT job against TL which recently
>> integrated some changes from the AWT repo - might this be related?
>
> I can't speak to any AWT changes. I modified the makefile to deal with 
> cross-compilation situations. But the above appears to be a crash of 
> the process doing the comparison of the two lists ???
The build failure seems to be repeatable on Solaris x64 on a vanilla TL 
repo.

Maurizio
>
> David
> -----
>
>
>
>> Thanks
>> Maurizio
>>>
>>>> /Magnus
>>




More information about the build-dev mailing list