title: unknown type name __locale_ ( while building gcc for powerpc)
body: <p>I am trying to build gcc 4.3-74 for powerpc using cross compilation. I used the following configure command to configure the make file.</p>
  
  <blockquote>
    <p>./configure --build=i686-pc-linux-gnu --target=powerpc-linux
    --host=powerpc-linux --with-gmp=/xxx/include --with-gmp-include=/xxx/include --with-gmp-lib=/xxx/lib</p>
  </blockquote>
  
  <p>configuration is done successfully, but when I do a make, it failed with the following message </p>
  
  <pre><code>In file included from ../.././libiberty/floatformat.c:31:0:
  /usr/include/string.h:548:5: error: unknown type name â€˜__locale_tâ€™
       __locale_t __loc)
       ^
  /usr/include/string.h:552:18: error: unknown type name â€˜__locale_tâ€™
  </code></pre>
  
  <p>It seems like it is not fetching the right header file for powerpc. </p>
  
  <p>I had similar issue with building binutils when I did configure without option --host=powerpc-linux. As soon as I used an option --host=powerpc-linux in configure, the same error is gone in case of binutils. </p>