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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>191944</bug_id>
          
          <creation_ts>2018-11-24 09:21:46 -0800</creation_ts>
          <short_desc>32bit cross build on a native 64bit host fails with 2.23.1</short_desc>
          <delta_ts>2021-03-05 08:32:48 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>194147</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="gabriele balducci">balducci</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>berto</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1481302</commentid>
    <comment_count>0</comment_count>
    <who name="gabriele balducci">balducci</who>
    <bug_when>2018-11-24 09:21:46 -0800</bug_when>
    <thetext>hello

running on linux (my complete specs are at the end of this report)

Cross building for 32bit on a 64bit machine doesn&apos;t work for me
with recently released 2.23.1; the build stops with:

    ----8&lt;----
    [1108/2860] cd /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/Source/JavaScriptCore &amp;&amp; /usr/bin/ruby /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb -I/home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/DerivedSources/JavaScriptCore/ /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/bin/LLIntSettingsExtractor /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h X86
    FAILED: DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h 
    cd /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/Source/JavaScriptCore &amp;&amp; /usr/bin/ruby /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb -I/home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/DerivedSources/JavaScriptCore/ /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/bin/LLIntSettingsExtractor /home/balducci/tmp/install-us-d/webkitgtk-2.22.4.d/webkitgtk-2.23.1/DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h X86
    OffsetExtractor: No magic values found. Skipping offsets extractor file generation.
    ----&gt;8----

I had a similar problem in the past, for versions &gt;=2.17.91, which was
solved by running the 32bit build with -DWTF_CPU_X86=X86; however, it
seems to me that now generate_offset_extractor.rb is run with the
correct backend name (ie X86)...

I can add that 32bit cross builds of versions &lt;=2.22.4 have always
worked without problems (with -DWTF_CPU_X86=X86, as I said above)

Also: building 2.23.1 for native 64bit arch works without problems

I thank you very much in advance for any help
-gabriele

Here are my specs
=================
install:287&gt; uname -sr
Linux 4.19.3

install:288&gt; ruby --version
ruby 2.6.0preview3 (2018-11-06 trunk 65578) [x86_64-linux]

32bit configuration:
-DCMAKE_INSTALL_PREFIX=/opt/stow.d/versions/webkitgtk-2.23.1/usr
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_C_FLAGS=&quot; -I/usr/include/gstreamer-1.0&quot;
-DCMAKE_CXX_FLAGS=&quot;-fpermissive  -I/usr/include/gstreamer-1.0&quot;
-DPORT=GTK
-DCMAKE_BUILD_TYPE=Release
-DENABLE_CREDENTIAL_STORAGE=OFF
-DENABLE_GEOLOCATION=OFF
-DUSE_LIBNOTIFY=OFF
-DUSE_LIBHYPHEN=OFF
-DENABLE_FTL_JIT=OFF
-DUSE_GSTREAMER_GL=OFF
-DUSE_WOFF2=OFF
-DENABLE_JIT=ON
-DWTF_CPU_X86=X86
-DENABLE_BUBBLEWRAP_SANDBOX=OFF

environment:
export CC=&quot;gcc -m32&quot;
export CXX=&quot;g++ -m32&quot;

install:291&gt; cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 16
model name      : AMD Athlon(tm) X4 740 Quad Core Processor
stepping        : 1
microcode       : 0x6001116
cpu MHz         : 1955.274
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 16
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 6400.58
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

[cpus 1-3 omitted]


install:289&gt; gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/stow.d/versions/gcc-8.2.0/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/balducci/tmp/install-us-d/gcc-8.1.0.d/gcc-8.2.0/configure --prefix=/opt/stow.d/versions/gcc-8.2.0/usr --libdir=/opt/stow.d/versions/gcc-8.2.0/usr/lib64 --libexecdir=/opt/stow.d/versions/gcc-8.2.0/usr/lib64 --enable-shared --disable-bootstrap --enable-languages=c,c++,objc,fortran --enable-multilib
Thread model: posix
gcc version 8.2.0 (GCC)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1736353</commentid>
    <comment_count>1</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2021-03-05 08:32:48 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 194147 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>