This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error about build toolchain with crosstool-ng-1.8.0


Loody, All,

On Thursday 26 August 2010 05:37:02 loody wrote:
> >> [ALL ?] ? ?checking for .previous assembler directive... yes
> >> [ALL ?] ? ?checking for .protected and .hidden assembler directive... yes
> >> [ALL ?] ? ?checking whether __attribute__((visibility())) is supported... yes
> >> [ALL ?] ? ?checking for broken __attribute__((visibility()))... no
> >> [ALL ?] ? ?checking for broken __attribute__((alias()))... no
> >> [ALL ?] ? ?checking whether to put _rtld_local into .sdata section... yes
> >> [ALL ?] ? ?checking for .preinit_array/.init_array/.fini_array support... no
> >> [ERROR] ? ?configure: error: Need linker with .init_array/.fini_array support.

I've tried to build your toolchain here, and had the same issue.
It looks like there is an issue when building binutils. With a single glance
at the config.log for glibc, you'll easily notice that the issue is that
ld is erroring out with (smthg like):
  .gnu.hash is not supported on MIPS.

I found the culprit to be patches/binutils/2.20/210-generate-gnu-hash.patch
This patch enables the GNU hash, except for MIPS. But the test is wrong.
The eception only triggers when the _host_ machine is MIPS, not when the
_target_ machine is MIPS.

Remove the targets/ directory, remove that patch, and start again from
scratch, it should work (the build is on-going OK here). Please report
whether it works or not for you.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]