<?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>2179</bug_id>
          
          <creation_ts>2012-03-27 08:34:40 +0000</creation_ts>
          <short_desc>nspr: failed to build on x86_64</short_desc>
          <delta_ts>2012-03-29 11:20:55 +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>core</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19500</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-03-27 08:34:40 +0000</bug_when>
    <thetext>nspr failed to build on x86_64:


| x86_64-poky-linux-gcc    -m64 --sysroot=/buildarea2/lyangERROR: Function failed: do_compile (see /buildarea2/lyang1/tenth/tmp/work/x86_64-poky-linux/nspr-4.8.9-r2/temp/log.do_compile.9790 for further information)
| 1/tenth/tmp/sysroots/qemux86-64 -m32 -o prfdcach.o -c -fvisibility=hidden    -O2 -pipe -g -feliminate-unused-debug-types -Wall -g -fno-inline -fPIC  -UNDEBUG -DDEBUG_lyang1  -DDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 -D_GNU_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1  -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I/buildarea2/lyang1/tenth/tmp/work/x86_64-poky-linux/nspr-4.8.9-r2/nspr-4.8.9/mozilla/nsprpub/pr/include -I/buildarea2/lyang1/tenth/tmp/work/x86_64-poky-linux/nspr-4.8.9-r2/nspr-4.8.9/mozilla/nsprpub/pr/include/private  prfdcach.c
| In file included from /buildarea2/lyang1/tenth/tmp/sysroots/qemux86-64/usr/include/features.h:388:0,
|                  from /buildarea2/lyang1/tenth/tmp/sysroots/qemux86-64/usr/include/pthread.h:23,
|                  from /buildarea2/lyang1/tenth/tmp/work/x86_64-poky-linux/nspr-4.8.9-r2/nspr-4.8.9/mozilla/nsprpub/pr/include/private/primpl.h:50,
|                  from prfdcach.c:38:
| /buildarea2/lyang1/tenth/tmp/sysroots/qemux86-64/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

This is because there are both &apos;-m64&apos; and &apos;-m32&apos; in gcc&apos;s options, and the later one is used, but what we need is &apos;-m64&apos; since it is x86_64, this is caused by an incorrect logic in configure.in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19609</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-29 11:20:55 +0000</bug_when>
    <thetext>Fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7b01671f54f70c28c98457058c51ffefcb07c0e8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>