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

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12989</bug_id>
          
          <creation_ts>2018-11-08 15:08:38 +0000</creation_ts>
          <short_desc>qemumips64 libn32 build of valgrind fails: long-double[-32 vs -n32.h]</short_desc>
          <delta_ts>2026-01-29 16:17:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy MacLeod">randy.macleod</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>akuster808</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82066</commentid>
    <comment_count>0</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-11-08 15:08:38 +0000</bug_when>
    <thetext>When bitbaking world for qemumips64, valgrind compile fails for libn32 with:

   configure:6190: checking for 32 bit build support
   ...
   fatal error: bits/long-double-32.h: No such file or directory
It seems that the toolchain is producing:
   tmp-glibc/sysroots-components/mips64-n32/libn32-glibc/usr/include/bits/long-double-n32.h

I&apos;m not sure if it&apos;s valgrind&apos;s configure test program or the toolchain at fault.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82142</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-11-10 20:39:32 +0000</bug_when>
    <thetext>this is weird. Valgring 3.14 claims to have support for mips n32.

any more info on how to reproduce this? I want to give our toolchain folks a reproducer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82145</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-11-11 17:35:14 +0000</bug_when>
    <thetext>This tune is enabled by default in the WR Linux disto but not in oe-core/poky.

With poky/master and 
   73f8baa8d8 valgrind: drop mips n32 support
work-around reverted, add the following to your local.conf:
---
MACHINE ??= &quot;qemumips64&quot;

require conf/multilib.conf

MULTILIB_GLOBAL_VARIANTS_append = &quot; libn32&quot;
MULTILIBS ?= &quot;multilib:lib32 multilib:libn32&quot;
DEFAULTTUNE_virtclass-multilib-lib32 ?= &quot;mips&quot;
DEFAULTTUNE_virtclass-multilib-libn32 ?= &quot;mips64-n32&quot;
---
Then run:
$ bitbake -c fetch libn32-valgrind
to confirm that the build env is setup to grok libn32 and if so:
$ bitbake libn32-valgrind


...


| checking whether we are using the GNU C++ compiler... yes
| checking whether mips64-pokymllibn32-linux-gnun32-g++  -meb -mabi=n32 -mhard-float -no-pie -fno-PIE --sysroot=/ala-lpggp22/rmacleod/src/distro/yocts
| checking dependency style of mips64-pokymllibn32-linux-gnun32-g++  -meb -mabi=n32 -mhard-float -no-pie -fno-PIE --sysroot=/ala-lpggp22/rmacleod/srce
| checking for mips64-pokymllibn32-linux-gnun32-ranlib... mips64-pokymllibn32-linux-gnun32-ranlib
| checking for gcc-ranlib... no
| checking for a sed that does not truncate output... (cached) sed
| checking for gcc-ar... /ala-lpggp22/rmacleod/src/distro/yocto/b.poky/vg/tmp/hosttools/gcc-ar
| checking for perl... (cached) /usr/bin/env perl
| checking for gdb... /no/gdb/was/found/at/configure/time
| checking dependency style of mips64-pokymllibn32-linux-gnun32-gcc  -meb -mabi=n32 -mhard-float -no-pie -fno-PIE --sysroot=/ala-lpggp22/rmacleod/srce
| checking for diff -u... yes
| checking for mips64-pokymllibn32-linux-gnun32-gcc  -meb -mabi=n32 -mhard-float -no-pie -fno-PIE --sysroot=/ala-lpggp22/rmacleod/src/distro/yocto/b.d
| checking for a supported version of gcc... ok (8.2.0)
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... mips64-pokymllibn32-linux-gnun32
| checking for a supported CPU... ok (mips64)
| checking for a 64-bit only build... no
| checking for a 32-bit only build... yes
| checking for a supported OS... ok (linux-gnun32)
| checking for the kernel version... 2.6 or later (4.4.0-128-generic)
| checking for 32 bit build support... no
| configure: error: --enable-only32bit was specified but system does not support 32 bit builds
| NOTE: The following config.log files may provide further information.
| NOTE: /ala-lpggp22/rmacleod/src/distro/yocto/b.poky/vg/tmp/work/mips64-n32-pokymllibn32-linux-gnun32/libn32-valgrind/3.14.0-r0/build/config.log
| ERROR: configure failed
| WARNING: /ala-lpggp22/rmacleod/src/distro/yocto/b.poky/vg/tmp/work/mips64-n32-pokymllibn32-linux-gnun32/libn32-valgrind/3.14.0-r0/temp/run.do_confi&apos;
| ERROR: Function failed: do_configure (log file is located at /ala-lpggp22/rmacleod/src/distro/yocto/b.poky/vg/tmp/work/mips64-n32-pokymllibn32-linu)
ERROR: Task (virtual:multilib:libn32:/ala-lpggp22/rmacleod/src/distro/yocto/poky.git/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb:do_configure) &apos;
NOTE: Tasks Summary: Attempted 1094 tasks of which 213 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:multilib:libn32:/ala-lpggp22/rmacleod/src/distro/yocto/poky.git/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb:do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82202</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-11-13 17:54:24 +0000</bug_when>
    <thetext>opened a bug within MV to have folks take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82221</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-11-14 16:31:10 +0000</bug_when>
    <thetext>We have some idea whats going on. may have a patch shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83621</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-04-18 19:40:04 +0000</bug_when>
    <thetext>ping? I&apos;m upgrading to 3.15, btw.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83837</commentid>
    <comment_count>6</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-05-16 20:11:29 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; ping? I&apos;m upgrading to 3.15, btw.

sorry. I don&apos;t think we found anything conclusive. does this work with the update?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83849</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-05-17 15:44:18 +0000</bug_when>
    <thetext>No it doesn&apos;t work after the 3.15 update either.
The error is the same as above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90434</commentid>
    <comment_count>8</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2021-05-20 15:23:49 +0000</bug_when>
    <thetext>got no response. Have nothing more to add to this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96189</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-08-03 15:10:40 +0000</bug_when>
    <thetext>Wind River is no longer testing mips64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96911</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:42 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104109</commentid>
    <comment_count>11</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-29 16:17:09 +0000</bug_when>
    <thetext>Mips is obsolete.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>