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

See crosstool-NG 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: armhf error: Need linker with .init_array/.fini_array support


It looks like crosstool-ng doesn't support armhf (hard float). I started with the base config and changed only the floating point option to hardware.

> ct-ng arm-cortex_a8-linux-gnueabi
> ct-ng menuconfig
Target options --> Floating point: (hardware (FPU))
Exit & save config
> ct-ng build

...
[INFO ]  =================================================================
[INFO ]  Installing C library headers & start files
[EXTRA]    Configuring C library
[ERROR]    checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library headers & start files'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@347]

...


Some background on ARM FP ABIs:
http://wiki.debian.org/ArmHardFloatPort



----- Original Message -----

I'm seeing this error building the toolchain for armhf ---


[CFG  ]    checking whether to put _rtld_local into .sdata section... no
[CFG  ]    checking for .preinit_array/.init_array/.fini_array support... no
[ERROR]    configure: error: Need linker with .init_array/.fini_array support.
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library headers & start files'
[ERROR]  >>        called in step '(top-level)'


I started with the arm-cortex_a8-linux-gnueabi base configuration and selected the appropriate versions to match the target system. I'm building with crosstool-ng-1.18.0 on Ubuntu 12.04.2 LTS (x86).  I tried selecting binutils versions 2.21-2.23 and they had the some problem. I also tried setting the linker to "ld, gold" and "gold, ld" and the error looked worse (it couldn't determine the ld version).

The .config and build.log are posted at
https://github.com/pchen-aff/crosstool-ng-armhf-debug/wiki/_pages

Note that the build.log was too large for the wiki page and was truncated. I put the bottom section of it in the page "build.log (end)"

Thanks the great work you guys have put into crosstool-ng.  Looking forward to your response :)

-Peace

--
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]