<?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>7542</bug_id>
          
          <creation_ts>2015-03-31 05:46:16 +0000</creation_ts>
          <short_desc>Failed when build toolchain for t4240rdb using poky-lsb.conf</short_desc>
          <delta_ts>2015-06-05 14:52:52 +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>BSPs</product>
          <component>bsps-meta-fsl-ppc</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="leimaohui">leimaohui</reporter>
          <assigned_to name="Chunrong Guo">b40290</assigned_to>
          <cc>b19537</cc>
    
    <cc>cristina-danielax.agurida</cc>
    
    <cc>zhenhua.luo</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49939</commentid>
    <comment_count>0</comment_count>
    <who name="leimaohui">leimaohui</who>
    <bug_when>2015-03-31 05:46:16 +0000</bug_when>
    <thetext>I build meta-toolchain for t4240rdb.
$ bitbake meta-toolchain

Build Configuration:
BB_VERSION        = &quot;1.27.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;CentOS-6.5&quot;
TARGET_SYS        = &quot;powerpc-poky-linux&quot;
MACHINE           = &quot;qemuppc&quot;
DISTRO            = &quot;poky-lsb&quot;
DISTRO_VERSION    = &quot;1.8+snapshot-20150331&quot;
TUNE_FEATURES     = &quot;m32 fpu-hard e6500 altivec&quot;
TARGET_FPU        = &quot;hard&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:5c76cebc24675edb3dff473fce9b67cedff615db&quot;
meta-fsl-ppc      = &quot;master:5eeeb3ad74b72d904f805bc6e248e93e722b45c4&quot;
-------------------------------------------------

But the folowing build error appeared.

| checking for gmsgfmt... no
| checking for msgfmt... msgfmt
| checking version of msgfmt... 0.19.4, ok
| checking for makeinfo... makeinfo
| checking version of makeinfo... 4.13, ok
| checking for sed... sed
| checking version of sed... 4.2.2, ok
| checking for gawk... gawk
| checking version of gawk... 3.1.7, ok
| checking if powerpc64-pokymllib64-linux-gcc  -mhard-float -m64 -mcpu=e6500 --sysroot=/yocto/leimh/ubinux-v15/build/build.poky.e6500.test/tmp/sysroots/lib64-qemuppc-tcbootstrap is sufficient to build libc... yes
| checking for powerpc64-pokymllib64-linux-nm... powerpc64-pokymllib64-linux-nm
| checking LD_LIBRARY_PATH variable... ok
| checking whether GCC supports -static-libgcc... -static-libgcc
| checking for bash... /bin/bash
| checking for perl... /usr/bin/perl
| checking for install-info... /sbin/install-info
| checking for bison... bison
| checking version of bison... 2.7.1, ok
| checking for libc-friendly stddef.h... yes
| checking whether we need to use -P to assemble .S files... no
| checking for .set assembler directive... no
| checking for assembler gnu_unique_object symbol type... yes
| checking for .previous assembler directive... yes
| checking for .protected and .hidden assembler directive... yes
| checking whether __attribute__((visibility())) is supported... yes
| checking for broken __attribute__((visibility()))... no
| checking for broken __attribute__((alias()))... no
| checking whether to put _rtld_local into .sdata section... yes
| checking for .preinit_array/.init_array/.fini_array support... no
| configure: error: Need linker with .init_array/.fini_array support.

-------------------------------------------------

I found that if delete the &quot;TARGET_CFLAGS_append&quot; in security_flags.inc,the build also will be OK.
------------------------
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -78,7 +78,7 @@ SECURITY_CFLAGS_pn-zlib = &quot;${SECURITY_NO_PIE_CFLAGS}&quot;
 SECURITY_CFLAGS_pn-ltp = &quot;${SECURITY_NO_PIE_CFLAGS}&quot;
 SECURITY_CFLAGS_pn-pulseaudio = &quot;${SECURITY_NO_PIE_CFLAGS}&quot;

-TARGET_CFLAGS_append = &quot; ${SECURITY_CFLAGS}&quot;
+#TARGET_CFLAGS_append = &quot; ${SECURITY_CFLAGS}&quot;
 TARGET_LDFLAGS_append = &quot; ${SECURITY_LDFLAGS}&quot;

 SECURITY_LDFLAGS_pn-xf86-video-fbdev = &quot;${SECURITY_X_LDFLAGS}&quot;
------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50103</commentid>
    <comment_count>1</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2015-04-07 06:52:10 +0000</bug_when>
    <thetext>I  can not reproduce this issue .

Build Configuration:
BB_VERSION        = &quot;1.27.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;powerpc-poky-linux&quot;
MACHINE           = &quot;t4240rdb&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.8+snapshot-20150407&quot;
TUNE_FEATURES     = &quot;m32 fpu-hard e6500 altivec&quot;
TARGET_FPU        = &quot;hard&quot;
meta              
meta-yocto        = &quot;master:d6d2dd5c9e06c54ff336b44d54f01b4fe24903ed&quot;
meta-fsl-ppc      = &quot;master:4c8cd553f9de56379e2b6502ceb996521e2d6a20&quot;
meta-yocto-bsp    = &quot;master:d6d2dd5c9e06c54ff336b44d54f01b4fe24903ed&quot;



can you check if set &apos;MACHINE ??= &quot;t4240rdb&quot;&apos; in conf/local.conf  ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50104</commentid>
    <comment_count>2</comment_count>
    <who name="leimaohui">leimaohui</who>
    <bug_when>2015-04-07 07:24:36 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I  can not reproduce this issue .
&gt; 
&gt; Build Configuration:
&gt; BB_VERSION        = &quot;1.27.0&quot;
&gt; BUILD_SYS         = &quot;x86_64-linux&quot;
&gt; NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
&gt; TARGET_SYS        = &quot;powerpc-poky-linux&quot;
&gt; MACHINE           = &quot;t4240rdb&quot;
&gt; DISTRO            = &quot;poky&quot;
...

If you set &quot;DISTRO&quot; to &quot;poky-lsb&quot; ,the issue can be reproduced.
DISTRO = &quot;poky-lsb&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50139</commentid>
    <comment_count>3</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2015-04-08 09:26:47 +0000</bug_when>
    <thetext>t4240rdb support multilib.

you can disable the following items:
 10 require conf/multilib.conf
 11 MULTILIBS ?= &quot;multilib:lib64&quot;
 12 DEFAULTTUNE_virtclass-multilib-lib64 ?= &quot;ppc64e6500&quot;
in  meta-fsl-ppc/conf/machine/include/e6500.inc


you can disable multilib function and issue will go away  .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50213</commentid>
    <comment_count>4</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2015-04-10 09:57:41 +0000</bug_when>
    <thetext>poky-lsb.conf can not support multilib at present.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50285</commentid>
    <comment_count>5</comment_count>
    <who name="leimaohui">leimaohui</who>
    <bug_when>2015-04-14 02:36:54 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; t4240rdb support multilib.
&gt; 
&gt; you can disable the following items:
&gt;  10 require conf/multilib.conf
&gt;  11 MULTILIBS ?= &quot;multilib:lib64&quot;
&gt;  12 DEFAULTTUNE_virtclass-multilib-lib64 ?= &quot;ppc64e6500&quot;
&gt; in  meta-fsl-ppc/conf/machine/include/e6500.inc
&gt; 
&gt; 
&gt; you can disable multilib function and issue will go away  .


Thank you.It does work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51531</commentid>
    <comment_count>6</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-06-05 14:52:52 +0000</bug_when>
    <thetext>Verified on master:fcc67ae90feeceee204bdb36e45eacf8d056779a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>