<?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>1190</bug_id>
          
          <creation_ts>2015-08-11 09:12:01 +0200</creation_ts>
          <short_desc>&apos;memcpy@GLIBC_2.4&apos; error while jogl compilation</short_desc>
          <delta_ts>2019-04-08 05:01:12 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>General</product>
          <component>builds</component>
          <version>2.4.0</version>
          <rep_platform>All</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>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1376</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="iNik">iv.an.nik</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>jogamp-scripting e6692024687685d3af725555d9bb5490d85ecc8d
gluegen 12047cae51b5a594b38c9e162f135352452c46fd
gluegen 117565b7d8771b6c9c2144b2d1ef5a131446e058
gluegen 7bbb0822608fa9c832588c35874ead558a479322
gluegen 0bd5136c2df8407cea7b0dcc7fb1e62432ba18bb
gluegen b846476786a776296a5c5ab6cbfb370a4c5497ae</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4912</commentid>
    <comment_count>0</comment_count>
      <attachid>717</attachid>
    <who name="iNik">iv.an.nik</who>
    <bug_when>2015-08-11 09:12:01 +0200</bug_when>
    <thetext>Created attachment 717
glibc gcc info

Attempt to build JOGL project with the newer toolchain (toolchain info attached) causes the &apos; No symbol version section for versioned symbol `memcpy@GLIBC_2.4 &apos; error.

Full message:
c.build.nativewindow.windowlib.x11:
     [echo] Output lib name = nativewindow_x11
     [echo] c.compiler.use-jawt false
     [echo] nativewindow_x11.useLibJAWT ${nativewindow_x11.useLibJAWT}
     [echo] Compiling nativewindow_x11
     [echo] java.lib.dir.platform: /usr/java/jdk1.8.0_51/jre/../jre/lib/arm
       [cc] 4 total files to be compiled.
       [cc] cc1: warning: command line option &apos;-fno-rtti&apos; is valid for C++/ObjC++ but not for C
       [cc] cc1: warning: command line option &apos;-fno-rtti&apos; is valid for C++/ObjC++ but not for C
       [cc] cc1: warning: command line option &apos;-fno-rtti&apos; is valid for C++/ObjC++ but not for C
       [cc] /home/root/jogl/build-linux-armv6hf/nativewindow/gensrc/native/X11/X11Lib_JNI.c: In function &apos;Java_jogamp_nativewindow_x11_X11Lib_XSynchronize__JZ&apos;:
       [cc] /home/root/jogl/build-linux-armv6hf/nativewindow/gensrc/native/X11/X11Lib_JNI.c:254:8: warning: assignment makes integer from pointer without a cast
       [cc]    _res = XSynchronize((Display *) (intptr_t) display, (Bool) onoff);
       [cc]         ^
       [cc] cc1: warning: command line option &apos;-fno-rtti&apos; is valid for C++/ObjC++ but not for C
       [cc] Starting link
       [cc] /usr/lib/gcc/arm-poky-linux-gnueabi/4.9.2/../../../../arm-poky-linux-gnueabi/bin/ld: libnativewindow_x11.so: No symbol version section for versioned symbol `memcpy@GLIBC_2.4&apos;
       [cc] /usr/lib/gcc/arm-poky-linux-gnueabi/4.9.2/../../../../arm-poky-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output
       [cc] collect2: error: ld returned 1 exit status

BUILD FAILED
/home/root/jogl/make/build.xml:71: The following error occurred while executing this line:
/home/root/jogl/make/build-nativewindow.xml:749: The following error occurred while executing this line:
/home/root/jogl/make/build-nativewindow.xml:681: gcc failed with return code 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6213</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-04-06 06:19:02 +0200</bug_when>
    <thetext>Reproduced here and will fix for 2.4.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6214</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-04-07 03:30:24 +0200</bug_when>
    <thetext>jogamp-scripting e6692024687685d3af725555d9bb5490d85ecc8d

    Bug 1190: Updating crosstools
    
    Building updated crosscompiling toolchains for
    - armv7-unknown-linux-gnueabihf
    - aarch64-unknown-linux-gnu
    
    using gcc 8.3, glibc 2.29, binutils 2.32 .. etc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6215</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-04-07 05:16:38 +0200</bug_when>
    <thetext>GlueGen: Updating crosstools and enabling aarch64 + armv6hf &apos;ontarget&apos;
    
Default is to crosscompile w/o testing, i.e. property &apos;isCrosscompilation&apos; is set to &apos;true&apos;.
&apos;ontarget&apos; includes testing, no crosscompilation.
    
Updated crosstools links to new build of jogamp-scripting commit e6692024687685d3af725555d9bb5490d85ecc8d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6216</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-04-07 05:53:43 +0200</bug_when>
    <thetext>(In reply to Sven Gothel from comment #3)
&gt; GlueGen: Updating crosstools and enabling aarch64 + armv6hf &apos;ontarget&apos;
&gt;     
&gt; Default is to crosscompile w/o testing, i.e. property &apos;isCrosscompilation&apos;
&gt; is set to &apos;true&apos;.
&gt; &apos;ontarget&apos; includes testing, no crosscompilation.
&gt;     
&gt; Updated crosstools links to new build of jogamp-scripting commit
&gt; e6692024687685d3af725555d9bb5490d85ecc8d

The toolchain dropped here: x-tools and the user libs from Debian

https://jogamp.org/files/toolchain/20190407-linux-toolchain/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6217</commentid>
    <comment_count>5</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-04-07 22:35:54 +0200</bug_when>
    <thetext>(In reply to Sven Gothel from comment #4)
&gt; (In reply to Sven Gothel from comment #3)
&gt; &gt; GlueGen: Updating crosstools and enabling aarch64 + armv6hf &apos;ontarget&apos;
&gt; &gt;     
&gt; &gt; Default is to crosscompile w/o testing, i.e. property &apos;isCrosscompilation&apos;
&gt; &gt; is set to &apos;true&apos;.
&gt; &gt; &apos;ontarget&apos; includes testing, no crosscompilation.
&gt; &gt;     
&gt; &gt; Updated crosstools links to new build of jogamp-scripting commit
&gt; &gt; e6692024687685d3af725555d9bb5490d85ecc8d
&gt; 
&gt; The toolchain dropped here: x-tools and the user libs from Debian
&gt; 
&gt; https://jogamp.org/files/toolchain/20190407-linux-toolchain/

gluegen 117565b7d8771b6c9c2144b2d1ef5a131446e058
Fix arm6hf + aarch64 gcc options, adapt glibc-compat-symbols.h
- arm6hf needs the fpu to be specified, we still use the lowest armv6 hard float denominator
- aarch64 shall have the -march compiler argument as well
- glibc-compat-symbols.h Finally drop the glibc versioning on memcpy for both</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6218</commentid>
    <comment_count>6</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-04-08 04:45:21 +0200</bug_when>
    <thetext>Toolchain now located at:
&lt;https://jogamp.org/files/toolchain/20190408-linux-toolchain/&gt;

- Added sha256sums and gpg signatures
- the opt-linux* user lib tars include ALSA and PULSE for openal-soft now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6219</commentid>
    <comment_count>7</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-04-08 04:47:22 +0200</bug_when>
    <thetext>commit b846476786a776296a5c5ab6cbfb370a4c5497ae
    Complete jogamp-env.xml TARGET_* readout; Use parsed env in cpptasks-base as well

commit 0bd5136c2df8407cea7b0dcc7fb1e62432ba18bb
    Bug 1190: Define TARGET_PLATFORM_SYSROOT TARGET_PLATFORM_USRROOT TARGET_PLATFORM_USRLIBS for crosscompilation
    
    Android Crosscompilation Usage:
    - TARGET_PLATFORM_ROOT -&gt; TARGET_PLATFORM_SYSROOT
    
    General
    - TARGET_PLATFORM_SYSROOT Crosscompiler and system specified &apos;sysroot&apos; (as in gcc --print-sysroot)
    - TARGET_PLATFORM_USRROOT Additional optional user headers and libraries for target
    - TARGET_PLATFORM_USRLIBS Actual location of target user libraries within TARGET_PLATFORM_USRROOT
    - TARGET_JAVA_LIBS Actual location of the Java libraries within TARGET_PLATFORM_USRROOT

commit 7bbb0822608fa9c832588c35874ead558a479322
    Bug 1190: aarch64 + armhf ld symbolic link to actual x-tool binary of ld.bfd</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>717</attachid>
            <date>2015-08-11 09:12:01 +0200</date>
            <delta_ts>2015-08-11 09:12:01 +0200</delta_ts>
            <desc>glibc gcc info</desc>
            <filename>gcc libc info</filename>
            <type>application/octet-stream</type>
            <size>1080</size>
            <attacher name="iNik">iv.an.nik</attacher>
            
              <data encoding="base64">L2xpYi9saWJjLnNvLjYgCkdOVSBDIExpYnJhcnkgKEdOVSBsaWJjKSBzdGFibGUgcmVsZWFzZSB2
ZXJzaW9uIDIuMjEsIGJ5IFJvbGFuZCBNY0dyYXRoIGV0IGFsLgpDb3B5cmlnaHQgKEMpIDIwMTUg
RnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBJbmMuClRoaXMgaXMgZnJlZSBzb2Z0d2FyZTsgc2Vl
IHRoZSBzb3VyY2UgZm9yIGNvcHlpbmcgY29uZGl0aW9ucy4KVGhlcmUgaXMgTk8gd2FycmFudHk7
IG5vdCBldmVuIGZvciBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1IgQQpQQVJUSUNVTEFS
IFBVUlBPU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