<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1056</bug_id>
          
          <creation_ts>2014-08-30 05:13:14 +0200</creation_ts>
          <short_desc>Wrong guess on the endianness of powerpc</short_desc>
          <delta_ts>2019-03-29 17:54:46 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2.3.0</version>
          <rep_platform>pc_ppc</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>1126</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter>tmancill</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4134</commentid>
    <comment_count>0</comment_count>
      <attachid>627</attachid>
    <who name="">tmancill</who>
    <bug_when>2014-08-30 05:13:14 +0200</bug_when>
    <thetext>Created attachment 627
scilab stacktrace on ppc

Hi - in looking at the source code, it it doesn&apos;t appear that powerpc is detected as little endian x86.  Attached is an example stack trace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4368</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-09 07:41:08 +0200</bug_when>
    <thetext>The static configuration makes a wrong &apos;guess&apos; here
and comparison w/ dynamic probing fails.

I assume the dynamic config to reflect the true values,
otherwise our probing is false.

We probe variable type size and alignment,
as well as other values using native code
from our native library.
Some values are probed via Java.

The static value probably is at fault here.

Incompatible fields:
             static:    dynamic:
littleEndian true       false
int64*       8 / 4      8 / 8
double*      8 / 4      8 / 8
ldouble*     12 / 4     16 / 16

(*) size/alignment

It could help if you send the whole log up until this failure
w/ all debug flags enabled!

Further, please add OS and CPU information.

If you are knowledgeable about CPU cpu configurations,
maybe you can help picking the proper 
static configuration: MachineDescriptionRuntime.getStatic().
  
The usage of static values is indeed a huge issue here.
The static version is used in generated structs for
length - and the offset is generated at compile time
using the alignment and the size.

We might could move the table generation to runtime,
which would allow us to drop the static config.
However, this would require us to rewrite 
package &apos;jogamp.common.os.elf&apos;,
which also uses structs from the ELF headers ..
which in turn determines which native library we load.

Full cycle: The latter also contains code for probing the dynamic values.

In short: Getting rid of static config will be some work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4571</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-02-02 00:32:10 +0100</bug_when>
    <thetext>&apos;Should&apos; be fixed by changes for Bug 1126.

In case this (or a related) issue still persists,
please reopen this bug and comment.

Note: I don&apos;t have PPC hardware here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4576</commentid>
    <comment_count>3</comment_count>
    <who name="">tmancill</who>
    <bug_when>2015-02-04 05:33:16 +0100</bug_when>
    <thetext>(In reply to comment #2)
&gt; &apos;Should&apos; be fixed by changes for Bug 1126.
&gt; 
&gt; In case this (or a related) issue still persists,
&gt; please reopen this bug and comment.
&gt; 
&gt; Note: I don&apos;t have PPC hardware here.

Thanks!  I&apos;ll test it and follow-up.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>627</attachid>
            <date>2014-08-30 05:13:14 +0200</date>
            <delta_ts>2014-08-30 05:13:14 +0200</delta_ts>
            <desc>scilab stacktrace on ppc</desc>
            <filename>scilab_powerpc_stacktrace.txt</filename>
            <type>text/plain</type>
            <size>710</size>
            <attacher>tmancill</attacher>
            
              <data encoding="base64">CkNhdXNlZCBieTogamF2YS5sYW5nLlJ1bnRpbWVFeGNlcHRpb246IEluY29tcGF0aWJsZSBNYWNo
aW5lRGVzY3JpcHRpb25zOgogU3RhdGljIE1hY2hpbmVEZXNjcmlwdGlvblN0YXRpYzogWDg2XzMy
X1VOSVgoMSk6IE1hY2hpbmVEZXNjcmlwdGlvbjogcnVudGltZVZhbGlkYXRlZCBmYWxzZSwgbGl0
dGxlRW5kaWFuIHRydWUsIDMyQml0IHRydWUsIHByaW1pdGl2ZSBzaXplIC8gYWxpZ25tZW50Ogog
IGludDggMSAvIDEsIGludDE2IDIgLyAyCiAgaW50IDQgLyA0LCBsb25nIDQgLyA0CiAgaW50MzIg
NCAvIDQsIGludDY0IDggLyA0CiAgZmxvYXQgNCAvIDQsIGRvdWJsZSA4IC8gNCwgbGRvdWJsZSAx
MiAvIDQKICBwb2ludGVyIDQgLyA0LCBwYWdlIDQwOTYKIFJ1bnRpbWUgTWFjaGluZURlc2NyaXB0
aW9uOiBydW50aW1lVmFsaWRhdGVkIHRydWUsIGxpdHRsZUVuZGlhbiBmYWxzZSwgMzJCaXQgdHJ1
ZSwgcHJpbWl0aXZlIHNpemUgLyBhbGlnbm1lbnQ6CiAgaW50OCAxIC8gMSwgaW50MTYgMiAvIDIK
ICBpbnQgNCAvIDQsIGxvbmcgNCAvIDQKICBpbnQzMiA0IC8gNCwgaW50NjQgOCAvIDgKICBmbG9h
dCA0IC8gNCwgZG91YmxlIDggLyA4LCBsZG91YmxlIDE2IC8gMTYKICBwb2ludGVyIDQgLyA0LCBw
YWdlIDQwOTYKIGF0IGNvbS5qb2dhbXAuY29tbW9uLm9zLlBsYXRmb3JtLjxjbGluaXQ+KFBsYXRm
b3JtLmphdmE6MjI3KQogLi4uIDQgbW9yZQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>