#4 Cross-compile issues.

3.2.1
wont-fix
None
5
2014-04-18
2012-06-19
Anonymous
No

I'm trying to compile ION into Buildroot infrastructure using packages.
The compilation process returns the following error:

checking for DCCP support... configure: error: in ./output/build/ion-3.0.1': configure: error: cannot run test program while cross compiling Seeconfig.log' for more details

I inspect the configure script and i realize this:
[..]
linux*)
#check for DCCP support
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DCCP support" >&5
$as_echo_n "checking for DCCP support... " >&6; }
if test "$cross_compiling" = yes; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in `$ac_pwd':" >&5
$as_echo "$as_me: error: in `$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See `config.log' for more details" "$LINENO" 5; }
[..]

With this, seems cross-compile is not supported by ION intallation process, is this right?
If I'm wrong, what can be done to bypass or correct this issue?

The target system is an ARM machine.

Thank you very much for your attention,

Discussion

  • Scott Burleigh

    Scott Burleigh - 2012-06-19

    This is interesting -- I'm about to start trying the same cross-compilation. I haven't done it yet, though, so I haven't yet seen this error and don't yet have an explanation. It does look like cross-compiling is somehow inconsistent with the way ION's top-level Makefile works. The solution may be a modification of the ION top-level Makefile, or it may be a modification of the buildroot Makefile. However, even if you solved the Makefile problem I am pretty sure you would run into a lot of compilation errors: ION has not yet been ported to uClibc. One thing I'm pretty sure will fail, for example, is all of the shared-memory code; my understanding is that uClibc doesn't support SvR4 shared memory at all.

     
  • Scott Burleigh

    Scott Burleigh - 2013-03-20
    • status: open --> pending
    • assigned_to: Scott Burleigh
    • milestone: --> 3.1.2
     
  • Scott Burleigh

    Scott Burleigh - 2013-03-20

    A complete port of ION to Buildroot and uClibc will be included in version 3.1.2, but the standard ION Makefile isn't used for that build. You need to run native Buildroot.

     
  • Scott Burleigh

    Scott Burleigh - 2013-04-24
    • Group: 3.1.2 --> 3.2.0
     
  • Scott Burleigh

    Scott Burleigh - 2013-04-24

    The standard ION cross-compilation machinery still doesn't work for Buildroot, but as of version 3.1.2 ION has been ported to uClibc and the arch-uClibc directory contains a Buildroot package for building ION. John Bellardo of Cal Poly SLO has offered to help with autoconf modifications that could simplify building ION in Buildroot; I'm hoping to include those changes in version 3.2.0.

     
  • Scott Burleigh

    Scott Burleigh - 2013-04-29
    • status: pending --> accepted
     
  • Scott Burleigh

    Scott Burleigh - 2013-04-29

    The new buildroot Makefile isn't ready yet.

     
  • Scott Burleigh

    Scott Burleigh - 2013-12-20
    • Group: 3.2.0 --> 3.2.1
     
  • Scott Burleigh

    Scott Burleigh - 2014-04-18
    • status: accepted --> wont-fix
     
  • Scott Burleigh

    Scott Burleigh - 2014-04-18

    We haven't yet been able to construct a solid generic Makefile that builds ION for an arbitrary uClibc deployment, and there's no foreseeable prospect of developing such a Makefile, so I'm closing this item. Note that there's now some updated detailed documentation for accomplishing this sort of build, in the "ARM build.pdf" file in the arch-uClibc directory.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks